bayesline.api.equity.AsyncRiskDatasetLoaderApi.create_dataset#
- abstract async AsyncRiskDatasetLoaderApi.create_dataset(name: str, settings: RiskDatasetSettings) AsyncRiskDatasetApi #
Creates a new dataset with the given name and settings.
Parameters#
- namestr
The name of the dataset to create.
- settingsRiskDatasetSettings
The settings for the dataset to create.
Raises#
- DatasetError
if a dataset with the given name already exists or if the settings are otherwise invalid
Returns#
- AsyncRiskDatasetApi
the API of the newly created dataset