bayesline.api.equity.AsyncUploadersApi#

class bayesline.api.equity.AsyncUploadersApi#

Bases: ABC

Exposes uploaders for different data types, e.g. exposures, portfolios, etc.

Methods

__init__()

get_data_type(data_type)

Parameters data_type: str The data type of the uploader to obtain. One of the data types returned by get_data_types.

get_data_types()

Returns list[str]: list[str]: A sorted list of available upload data types, e.g. "exposures", "portfolios", etc.

abstract async get_data_types() list[str]#

Returns#

list[str]:

list[str]: A sorted list of available upload data types, e.g. “exposures”, “portfolios”, etc.

abstract async get_data_type(data_type: str) AsyncDataTypeUploaderApi#

Parameters#

data_type: str

The data type of the uploader to obtain. One of the data types returned by get_data_types.

Raises#

KeyError

if the given data type does not exist

Returns#

AsyncDataTypeUploaderApi:

The uploader for the given data type.