-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
61 lines (48 loc) · 2.12 KB
/
Copy path.env.example
File metadata and controls
61 lines (48 loc) · 2.12 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
DEBUG="false"
# Optional: capture ALL console output to a file (see src/index.ts).
# LOG_FILE_PATH supports "{date}" placeholder for daily logs.
LOG_DIR="logs"
LOG_FILE_PREFIX="bot"
# LOG_FILE_PATH="logs/bot-{date}.log"
# Markets to run (comma-separated)
TRADE_MARKETS="btc"
# If "true", waits until the next 15m boundary before starting the bot.
TRADE_WAIT_FOR_NEXT_MARKET_START="false"
# Poll interval for tick loop (ms)
TRADE_POLL_MS="50"
# Buy settings
TRADE_THRESHOLD="0.47"
TRADE_SHARES="5"
TRADE_TICK_SIZE="0.01"
# NegRisk order mode for the bot. (Also see NEG_RISK below for allowances.)
TRADE_NEG_RISK="false"
# === Allowance / approval helper settings ===================================
# Allowance script (src/security/allowance.ts) uses NEG_RISK for extra approvals.
# Keep this consistent with TRADE_NEG_RISK.
NEG_RISK="false"
# REVERSAL_DELTA=0.03
MAX_BUYS_PER_SIDE=1
# TRADE_MAX_SUM_AVG=0.99
# TRADE_POLL_MS=200 # Reduced from 1000ms
TRADE_MIN_POLL_MS=100 # Reduced from 500ms
TRADE_MAX_POLL_MS=2000 # Reduced from 5000ms
# TRADE_USE_FAK=true # Note: Still uses GTC with aggressive pricing
# TRADE_FIRE_AND_FORGET=true # Don't wait for confirmation (default: true)
# TRADE_PRICE_BUFFER=0.03 # 3 cent buffer (was 0.01)
TRADE_ORDER_CHECK_DELAY_MS=100 # Reduced from 500ms
TRADE_ORDER_RETRY_DELAY_MS=300 # Reduced from 1000ms
TRADE_ORDER_MAX_ATTEMPTS=2 # Reduced from 3
# TRADE_SECOND_SIDE_BUFFER=0.03
# SPEED & OPPORTUNITY CATCHING OPTIMIZATIONS
REVERSAL_DELTA=0.02
REVERSAL_DELTA_THRESHOLD_PERCENT=0.1 # Reduced from 0.020
TRADE_DEPTH_BUY_DISCOUNT_PERCENT=0.02 # Reduced from 0.05
TRADE_SECOND_SIDE_BUFFER=0.003 # Reduced from 0.01
TRADE_PRICE_BUFFER=0.05 # Increased from 0.03 # Increased from 0.499
TRADE_MAX_SUM_AVG=0.99 # Increased from 0.98 # Reduced from 4
# Keep existing speed optimizations
TRADE_FIRE_AND_FORGET=true
TRADE_ADAPTIVE_POLLING=true
TRADE_DYNAMIC_PRICE_BUFFER=true
TRADE_USE_FAK=true
PRIVATE_KEY=