OptionPriceModelResult
QuantConnect.Securities.Option.OptionPriceModelResult
OptionPriceModelResult(
theoretical_price: float, greeks: Greeks
)
OptionPriceModelResult(
theoretical_price: float,
implied_volatility: Callable[[], float],
greeks: Callable[[], Greeks],
)
Bases: Object
Result type for IOptionPriceModel.evaluate
Signature descriptions:
-
Initializes a new instance of the OptionPriceModelResult class
-
Initializes a new instance of the OptionPriceModelResult class with lazy calculations of implied volatility and greeks
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
theoretical_price
|
float
|
The theoretical price computed by the price model |
required |
greeks
|
Greeks | Callable[[], Greeks]
|
The sensitivities (greeks) computed by the price model |
required |
implied_volatility
|
Optional[Callable[[], float]]
|
The calculated implied volatility |
None
|
theoretical_price
theoretical_price: float
Gets the theoretical price as computed by the IOptionPriceModel
implied_volatility
implied_volatility: float
Gets the implied volatility of the option contract