Repository navigation
Expand file tree
/
Copy pathconfig.toml
More file actions
46 lines (38 loc) · 1.69 KB
/
Copy pathconfig.toml
File metadata and controls
46 lines (38 loc) · 1.69 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
# PolyShark Configuration
[permission]
# ERC-7715 Daily Spend Permission
daily_limit_usdc = 10.0
duration_days = 30
token = "USDC"
[trading]
# Arbitrage detection thresholds
min_spread_threshold = 0.001 # 2% minimum spread to trigger signal
min_profit_threshold = 0.10 # $0.10 minimum expected profit
trade_size = 5.0 # Fixed trade size per leg (USDC)
max_position_value = 50.0 # Maximum total position value
[timing]
poll_interval_secs = 5 # How often to poll for opportunities
position_timeout_secs = 3600 # 1 hour max hold time
latency_base_ms = 50 # Base latency model
adverse_selection_std = 0.001 # 0.1% adverse move std
[api]
gamma_url = "https://gamma-api.polymarket.com/events"
clob_url = "https://clob.polymarket.com"
websocket_url = "wss://ws-subscriptions-clob.polymarket.com/ws"
market_limit = 20 # Max markets to fetch
[logging]
level = "info" # debug, info, warn, error
colorize = true
[strategy]
# Adaptive trading based on remaining allowance
conservative_threshold = 0.30 # Below 30% → conservative mode
aggressive_threshold = 0.70 # Above 70% → aggressive mode
conservative_min_edge = 0.05 # 5% min edge in conservative mode
normal_min_edge = 0.02 # 2% min edge in normal mode
aggressive_min_edge = 0.01 # 1% min edge in aggressive mode
[safety]
# Failure handling and safe mode
max_data_delay_ms = 5000 # Suspend trading if Envio delay exceeds this
max_consecutive_failures = 3 # Enter safe mode after N API failures
safe_mode_cooldown_secs = 300 # Wait 5 minutes before retrying
assume_zero_on_perm_error = true # Assume 0 allowance if permission query fails