Pricing Crypto Options
August 09, 2025
Learn how to price crypto options using python QuantFlow's powerful tools and Deribit API.
Options are financial derivatives that give the holder the right, but not the obligation, to buy or sell an underlying asset at a predetermined price, called strike, before or at a specified expiration date. Options can be used to hedge against price volatility or speculate on future price movements.
American options can be exercised at any time before expiration, while European options can only be exercised at expiration. There are other type of option styles, such as Bermudan options, which can be exercised at specific dates before expiration, but they are less common in practice.
In this post, I explore how to price crypto European Options traded on deribit exchange using quantflow's powerful tools.
Setting up
To get started, you need to have Python 3.11 or later installed on your machine.
Once you have that, you need to install the quantflow
package in your environment.
You can do this using pip:
pip install quantflow[cli,data]
That is that! You are now ready to start pricing crypto options using quantflow
.
Term Structure
The term structures refers to the relationship between the time to expiration and the price of forward (future) contracts.
A forward contract (called future when traded on an exchange) is an agreement to buy or sell an asset at a future date for a price agreed upon today. In the context of options, the term structure is used to determine the forward price of the underlying asset at different maturities.
It is an important concept in options pricing, as it indicates how the price of the underlying asset is expected to change over time. It is important to understand that this expectation is not a prediction, it is the risk-neutral expectation of the future price of the underlying asset.
The basis is the difference between the forward/future price and the spot/perpetual price of the underlying asset. The rate is the expected annualized interest rate that one would earn or pay (if negative) when holding the spot asset and shorting the corresponding forward contract until the maturity of the forward contract.
The term structure can be created in quantflow via the following snippet:
import pandas as pd
from quantflow.options.surface import VolSurface
from quantflow.data.deribit import Deribit
async def fetch_vol_surface(asset: str) -> VolSurface:
async with Deribit() as deribit:
loader = await deribit.volatility_surface_loader(asset)
return loader.surface()
async def fetch_term_structure(asset: str) -> pd.DataFrame:
vs = await fetch_vol_surface(asset)
return vs.term_structure()
Implied Volatility
Implied volatility is a standardized measure of the market's expectation of the future volatility of the underlying asset. It is derived from the market price of an option using the Black-Scholes model.
Moneyness
One imporatnt aspect of the implied volatility charts is the use of moneyness as the x-axis in order to normalize the volatility across different strikes and maturities. There are different ways to define moneyness, but the most common one is defined as:
where
The size of the dots is proportional to the volume of the options, which gives an idea of the liquidity of the options at different strikes and maturities.
Volume vs Open Interest
Volume and open interest are two important metrics in trading that provide insights into market activity and liquidity.
- Volume refers to the total number of contracts traded during a specific period, typically a day. It indicates the level of activity and interest in a particular option. It is closely linked to the liquidity of the market, as higher volume generally means more participants are trading the contract, making it easier to enter and exit positions.
- Open Interest refers to the total number of outstanding contracts that are held by market participants. In essence, it tracks the number of open positions in the market.
While both metrics measure market activity, they tell different stories:
- Volume is a measure of turnover. It can be high even if open interest is low, for example, if the same contracts are being traded back and forth frequently within a day (day trading).
- Open Interest is a measure of the total number of active positions. It tells us how much money is committed to a particular option for future.
The real power comes from analyzing volume and open interest together. Their relationship can provide strong clues about the market's conviction and the potential for a trend to continue or reverse.
Here’s a simple guide to interpreting the four possible scenarios:
Volume | Open Interest | Interpretation |
---|---|---|
Up | Up | Strong Trend: New money is flowing into the market, creating new positions. This is a healthy sign that the current price trend is strong and likely to continue. |
Up | Down | Potential Reversal: High volume shows lots of activity, but falling open interest means traders are closing their existing positions. This often signals the end of a trend, as participants are taking profits or cutting losses. |
Down | Up | Stalling Market: New positions are being opened, but with little volume or conviction. The market may be consolidating or losing momentum. |
Down | Down | Weakening Trend: Low volume and closing positions indicate that traders are losing interest. The current trend is likely weakening and becoming exhausted. |
By monitoring both volume and open interest, traders can gain a deeper understanding of market dynamics, confirm the strength of a trend, and be better prepared for potential reversals.