File size: 1,170 Bytes
8fe2df2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
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"),
}