-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (31 loc) · 1.39 KB
/
Copy path.env.example
File metadata and controls
37 lines (31 loc) · 1.39 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
# ==========================================
# GRID TRADING BOT CONFIGURATION
# ==========================================
# Copy this file to .env and fill in your values
# Database Configuration (SQLite)
# -------------------------------------
DB_PATH=/data/grid_trading.db
# Service Ports
# -------------------------------------
GRID_PORT=8080 # Grid Trading Service
ASSURANCE_PORT=9090 # Order Assurance Service
MONITOR_PORT=7070 # Price Monitor Service
# Internal Service URLs
# -------------------------------------
# Always use localhost (host network mode)
ORDER_ASSURANCE_URL=http://localhost:9090
GRID_TRADING_URL=http://localhost:8080
# Binance API Credentials (REQUIRED)
# -------------------------------------
# Get these from: https://www.binance.com/en/my/settings/api-management
BINANCE_API_KEY=your_binance_api_key_here
BINANCE_API_SECRET=your_binance_api_secret_here
# Price Monitor Configuration
# -------------------------------------
PRICE_CHECK_INTERVAL_MS=10000 # How often to check prices (milliseconds)
MIN_PRICE_CHANGE_PCT=0.04 # Minimum price change % to trigger. (0.01 = 0.01%)
TRADING_FEE=0.1 # Trading fee percentage (0.1 = 0.1%)
# Sync Job Configuration
# -------------------------------------
SYNC_JOB_ENABLED=true # Enable hourly order status sync
SYNC_JOB_CRON=0 * * * * # Cron expression (hourly by default)