bayesline.api.equity.FactorCovarianceReportApi#

class bayesline.api.equity.FactorCovarianceReportApi#

API for a exposure report.

__init__()#

Methods

__init__()

calculate(start_date, end_date, **kwargs)

Calculate the factor covariance report.

calculate_as_task(start_date, end_date, **kwargs)

Calculate the factor covariance report as a task.

get_maybe_cached(start_date, end_date, **kwargs)

Get the cached factor covariance report accessor API if it is available.

to_mermaid()

Get a Mermaid diagram of the report execution graph.

Attributes

settings

The settings used to create this report.

abstract get_maybe_cached(start_date: str | date | datetime | None, end_date: str | date | datetime | None, **kwargs: Any) FactorCovarianceReportAccessor | None#

Get the cached factor covariance report accessor API if it is available.

Parameters#

start_date: DateLike | None

The start date of the report.

end_date: DateLike | None

The end date of the report.

**kwargs: Any

Additional keyword arguments.

Returns#

FactorCovarianceReportAccessor | None

The cached factor covariance report accessor API, or None if the report is not cached.

abstract calculate(start_date: str | date | datetime, end_date: str | date | datetime, **kwargs: Any) FactorCovarianceReportAccessor#

Calculate the factor covariance report.

Parameters#

start_date: DateLike

The start date of the report.

end_date: DateLike

The end date of the report.

**kwargs: Any

Additional keyword arguments.

Returns#

FactorCovarianceReportAccessor

The exposure report accessor.

abstract calculate_as_task(start_date: str | date | datetime | None, end_date: str | date | datetime | None, **kwargs: Any) Task[FactorCovarianceReportAccessor]#

Calculate the factor covariance report as a task.

Parameters#

start_date: DateLike | None

The start date of the report.

end_date: DateLike | None

The end date of the report.

**kwargs: Any

Additional keyword arguments.

Returns#

Task[FactorCovarianceReportAccessor]

The task for the factor covariance report accessor.