bayesline.api.equity.UploadersApi#

class bayesline.api.equity.UploadersApi#

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

__init__()#

Methods

__init__()

get_data_type(data_type)

Get a specific data type uploader.

get_data_types()

Get the list of available data types.

abstract get_data_types() list[str]#

Get the list of available data types.

Returns#

list[str]

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

abstract get_data_type(data_type: str) DataTypeUploaderApi#

Get a specific data type uploader.

Parameters#

data_typestr

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#

DataTypeUploaderApi

The uploader for the given data type.