-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
42 lines (35 loc) · 2.55 KB
/
Copy path.env.example
File metadata and controls
42 lines (35 loc) · 2.55 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
# APEX Capital AI — Environment Variables Template
# Copy this file to .env and fill in your real values.
# NEVER commit .env to git — it is excluded by .gitignore.
# ── Anthropic Claude ──────────────────────────────────────────────────────────
ANTHROPIC_API_KEY=sk-ant-api03-YOUR_KEY_HERE
# ── Second Brain (used by MONITOR watch loop) ─────────────────────────────────
# Provider options: deepseek | openai
SECOND_BRAIN_PROVIDER=deepseek
SECOND_BRAIN_MODEL=deepseek-chat
DEEPSEEK_API_KEY=sk-YOUR_DEEPSEEK_KEY_HERE
OPENAI_API_KEY=sk-proj-YOUR_OPENAI_KEY_HERE
# ── MetaTrader 5 ──────────────────────────────────────────────────────────────
MT5_LOGIN=12345678
MT5_PASSWORD=your_mt5_password
MT5_SERVER=MetaQuotes-Demo
# Common demo servers: MetaQuotes-Demo, ICMarkets-Demo, Pepperstone-Demo
# ── Telegram Bot ──────────────────────────────────────────────────────────────
# Create a bot via @BotFather and get your chat ID via @userinfobot
TELEGRAM_TOKEN=1234567890:AAAAAAAAAA-your-bot-token-here
TELEGRAM_CHAT_ID=123456789
# ── Risk Management ───────────────────────────────────────────────────────────
ACCOUNT_BALANCE=10000
MAX_DAILY_LOSS_PCT=0.03 # 3% of balance = full halt
MAX_RISK_PER_TRADE_PCT=0.01 # 1% risk per trade
MAX_OPEN_POSITIONS=3 # max simultaneous positions
# ── Spike Detection Thresholds (Watch Loop) ───────────────────────────────────
# Tune these to your broker's typical spread + volatility
SPIKE_XAUUSD=15.0 # $15 move in 1 M1 candle triggers alert
SPIKE_EURUSD=0.0030 # 30 pips
SPIKE_GBPUSD=0.0040 # 40 pips
SPIKE_USDJPY=0.80 # 80 pips
# ── News API (optional) ───────────────────────────────────────────────────────
# Free tier at https://newsapi.org — 100 requests/day
# Leave blank to use only ForexFactory + RSS (free, no key required)
NEWS_API_KEY=