"""Challenge configuration — baked in at package build time.

Competitors don't need to know or change these values.
Override via environment variables if needed (e.g. local dev).
"""

import os

# Coordinator URL — set by the challenge maintainer when publishing the package.
COORDINATOR_URL = os.getenv(
    "COORDINATOR_URL",
    "http://coordinator:8000",
)

# Default feed dimensions for this challenge
DEFAULT_SOURCE = os.getenv("BACKTEST_SOURCE", "binance")
DEFAULT_SUBJECT = os.getenv("BACKTEST_SUBJECT", "BTC")
DEFAULT_KIND = os.getenv("BACKTEST_KIND", "candle")
DEFAULT_GRANULARITY = os.getenv("BACKTEST_GRANULARITY", "1m")

# Prediction parameters
DEFAULT_HORIZON_SECONDS = int(os.getenv("HORIZON_SECONDS", "300"))
DEFAULT_STEP_SECONDS = int(os.getenv("STEP_SECONDS", "15"))

# Trading pairs
SUPPORTED_SYMBOLS = os.getenv("SUPPORTED_SYMBOLS", "BTC,ETH").split(",")
