""" Central configuration for the intraday trading system. All constants, paths, and model architecture definitions live here. """ from pathlib import Path # ── Paths ── PROJECT_DIR = Path(__file__).resolve().parent.parent DATA_DIR = PROJECT_DIR / "data" / "minute_ohlcv" TRADE_LOG = PROJECT_DIR / "data" / "live_trades.json" LOG_FILE = PROJECT_DIR / "logs" / "live_trader.log" # ── Universe ── TICKERS = ["INFY", "ASIANPAINT", "TECHM", "POWERGRID", "ONGC"] # ── Capital & Risk ── STARTING_CAP = 3692.0 LEVERAGE = 5.0 MIN_CONFIDENCE = 0.50 # ── Schedule (IST) ── SIGNAL_HOUR = 9 SIGNAL_MINUTE = 31 # ── Pipeline mapping ── # Defines which feature extractor and model architecture each ticker uses. # Format: { ticker: (feature_type, model_key) } # feature_type : "semantic" | "sequential" # model_key : "ensemble" | "lr_pipeline" PIPELINE_MAP = { "INFY": ("semantic", "ensemble"), "TECHM": ("sequential", "kbest15_lr"), "ASIANPAINT": ("sequential", "ensemble"), "POWERGRID": ("sequential", "ensemble"), "ONGC": ("semantic", "lr_pipeline"), }