qis.fetch_default_report_kwargs¶
- qis.fetch_default_report_kwargs(time_period=None, reporting_frequency=ReportingFrequency.MONTHLY, long_threshold_years=5.0, add_rates_data=False, is_unit_based_traded_volume=None, override=None, turnover_computation_type=None)[source]¶
the report keyword arguments for a given reporting frequency and reported span.
The reported-span axis is selected automatically: the long-period presets apply when no
time_periodis given or its length exceedslong_threshold_years, otherwise the short-period presets.reporting_frequencythen selects the matching preset, whichfetch_factsheet_config_kwargsexpands. An unknown frequency falls back to MONTHLY.Spread the result into a factsheet generator: it carries the window lengths, grid spacing and regime presets that make a report’s panels agree with one another and with the data frequency.
- Parameters:
time_period (TimePeriod | None) – reporting window; its length drives the long / short preset choice. None selects the long-period presets
reporting_frequency (ReportingFrequency) – data sampling frequency and the report’s base grid
long_threshold_years (float) – span in years above which the long-period presets are used
add_rates_data (bool) – download the default 3M US rate and show excess-return columns. Needs the
[data]extra, since the download goes through yfinanceturnover_computation_type (TurnoverComputationType | None) – turnover convention; None uses each portfolio’s default
is_unit_based_traded_volume (bool | None) – deprecated turnover selector retained for compatibility
override (Dict[str, Any]) – final overrides merged into the result, which win over every preset
- Returns:
keyword arguments ready to spread into
generate_*_factsheet(...)- Return type: