qis.HoldingsAlphaCoverage

class qis.HoldingsAlphaCoverage(weight_tolerance=1e-06, total_weight_tolerance=1e-05, proxy_map=<factory>, proxy_prices=None)[source]

Bases: object

Allow bounded missing-beta dust and explicitly supplied proxy histories.

Variables:
  • weight_tolerance (float) – Maximum absolute missing-beta instrument exposure, in NAV units. The default 1e-6 is 0.01 bp of NAV; known betas are never omitted.

  • total_weight_tolerance (float) – Maximum sum of absolute omitted exposures, in NAV units. The default 1e-5 is 0.1 bp of NAV. Long/short positions never offset this cap.

  • proxy_map (collections.abc.Mapping[str, str]) – Instrument identifier to proxy-price column. No automatic mapping, chaining or portfolio NAV regression. Select mappings independently of inference outcomes.

  • proxy_prices (pandas.DataFrame | None) – Positive reference-currency levels for the mapped proxies, with ordered, unique dates. NaNs are allowed, not filled. The caller must ensure matching currency, hedging and risk conventions and point-in-time availability of the supplied history.

Parameters:

Passing None to a factsheet keeps strict coverage. This object enables a reporting-only approximation, without changing holdings, NAV, instrument beta warm-up or Sharpe inference. A proxy uses the same EWMA estimator/warm-up and opening-date lag as an instrument. Own eligible betas always win. Both tolerances may be zero for proxy-only assistance.

__init__(weight_tolerance=1e-06, total_weight_tolerance=1e-05, proxy_map=<factory>, proxy_prices=None)
Parameters:
Return type:

None

Methods

__init__([weight_tolerance, ...])

for_instruments(instruments)

Restrict an already validated universe policy for a paired or constituent report.

Attributes

weight_tolerance: float = 1e-06
total_weight_tolerance: float = 1e-05
proxy_map: Mapping[str, str]
proxy_prices: DataFrame | None = None
for_instruments(instruments)[source]

Restrict an already validated universe policy for a paired or constituent report.

Parameters:

instruments – Actual instrument identifiers in that constituent portfolio.

Returns:

Policy with only relevant mappings, retaining supplied proxy history and tolerances.