Skip to main content
Implied vol is what the market charges for optionality; realised vol is what the underlying delivered. The gap between them, the variance premium, is one of the most-watched numbers in options. This guide builds it from two requests.

1. Fetch both series

2. Align them

get_series makes one request, so it returns the newest 5,000 rows (about seven months). To cover a longer history window, swap in fetch_all from Paging through history.
Both series are hourly and stamped at the bar close, so an inner join on the index lines them up. Hours that are missing from either series drop out instead of being filled.

3. Read it two ways

premium above compares today’s implied with the trailing 30 days. It tells you whether options are rich or cheap against recent movement, which is what most desks quote day to day.
Your history window caps both series. On a monthly plan you get about 730 hourly points, enough for the same-time spread. Quarterly and annual plans add the depth needed for regime comparisons and the forecast check. See History window.