bayesline.api.equity.AsyncFactorCovarianceReportAccessorImpl#

class bayesline.api.equity.AsyncFactorCovarianceReportAccessorImpl(accessor: AsyncReportAccessorApi)#
__init__(accessor: AsyncReportAccessorApi)#

Methods

__init__(accessor)

get_correlation()

Get the time-series of factor correlations for the factors.

get_covariance()

Get the time-series of factor covariances for the factors.

with_scenario(scenario_settings)

Return a new accessor with the given scenario settings applied.

Attributes

accessor

The underlying report accessor API.

scenario_types

__init__(accessor: AsyncReportAccessorApi)#
property accessor: AsyncReportAccessorApi#

The underlying report accessor API.

Returns#

AsyncReportAccessorApi

The underlying report accessor API.

async get_covariance() DataFrame#

Get the time-series of factor covariances for the factors.

Returns#

pl.DataFrame

A dataframe with a date and factor columns and columns for each factor with their respective factor covariances.

async get_correlation() DataFrame#

Get the time-series of factor correlations for the factors.

Returns#

pl.DataFrame

A dataframe with a date and factor columns and columns for each factor with their respective factor correlations.