39 lines
1010 B
Bash
39 lines
1010 B
Bash
# Poll active 15m markets every N ms
|
|
POLL_INTERVAL_MS=5000
|
|
|
|
# Markets to trade (comma-separated slug prefixes)
|
|
MARKET_SLUG_PREFIXES=btc-updown-15m,eth-updown-15m
|
|
|
|
# Reverse side: limit BUY at 7-10c on the cheap (underdog) outcome
|
|
CHEAP_BUY_MIN=0.07
|
|
CHEAP_BUY_MAX=0.10
|
|
CHEAP_ORDER_USDC=10
|
|
|
|
# Hedge side: limit BUY at 90-95c on the favorite outcome
|
|
ENABLE_EXPENSIVE_HEDGE=true
|
|
EXPENSIVE_BUY_MIN=0.90
|
|
EXPENSIVE_BUY_MAX=0.95
|
|
EXPENSIVE_ORDER_USDC=50
|
|
|
|
# Max shares per order (@odahoa typically uses ~90)
|
|
MAX_SHARES_PER_ORDER=90
|
|
|
|
# Only trade when this many minutes remain in the 15m window (0-15)
|
|
MINUTES_BEFORE_CLOSE_MIN=0
|
|
MINUTES_BEFORE_CLOSE_MAX=15
|
|
|
|
# Safety: set to false to place real orders
|
|
DRY_RUN=false
|
|
|
|
# CLOB / wallet (required when DRY_RUN=false)
|
|
PRIVATE_KEY=0x...
|
|
FUNDER_ADDRESS=0xe2511c9e41c5e762887e538b1d6e7221807aa237
|
|
SIGNATURE_TYPE=2
|
|
CLOB_HOST=https://clob.polymarket.com
|
|
CHAIN_ID=137
|
|
|
|
# Optional: reuse existing API credentials instead of deriving
|
|
# CLOB_API_KEY=
|
|
# CLOB_SECRET=
|
|
# CLOB_PASSPHRASE=
|