Greeks.StateFillers.PriceMarketStateFiller

Classes

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.
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.
PriceMarketStateFiller(...) Class that defines the market states that are relevant for a price computation.
class Greeks.StateFillers.PriceMarketStateFiller.PriceMarketStateFiller(market: MarketQuotations.Market.Market)[source]

Class that defines the market states that are relevant for a price computation.

Parameters:

market : MarketQuotations

The market data necessary to compute price and greeks.

Methods

fill(...) Fills the market state dictionary by the relevant states necessary to price 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 price calculation.

Parameters:

greeks_definition : Market

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