qis.FxAccountSpec

class qis.FxAccountSpec(reference_ccy, initial_capital, financing, notional_rule, cash_rate_policy, missing_quotes='raise', cash_policy=FxCashPolicy(quote_lag=1, day_count='ACT/365F', rate_provenance='FxRatesData.domestic_rates; annual decimals; provider basis unchanged', accrual=<FxCashAccrual.PERIOD_OPENING: 'period_opening'>))[source]

Bases: object

Explicit financing, collateral and sizing choices for an FX account.

Variables:
  • reference_ccy (str) – Currency of capital, cash, contract payments and NAV.

  • initial_capital (float) – Positive initial collateral/capital, not exposure notional.

  • financing (Literal['local', 'reference']) – Local matched borrowing/deposits, or reference-cash asset funding.

  • notional_rule (Literal['fixed', 'current_nav']) – Size targets on fixed initial capital or current marked NAV. current_nav uses the capital-based rule called capital_proportional in FxIndexNormalization; account funding and settlement remain separate choices.

  • cash_rate_policy (Literal['reference', 'zero']) – Reference benchmark on signed cash, or explicitly no interest.

  • missing_quotes (Literal['raise', 'carry_valuation']) – Reject missing marks, or carry valuation only without trading.

  • cash_policy (qis.fx.fx_returns.FxCashPolicy) – PERIOD_OPENING with ACT/365F on the valuation grid; no provider-basis conversion. MONTHLY_INDEX is not supported by this ledger.

Parameters:
  • reference_ccy (str)

  • initial_capital (float)

  • financing (Literal['local', 'reference'])

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

  • cash_rate_policy (Literal['reference', 'zero'])

  • missing_quotes (Literal['raise', 'carry_valuation'])

  • cash_policy (FxCashPolicy)

__init__(reference_ccy, initial_capital, financing, notional_rule, cash_rate_policy, missing_quotes='raise', cash_policy=FxCashPolicy(quote_lag=1, day_count='ACT/365F', rate_provenance='FxRatesData.domestic_rates; annual decimals; provider basis unchanged', accrual=<FxCashAccrual.PERIOD_OPENING: 'period_opening'>))
Parameters:
  • reference_ccy (str)

  • initial_capital (float)

  • financing (Literal['local', 'reference'])

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

  • cash_rate_policy (Literal['reference', 'zero'])

  • missing_quotes (Literal['raise', 'carry_valuation'])

  • cash_policy (FxCashPolicy)

Return type:

None

Methods

__init__(reference_ccy, initial_capital, ...)

Attributes

reference_ccy: str
initial_capital: float
financing: Literal['local', 'reference']
notional_rule: Literal['fixed', 'current_nav']
cash_rate_policy: Literal['reference', 'zero']
missing_quotes: Literal['raise', 'carry_valuation'] = 'raise'
cash_policy: FxCashPolicy = FxCashPolicy(quote_lag=1, day_count='ACT/365F', rate_provenance='FxRatesData.domestic_rates; annual decimals; provider basis unchanged', accrual=<FxCashAccrual.PERIOD_OPENING: 'period_opening'>)