get_config
function backtide.config.get_config()
Get a copy of the current global configuration.
Use this function to alter the configuration programmatically before
updating the current config with set_config. Read more in the
user guide.
| Returns |
The current configuration.
|
See Also
Load a backtide configuration from a file.
Set the global configuration.
Example
>>> from pprint import pprint
>>> from backtide.config import get_config
>>> # Load and display the current configuration
>>> cfg = get_config()
>>> pprint(cfg.to_dict())
{'data': {'dataframe_library': 'pandas',
'providers': {'crypto': 'yahoo',
'etf': 'yahoo',
'forex': 'yahoo',
'stocks': 'yahoo'},
'storage_path': '/tmp/backtide_docs_mzmd9ef4'},
'display': {'address': None,
'currency_prefix': True,
'date_format': 'YYYY-MM-DD',
'logokit_api_key': None,
'port': 8501,
'time_format': 'HH:MM',
'timezone': None},
'general': {'base_currency': 'USD',
'log_level': 'warn',
'triangulation_crypto': 'USDT',
'triangulation_crypto_pegged': 'USD',
'triangulation_fiat': 'USD',
'triangulation_strategy': 'direct'},
'plots': {'label_fontsize': 20,
'line_width': 2.0,
'marker_size': 8.0,
'palette': ['rgb(13, 71, 161)',
'rgb(2, 136, 209)',
'rgb(0, 172, 193)',
'rgb(0, 137, 123)',
'rgb(56, 142, 60)',
'rgb(129, 199, 132)'],
'template': 'plotly',
'tick_fontsize': 14,
'title_fontsize': 22}}