bayesline.api.equity.AsyncPortfolioLoaderImpl#
- class bayesline.api.equity.AsyncPortfolioLoaderImpl(*, settings_registry: AsyncTypedSettingsRegistry[PortfolioSettings, PortfolioSettingsMenu], organizer_settings: AsyncTypedSettingsRegistry[PortfolioOrganizerSettings, PortfolioOrganizerSettingsMenu], uploader: AsyncDataTypeUploaderApi, report_loader: AsyncReportLoaderApi, dataset_api: AsyncRiskDatasetLoaderApi, resolve_metadata: Callable[[DatasetAwareSettings[PortfolioSettings]], Awaitable[AsyncPortfolioMetadata]], get_catalog: Callable[[], Awaitable[PortfolioCatalog]], resolve_selection: Callable[[dict[str, str]], Awaitable[PortfolioSelectionResolution]]) None#
- __init__(*, settings_registry: AsyncTypedSettingsRegistry[PortfolioSettings, PortfolioSettingsMenu], organizer_settings: AsyncTypedSettingsRegistry[PortfolioOrganizerSettings, PortfolioOrganizerSettingsMenu], uploader: AsyncDataTypeUploaderApi, report_loader: AsyncReportLoaderApi, dataset_api: AsyncRiskDatasetLoaderApi, resolve_metadata: Callable[[DatasetAwareSettings[PortfolioSettings]], Awaitable[AsyncPortfolioMetadata]], get_catalog: Callable[[], Awaitable[PortfolioCatalog]], resolve_selection: Callable[[dict[str, str]], Awaitable[PortfolioSelectionResolution]]) None#
Methods
__init__(*, settings_registry, ...)load(ref_or_settings, *args, **kwargs)Load an API instance from settings or reference.
resolve_selection(enabled_portfolios)validate(settings)Validate
settingsagainst the menu for its dataset.Attributes
Get the settings registry.
- __init__(*, settings_registry: AsyncTypedSettingsRegistry[PortfolioSettings, PortfolioSettingsMenu], organizer_settings: AsyncTypedSettingsRegistry[PortfolioOrganizerSettings, PortfolioOrganizerSettingsMenu], uploader: AsyncDataTypeUploaderApi, report_loader: AsyncReportLoaderApi, dataset_api: AsyncRiskDatasetLoaderApi, resolve_metadata: Callable[[DatasetAwareSettings[PortfolioSettings]], Awaitable[AsyncPortfolioMetadata]], get_catalog: Callable[[], Awaitable[PortfolioCatalog]], resolve_selection: Callable[[dict[str, str]], Awaitable[PortfolioSelectionResolution]]) None#
- property settings: AsyncTypedSettingsRegistry[PortfolioSettings, PortfolioSettingsMenu]#
Get the settings registry.
Returns#
- AsyncTypedSettingsRegistry[T, M]
The settings registry instance.
- property organizer_settings: AsyncTypedSettingsRegistry[PortfolioOrganizerSettings, PortfolioOrganizerSettingsMenu]#
- property uploader: AsyncDataTypeUploaderApi#
- async get_portfolio_catalog() PortfolioCatalog#
- async resolve_selection(enabled_portfolios: dict[str, str]) PortfolioSelectionResolution#