bayesline.api.equity.AsyncUploadersApi#
- class bayesline.api.equity.AsyncUploadersApi#
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 the list of available data types.
- abstract async 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 async get_data_type(data_type: str) AsyncDataTypeUploaderApi#
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#
- AsyncDataTypeUploaderApi
The uploader for the given data type.