Options Discounting¶
quantflow.rates.options.YieldCurveCalibration
pydantic-model
¶
Bases: BaseModel, Generic[Y]
Fields:
-
yield_curve(Y)
get_params
abstractmethod
¶
set_params
abstractmethod
¶
get_bounds
abstractmethod
¶
calibrate
¶
Fit the yield curve to target discount factors via least squares.
| PARAMETER | DESCRIPTION |
|---|---|
ttm
|
Times to maturity in years.
TYPE:
|
target
|
Target discount factors, same length as ttm.
TYPE:
|
Source code in quantflow/rates/options.py
quantflow.rates.options.OptionsDiscountingCalibration
dataclass
¶
Calibrate yield curves from option price parity data.
The input data consists of arrays of call-put parity values, strikes, and times to maturity for a set of options on the same underlying. The calibration can be done jointly for both the asset and quote curves, or separately for one curve with the other fixed.
asset_curve
instance-attribute
¶
Yield curve for the underlying asset. An instance is treated as fixed; a YieldCurveCalibration will be calibrated from the parity data.
quote_curve
instance-attribute
¶
Yield curve for the quote asset. An instance is treated as fixed; a YieldCurveCalibration will be calibrated from the parity data.
calibrate
¶
Source code in quantflow/rates/options.py
joint_calibration
¶
Calibrate both curves jointly from all parity observations.
Source code in quantflow/rates/options.py
asset_calibration
¶
Calibrate only the asset curve; quote curve is fixed.
Source code in quantflow/rates/options.py
quote_calibration
¶
Calibrate only the quote curve; asset curve is fixed.