-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.env.example
More file actions
75 lines (62 loc) · 2.24 KB
/
.env.example
File metadata and controls
75 lines (62 loc) · 2.24 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
# ============================================
# GABAGOOL VOLATILITY ARBITRAGE BOT
# Environment Configuration
# ============================================
# Copy this file to .env and fill in your values
# NEVER commit .env to version control!
# ============================================
# POLYMARKET API CREDENTIALS
# ============================================
# Get these from your Polymarket account settings
POLYMARKET_API_KEY=your_api_key_here
POLYMARKET_API_SECRET=your_api_secret_here
# ============================================
# WALLET CONFIGURATION
# ============================================
# Your Ethereum private key (64 hex characters, no 0x prefix)
# This is used to sign orders on Polymarket
# KEEP THIS SECRET - Never share or commit!
PRIVATE_KEY=your_private_key_here
# ============================================
# REDIS CONFIGURATION
# ============================================
# Connection URL for Redis (state management)
REDIS_URL=redis://localhost:6379
# ============================================
# RISK MANAGEMENT PARAMETERS
# ============================================
# Maximum unhedged position (shares)
# This limits directional exposure
MAX_UNHEDGED_DELTA=50
# Profit margin target (decimal)
# Bot only buys when pair cost < (1.00 - margin)
PROFIT_MARGIN=0.02
# Settlement buffer (seconds)
# Stop trading this many seconds before expiration
SETTLEMENT_BUFFER_SECONDS=120
# Target ROI per cycle (USD)
# Stop accumulating when locked profit reaches this
TARGET_ROI=10.0
# ============================================
# TRADING PARAMETERS
# ============================================
# Default order size (shares per order)
DEFAULT_ORDER_SIZE=10
# Minimum liquidity multiplier
# Require this multiple of order size on opposite side
MIN_LIQUIDITY_MULTIPLIER=3
# Stop loss threshold (decimal)
# Emergency liquidate if loss exceeds this percentage
STOP_LOSS_THRESHOLD=0.02
# ============================================
# API CONFIGURATION
# ============================================
# Backend API port
API_PORT=8000
# Dashboard port
DASHBOARD_PORT=3000
# ============================================
# LOGGING
# ============================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO