qis.compute_monthly_cash_index

qis.compute_monthly_cash_index(data, currency, dates)[source]

Sample one ACT/365F cash index with calendar month-end opening resets.

Annual quotes are as-of month-end, as-of aligned under the existing FX-data policy, never backfilled. Interest is simple within a month and reinvested at month-end. Intramonth observations sample that same account without resetting it. Normalization is one at the first month-end with an available rate. No term forward is repriced and no source quote is changed.

Parameters:
  • data (FxRatesData) – Supplied FX container with annual decimal domestic rates.

  • currency (str) – Existing currency ID in domestic_rates.

  • dates (DatetimeIndex) – Ordered unique midnight valuation dates, in the source timezone.

Returns:

Cash levels on dates, missing before the first supported monthly opening.

Raises:

ValueError – Invalid dates or nonpositive cash growth.

Return type:

Series