bayesline.api.equity.AsyncReportLoaderApi#
- class bayesline.api.equity.AsyncReportLoaderApi#
API for loading portfolio reports.
This class provides functionality for loading portfolio reports using registry-based API patterns.
- __init__()#
Methods
__init__()delete_persisted(name_or_id)Delete persisted reports by name or ID.
load(ref_or_settings, *[, ...])Load a report using the specified reference or settings.
load_as_task(ref_or_settings, *[, ...])load_persisted(name_or_id)Load a persisted report by name or ID.
Attributes
Get the persisted report settings registry.
settingsGet the settings registry.
- abstract async load(ref_or_settings: str | int | ReportSettings, *, hierarchy_ref_or_settings: str | int | PortfolioHierarchySettings | None = None) AsyncReportApi#
Load a report using the specified reference or settings.
Parameters#
- ref_or_settingsstr | int | ReportSettings
The reference or settings to load the report with.
- hierarchy_ref_or_settingsstr | int | PortfolioHierarchySettings | None, default=None
Optional hierarchy reference or settings.
Returns#
- AsyncReportApi
The loaded report API.
- abstract async load_as_task(ref_or_settings: str | int | ReportSettings, *, hierarchy_ref_or_settings: str | int | PortfolioHierarchySettings | None = None) AsyncTask[AsyncReportApi]#
- abstract property persisted_report_settings: AsyncReadOnlyRegistry[ReportAccessorSettings]#
Get the persisted report settings registry.
Returns#
- AsyncReadOnlyRegistry[ReportAccessorSettings]
A read-only registry of persisted report settings.