qis.fetch_default_perf_params

qis.fetch_default_perf_params(rates_data=None, add_rates_data=True)[source]

Build the default (PerfParams, BenchmarkReturnsQuantilesRegime) pair used outside the factsheet-config path.

The 3M US T-bill (‘^IRX’) is downloaded via yfinance and divided by 100 to give a decimal rate series; if the download is empty (e.g. offline) the rate falls back to None (zero-rate stats). PerfParams use weekly (‘W-WED’) return and regression frequencies; the regime classifier uses a quarterly (‘QE’) grid.

Parameters:
  • rates_data (Series) – external risk-free rate series as a decimal. Supplied, it is used as-is and no download occurs

  • add_rates_data (bool) – when rates_data is None, download the default 3M US rate. Needs the [data] extra; an empty download falls back to zero-rate statistics

Returns:

the performance parameters and the regime classifier, in that order

Return type:

Tuple[PerfParams, BenchmarkReturnsQuantilesRegime]