qis.FxIndexNormalization

class qis.FxIndexNormalization(initial_value, notional_to_capital, notional_rule, settlement_frequency, reinvestment, cash_treatment, missing_returns)[source]

Bases: object

Explicit synthetic index normalization, not a self-financing account engine.

Variables:
  • initial_value (float) – Positive index/capital at the boundary before the first payoff.

  • notional_to_capital (float) – Opening payoff notional divided by capital, strictly positive.

  • notional_rule (Literal['capital_proportional', 'fixed']) – Capital-proportional compounds; fixed accumulates initial-capital P&L. capital_proportional is the capital-based rule called current_nav in FxAccountSpec; an index normalization does not create its financing ledger.

  • settlement_frequency (str) – Must equal the result cadence; no implicit daily settlement.

  • reinvestment (Literal['each_interval', 'none']) – Reinvest each interval for capital-proportional; none for fixed.

  • cash_treatment (Literal['as_returned']) – As represented in the return object; no cash is added a second time.

  • missing_returns (Literal['skip', 'stop']) – Explicitly skip gaps or stop at the first missing post-inception payoff.

Parameters:
  • initial_value (float)

  • notional_to_capital (float)

  • notional_rule (Literal['capital_proportional', 'fixed'])

  • settlement_frequency (str)

  • reinvestment (Literal['each_interval', 'none'])

  • cash_treatment (Literal['as_returned'])

  • missing_returns (Literal['skip', 'stop'])

__init__(initial_value, notional_to_capital, notional_rule, settlement_frequency, reinvestment, cash_treatment, missing_returns)
Parameters:
  • initial_value (float)

  • notional_to_capital (float)

  • notional_rule (Literal['capital_proportional', 'fixed'])

  • settlement_frequency (str)

  • reinvestment (Literal['each_interval', 'none'])

  • cash_treatment (Literal['as_returned'])

  • missing_returns (Literal['skip', 'stop'])

Return type:

None

Methods

__init__(initial_value, notional_to_capital, ...)

compounded(settlement_frequency[, ...])

Declare a unit-notional synthetic index reinvested at each settlement.

Attributes

initial_value: float
notional_to_capital: float
notional_rule: Literal['capital_proportional', 'fixed']
settlement_frequency: str
reinvestment: Literal['each_interval', 'none']
cash_treatment: Literal['as_returned']
missing_returns: Literal['skip', 'stop']
classmethod compounded(settlement_frequency, initial_value=1.0, missing_returns='skip')[source]

Declare a unit-notional synthetic index reinvested at each settlement.

Parameters:
  • settlement_frequency (str) – Explicit cadence, required to match the return result.

  • initial_value (float) – Finite positive capital/index level before the first payoff.

  • missing_returns (Literal['skip', 'stop']) – Skip missing payoffs or stop after the first post-inception gap.

Returns:

Existing seven-field specification with capital-proportional notional, notional_to_capital=1, each-interval reinvestment and cash as returned. Use the full constructor for fixed notional or nonunit notional-to-capital. The specification adds no funding or collateral and constructs no index itself.

Raises:

ValueError – The initial value, cadence or missing-return policy is invalid.

Return type:

FxIndexNormalization