DataConfig
dataclass backtide.config.DataConfig
Configuration for data parameters.
The data parameters control how and where market data is fetched and stored. Read more in the user guide.
| Attributes |
storage_path : str, default=".backtide"
File-system path to the location to store the database and cache.
providers : dict[InstrumentType, Provider]
Which data provider to use for each instrument type. When constructing,
it defaults to:
dataframe_library : DataFrameLibrary, default="pandas"{"stocks": "yahoo", "etf": "yahoo", "forex": "yahoo",
"crypto": "binance"}.
Which library to use for tabular data exchanged with user code (e.g.,
storage query results, indicator inputs/outputs). Choose from: "numpy",
"pandas", "polars".
|
See Also
Get a copy of the current global configuration.
Load a backtide configuration from a file.
Set the global configuration.
Methods
| to_dict | Convert the configuration object to a dictionary. |
method backtide.configto_dict()
Convert the configuration object to a dictionary.
| Returns |
dict
Self as dict.
|