# Sample environment file. Copy to .env and fill in values.
# All variables use the MT_ prefix (loaded by pydantic-settings).

# --- Required ---

# TimescaleDB connection URL (PostgreSQL with TimescaleDB extension).
MT_TIMESCALE_DB_URL=postgresql://user:password@host:5432/trading

# EODHD API token — used for all data acquisition and universe rebuild.
MT_EODHD_API_KEY=your-eodhd-api-key

# --- Recommended ---

# Finnhub API token — used for IPO-date enrichment during instruments rebuild.
# Without this, first_listing_date will not be populated.
MT_FINNHUB_API_KEY=your-finnhub-api-key

# --- Optional ---

# Log level: DEBUG, INFO (default), WARNING, ERROR
# MT_LOG_LEVEL=INFO

# Minute data provider (default: eodhd)
# MT_MINUTE_PROVIDER=eodhd

# Daily data provider (default: eodhd)
# MT_DAILY_PROVIDER=eodhd

# Daily API credit cap for EODHD (default: 100000)
# MT_EODHD_DAILY_LIMIT=100000

# --- Test / CI ---

# Admin connection URL for cold-start integration tests.
# Should point at the postgres admin database, not the application database.
# MT_TIMESCALE_TEST_URL=postgresql://postgres:password@host:5432/postgres
