Skip to content

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: {"stocks": "yahoo", "etf": "yahoo", "forex": "yahoo", "crypto": "binance"}.

dataframe_library : DataFrameLibrary, default="pandas"
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_config

Get a copy of the current global configuration.

load_config

Load a backtide configuration from a file.

set_config

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.