BasketBlackScholes
Portfolio model for calculating the values of Greeks by the Black-Scholes formula.
Inherits: BlackScholes
Constructors
BasketBlackScholes(IMarketDataProvider, IPositionProvider, DateTime?)
Initializes a new instance of the BasketBlackScholes.
- dataProvider
- The market data provider.
- positionProvider
- The position provider.
- expirationTime
- Explicit options expiration moment for the whole basket. If null, models' own settings are used.
BasketBlackScholes(Security, IMarketDataProvider, IPositionProvider, DateTime?)
Initializes a new instance of the BasketBlackScholes with explicit underlying.
- underlyingAsset
- Underlying asset.
- dataProvider
- The market data provider.
- positionProvider
- The position provider.
- expirationTime
- Explicit options expiration moment for the whole basket.
Properties
InnerModels : IInnerModelList
Information about options.
PositionProvider : IPositionProvider
The position provider.
RoundDecimals : int
The number of decimal places at calculated values. The default is -1, which means no values rounding.
UnderlyingAsset : Security
Underlying asset.
Methods
Delta(DateTime, decimal?, decimal?) : decimal?
To calculate the option delta.
- currentTime
- The current time.
- deviation
- Standard deviation.
- assetPrice
- Underlying asset price.
Returns: The option delta. If the value is equal to , then the value calculation currently is impossible.
Gamma(DateTime, decimal?, decimal?) : decimal?
To calculate the option gamma.
- currentTime
- The current time.
- deviation
- Standard deviation.
- assetPrice
- Underlying asset price.
Returns: The option gamma. If the value is equal to , then the value calculation currently is impossible.
ImpliedVolatility(DateTime, decimal) : decimal?
To calculate the implied volatility.
- currentTime
- The current time.
- premium
- The option premium.
Returns: The implied volatility. If the value is equal to , then the value calculation currently is impossible.
Premium(DateTime, decimal?, decimal?) : decimal?
To calculate the option premium.
- currentTime
- The current time.
- deviation
- Standard deviation.
- assetPrice
- Underlying asset price.
Returns: The option premium. If the value is equal to , then the value calculation currently is impossible.
Rho(DateTime, decimal?, decimal?) : decimal?
To calculate the option rho.
- currentTime
- The current time.
- deviation
- Standard deviation.
- assetPrice
- Underlying asset price.
Returns: The option rho. If the value is equal to , then the value calculation currently is impossible.