qis.compute_multi_asset_fx_hedging

qis.compute_multi_asset_fx_hedging(asset_prices, fx_rates_data, time_period=None, local_ccys='USD', reference_ccy='CHF', freq='ME', span=36, risk_aversion_lambda=1.3333333333333333, min_max_hedge=(0.0, 1.0))[source]

Hedging performance metrics for a panel of local-currency assets in a reference ccy.

For each asset, builds the reference-currency NAVs at h in {0, 0.5, 1} plus the beta/carry/optimal variants and reads the risk-adjusted stats off a benchmark perf table (benchmark = the unconverted local asset). The optimizer knobs (span, risk_aversion_lambda, min_max_hedge) are passed explicitly to compute_fx_optimal_hedge rather than relying on its defaults.

local_ccys may be a single string (all assets share one currency, so the cross rate and forward are computed once in the outer scope) or a per-asset Series (resolved inside the loop).

Parameters:
  • asset_prices (DataFrame) – Native-currency price panel (columns are assets).

  • fx_rates_data (FxRatesData) – FX rates container.

  • time_period (TimePeriod) – Optional date filter applied to each asset’s NAV panel.

  • local_ccys (str | Series) – One currency for all assets (str) or per-asset currencies (Series).

  • reference_ccy (str) – Reporting / investor currency.

  • freq (str) – Asset hedge/reset and EWMA estimation cadence, also used for volatility, Sharpe and benchmark regressions (e.g. 'ME', 'QE', 'W-WED'). P.a. returns retain native NAV endpoints; drawdowns stay daily and skewness monthly.

  • span (int) – EWMA span (periods of freq) for the FX vol/beta estimates.

  • risk_aversion_lambda (float) – Mean-variance risk aversion for the carry tilt.

  • min_max_hedge (Tuple[float, float] | None) – Optional (min, max) clip on the hedge ratios.

Returns:

Dict of DataFrames pas, sharpes, betas, vols (asset x strategy) and last_hedges (asset x {Optimal, Max Carry, Beta Hedge}). last_hedges reads the final scheduled row of each hedge series; see compute_fx_optimal_hedge for its label and the last completed return period used by its risk estimates.

Return type:

Dict[str, DataFrame]