bayesline.api.equity.AsyncFactorModelMetadataApi#
- class bayesline.api.equity.AsyncFactorModelMetadataApi#
Sub interface to list risk models in the registry.
- __init__()#
Methods
__init__()List all risk models and risk datasets in one call.
list_riskmodels([risk_dataset, df])List all risk models in the registry.
- abstract async list_riskmodels(risk_dataset: str | None = None, *, df: bool = False) list[FactorRiskModelMetadata] | DataFrame#
List all risk models in the registry.
Parameters#
- risk_datasetstr | None, default=None
The risk dataset to filter by. If not given, all risk models are returned.
- dfbool, default=False
If True, return a polars DataFrame instead of a list of metadata objects.
Returns#
- list[FactorRiskModelMetadata] | pl.DataFrame
The metadata of all risk models in the registry, either as a list of objects or as a DataFrame depending on the df parameter.
- abstract async get_riskmodel_catalog() RiskModelCatalog#
List all risk models and risk datasets in one call.
Equivalent to
list_riskmodels()plus a risk-dataset listing, but computed against a single shared dataset-status snapshot so the two listings stay consistent and the server does the dataset-status work once.Returns#
- RiskModelCatalog
The risk-model and risk-dataset metadata listings.