-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
80 lines (67 loc) · 2.47 KB
/
Copy path.env.example
File metadata and controls
80 lines (67 loc) · 2.47 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# ── API Keys ──
ANTHROPIC_API_KEY= # Claude AI analysis (https://console.anthropic.com)
FINNHUB_API_KEY=
FMP_API_KEY=
POLYGON_API_KEY=
UW_API_KEY=
QUIVER_API_KEY=
STEADYAPI_API_KEY= # $15/mo — options flow, unusual activity (https://steadyapi.com)
FRED_API_KEY= # Free — macro data (https://fred.stlouisfed.org/docs/api/api_key.html)
# ── Contact (SEC EDGAR requires User-Agent with email) ──
SEC_EDGAR_EMAIL=
# ── Feature Flags ──
ENABLE_POLYGON=false
ENABLE_SMART_MONEY=false
ENABLE_STEADYAPI=false # Code default is true; set false until you have an API key
ENABLE_QUIVER=false
ENABLE_INTRADAY=false
PAPER_TRADE_MODE=true
# ── Strategy Enable/Disable ──
ENABLE_STAT_ARB=true
ENABLE_CATALYST=true
ENABLE_CROSS_ASSET=true
CROSS_ASSET_OVERLAY_ONLY=false
ENABLE_FLOW=false
ENABLE_GAP_REVERSION=false
# ── Risk Parameters ──
INITIAL_CAPITAL=100000
MAX_POSITION_PCT=0.08
MAX_GROSS_EXPOSURE=2.0
MAX_DRAWDOWN_PCT=0.15
TAIL_HEDGE_PCT=0.03
# ── Position Sizing ──
# Options: "quarter_kelly" (conservative), "half_kelly", "equal_risk"
SIZING_MODE=quarter_kelly
EQUAL_RISK_PER_TRADE_PCT=0.01
# ── Execution Mode ──
EXECUTION_MODE=advisory
# ── Database (Supabase) ──
# Get from Supabase Dashboard > Project Settings > API
SUPABASE_URL=https://your-project-ref.supabase.co
SUPABASE_KEY=your-anon-public-key
SUPABASE_JWT_SECRET= # Supabase Dashboard > Project Settings > API > JWT Secret
DATABASE_URL= # Direct Postgres connection string (for Alembic migrations)
# ── Redis (Railway addon — auto-injected in production) ──
REDIS_URL= # redis://default:<password>@host:port
# ── Auth ──
AUTH_ENABLED=false # Set true to require Supabase JWT on all API calls
ALLOWED_ORIGINS=http://localhost:3000 # Comma-separated allowed CORS origins
# ── Frontend Auth (set in frontend-next/.env) ──
# NEXT_PUBLIC_AUTH_ENABLED=true
# NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co
# NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-public-key
# ── Rate Limiting ──
RATE_LIMIT_DEFAULT=60/minute
RATE_LIMIT_AI=10/minute
RATE_LIMIT_SCAN=5/minute
# ── Alert Delivery ──
NTFY_TOPIC=quantpulse-alerts
NTFY_PRIORITY=high
SLACK_WEBHOOK_URL=
SLACK_CHANNEL=trading
SENDGRID_API_KEY=
ALERT_EMAIL_TO=
# ── Alert Preferences ──
ALERT_MARKET_HOURS_ONLY=true
ALERT_THROTTLE_MINUTES=30
ALERT_MIN_SCORE_FOR_PUSH=65