qis.HoldingPayoff¶
- class qis.HoldingPayoff(*args, **kwargs)[source]¶
Bases:
ProtocolPublic extension for a composite valued in reference currency.
- Variables:
For conditional bands at nonzero shocks, also implement the optional scenario_response_jacobian(context) method. It reads the single scenario row from context.quotes and context.fx_rates, while baseline properties retain the original valuation references. Return shared-response dollar derivatives with the same boundary policy. Baseline-only composites remain valid for valuation/current risk; requesting stressed risk without the method fails explicitly. Disable StressTestConfig.ordinary_asset_bands for those consumers.
- __init__(*args, **kwargs)¶
Methods
__init__(*args, **kwargs)evaluate(context)Return scenario model payoff values in reference currency.
response_jacobian(context)Return current dollar sensitivities indexed by shared response ID.
Attributes
- evaluate(context)[source]¶
Return scenario model payoff values in reference currency.
- Parameters:
context (PayoffContext) – Public quotes, FX and mappings; no private engine imports.
- Returns:
Finite Series with exactly the scenario index.
- Return type:
- response_jacobian(context)[source]¶
Return current dollar sensitivities indexed by shared response ID.
- Parameters:
context (PayoffContext) – Zero-shock market view, with the shared response mappings.
- Returns:
Finite labelled derivative, including zero for every unused response. If unavailable, raise NotImplementedError; full risk analysis fails explicitly while direct payoff valuation remains usable.
- Return type: