mirror of
https://github.com/Arianhgh/fx-quant-research.git
synced 2026-08-04 06:27:43 +00:00
19 lines
646 B
Python
19 lines
646 B
Python
"""Central configuration.
|
|
|
|
Secrets are read from environment variables so they never live in source code.
|
|
Set them in your shell or a local ``.env`` file (which is git-ignored):
|
|
|
|
export OANDA_ACCESS_TOKEN="your-token-here"
|
|
"""
|
|
import os
|
|
|
|
# OANDA v20 REST access token (required only for live data downloads).
|
|
OANDA_ACCESS_TOKEN = os.environ.get("OANDA_ACCESS_TOKEN", "")
|
|
|
|
# Default instrument / granularity for downloads.
|
|
DEFAULT_INSTRUMENT = os.environ.get("INSTRUMENT", "EUR_USD")
|
|
DEFAULT_GRANULARITY = os.environ.get("GRANULARITY", "M5")
|
|
|
|
# Where trained models are written / loaded from.
|
|
MODEL_DIR = os.environ.get("MODEL_DIR", "models")
|