Greeks.StateFillers.DeltaMarketStateFiller

Classes

DeltaMarketStateFiller(...) Class that defines the market states that are relevant for delta computation by finite difference.
Dict(...[, two])

Methods

GreeksDefinition(delta_relative_bump_size, ...) Container class to describe the bumps to be applied when computing greeks by finite differences.
IMarketStateFiller General interface that defines the market states that are relevant for greek computation by finite difference .
Market(ref_date: datetime.date, ...) Container class to encapsulate dated market data.
MarketData(underlying_level: float, ...) Container class to encapsulate market data.
MarketStateKey(id) Container class to identify a market state in a greeks run.
MarketStateKeys Static class regrouping the different market state keys used for greeks computation.
ShockUtilities Helper class to perform unit conversion on greeks shocks.
class Greeks.StateFillers.DeltaMarketStateFiller.DeltaMarketStateFiller(market: MarketQuotations.Market.Market)[source]

Class that defines the market states that are relevant for delta computation by finite difference.

Parameters:

market : Market

The market data necessary to compute price and greeks.

Methods

fill(...) Fills the market state dictionary by the relevant states necessary to delta calculation.
fill(greeks_definition: Greeks.Common.GreeksDefinition.GreeksDefinition, market_states: typing.Dict[Common.MarketStateKey.MarketStateKey, MarketQuotations.Market.Market]) → None[source]

Fills the market state dictionary by the relevant states necessary to delta calculation.

Parameters:

greeks_definition : GreeksDefinition

The description of bumps that are applied on market data for greeks computation.

market_states : Dict[MarketStateKey, float]

Dictionary of market states identified by its market state key.

Returns:

None