-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (51 loc) · 1.66 KB
/
Copy path.env.example
File metadata and controls
60 lines (51 loc) · 1.66 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
# =============================================================================
# flatline — environment configuration
# Copy to .env and fill in. NEVER commit .env.
# =============================================================================
# --- Anthropic ---
ANTHROPIC_API_KEY=sk-ant-...
CLAUDE_DECISION_MODEL=claude-haiku-4-5-20251001
CLAUDE_REVIEW_MODEL=claude-opus-4-7
# --- Solana wallet (fresh keypair, this experiment ONLY) ---
# Base58-encoded secret key. Generated via scripts/setup-wallet.ts.
WALLET_SECRET_KEY=
WALLET_PUBLIC_KEY=
# --- RPC / on-chain data ---
HELIUS_API_KEY=
HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=
HELIUS_REGION=fra
# --- Market data ---
DEXSCREENER_BASE_URL=https://api.dexscreener.com
LUNARCRUSH_API_KEY=
# --- Telegram bot ---
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
# Only this user ID can issue /halt
TELEGRAM_AUTHORIZED_USER_ID=
# --- Agent runtime ---
NODE_ENV=production
LOG_LEVEL=info
DASHBOARD_PORT=3000
DASHBOARD_HOST=127.0.0.1
DB_PATH=./data/trading.db
# --- Safety bounds (enforced in code; .env is for ops convenience only) ---
# Editing these does NOT loosen hard rules — see src/config.ts.
STARTING_CAPITAL_USDC=30
MAX_POSITION_SIZE_USDC=5
MAX_CONCURRENT_POSITIONS=3
STOP_LOSS_PCT=0.40
SOFT_PAUSE_DRAWDOWN_USDC=8
HARD_STOP_DRAWDOWN_USDC=13
DAILY_TRADE_CAP=12
SOL_RESERVE_FLOOR=0.015
SLIPPAGE_BUDGET_ONE_WAY=0.015
JUPITER_SLIPPAGE_BPS=150
# --- Loop cadences (ms) ---
DECISION_LOOP_INTERVAL_MS=180000
DECISION_LOOP_JITTER_MS=30000
SAFETY_LOOP_INTERVAL_MS=15000
RECONCILER_INTERVAL_MS=300000
HEARTBEAT_MAX_AGE_HOURS=12
# --- Mode flags ---
# Set to "true" to run decision logic without sending transactions
PAPER_TRADE=false