-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy path.env.example
More file actions
98 lines (79 loc) · 3.31 KB
/
Copy path.env.example
File metadata and controls
98 lines (79 loc) · 3.31 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# ==============================================================================
# RustForge Configuration Environment
# ==============================================================================
# --- Database / Infrastructure ---
POSTGRES_USER=rustforge
POSTGRES_PASSWORD=rustforge_secret
POSTGRES_DB=rustforge
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
# DragonflyDB Connection
REDIS_URL=redis://localhost:6379
# ============================================
# RustForge Terminal Configuration
# ============================================
# Copy this file to .env and fill in your keys:
# cp .env.example .env
#
# All keys marked [REQUIRED] must be set for the terminal to start.
# Keys marked [OPTIONAL] enable additional features.
# ============================================
# --- Market Data: Finnhub [REQUIRED] ---
# Sign up for free at: https://finnhub.io/register
# Free tier: 60 API calls/minute, real-time US stock WebSocket
FINNHUB_API_KEY=your_finnhub_key_here
# --- Broker: Alpaca [REQUIRED] ---
# Sign up at: https://app.alpaca.markets/signup
# Start with Paper Trading (free, no real money)
# Find keys at: Dashboard → bottom-right → "API Keys" → "Generate"
ALPACA_API_KEY=your_alpaca_key_id
ALPACA_SECRET_KEY=your_alpaca_secret_key
# Paper vs Live trading endpoint
# Paper (default): https://paper-api.alpaca.markets
# Live (real money): https://api.alpaca.markets
# CAUTION: Only use live endpoint if you understand the risks
ALPACA_BASE_URL=https://paper-api.alpaca.markets
# --- AI Analysis: Anthropic [OPTIONAL] ---
# Without this key, AI signal commentary is disabled.
# The terminal will still function for market data + paper trading.
# Sign up at: https://console.anthropic.com/
# Recommended model: claude-sonnet-4-20250514 (cost-effective)
ANTHROPIC_API_KEY=
# --- Mock Mode [OPTIONAL] ---
# Set to "1" to generate synthetic market data (no API keys needed for testing)
# Set to "0" or leave empty for real market data
USE_MOCK=0
# --- Solana Execution [OPTIONAL] ---
# Only needed if using the Solana relay/execution features
# Base58 encoded private key
SOL_PRIVATE_KEY=
# --- Trading safety defaults ---
# Use fractions for risk limits: 0.05 = 5%.
MAX_DRAWDOWN_PCT=0.05
MAX_ORDER_NOTIONAL=25000
ALLOW_MARKET_ORDERS=false
ALLOW_EXECUTOR_FALLBACK_TO_MOCK=false
ALPACA_LIVE_TRADING=false
EVENT_BUS_ALLOW_CONTROL=false
# ============================================================
# POLYMARKET CONFIGURATION
# ============================================================
# Your private key (signer) — KEEP SAFE
POLYMARKET_PRIVATE_KEY=your_private_key_here
# Your Polymarket proxy wallet address (Gnosis Safe)
POLYMARKET_FUNDER_ADDRESS=0xYourProxyWalletAddress
# Signature type: 0=EOA, 1=Magic/Email, 2=Gnosis Safe
POLYMARKET_SIGNATURE_TYPE=2
# API endpoints (defaults shown)
POLYMARKET_CLOB_HOST=https://clob.polymarket.com
POLYMARKET_GAMMA_HOST=https://gamma-api.polymarket.com
POLYMARKET_DATA_HOST=https://data-api.polymarket.com
POLYMARKET_WS_MARKET_URL=wss://ws-subscriptions-clob.polymarket.com/ws/market
# Chain ID (137 = Polygon)
POLYMARKET_CHAIN_ID=137
# Dry run mode (true = no real orders)
POLYMARKET_DRY_RUN=true
# Copy trading targets (comma-separated addresses)
POLYMARKET_COPY_TARGET_ADDRESSES=0xTargetTrader1,0xTargetTrader2
# Copy size as percentage of target's position
POLYMARKET_COPY_SIZE_PERCENT=10.0