-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCONFIG.py
More file actions
33 lines (27 loc) · 1.94 KB
/
Copy pathCONFIG.py
File metadata and controls
33 lines (27 loc) · 1.94 KB
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
import os
from dotenv import load_dotenv
load_dotenv(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".env"))
# ── Run Mode ───────────────────────────────────────────────────────────────────
RUN_MODE = "backtest" # "live" | "backtest"
# ── LLM Provider ──────────────────────────────────────────────────────────────
LLM_PROVIDER = os.getenv("LLM_PROVIDER", "qgenie")
QGENIE_MODEL = os.getenv("QGENIE_MODEL", "")
OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "")
# ── Signal Strategy ────────────────────────────────────────────────────────────
# Must match a key registered in signal_strategies/__init__.py
SIGNAL_STRATEGY = "default"
# ── Scraper Filters ────────────────────────────────────────────────────────────
EXCHANGES = ["NYSE", "Nasdaq"]
LANGUAGES = ["English"]
DATE_RANGE = ("2026-02-27", "2026-04-20") # used only when RUN_MODE = "backtest"
SUBJECTS = ["Financing Agreements"]
INDUSTRIES = None
TAGS = None
CONTINENTS = None
COUNTRIES = None
STATES = None
PAGE_SIZE = 50
# ── Database ───────────────────────────────────────────────────────────────────
# Shared DB at GlobeNewsWire/db/ — independent of which pipeline folder is running
_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DB_PATH = os.path.join(_ROOT, "db", "articles_cache.db")