Polymarket Fast Loop
by @richducat
Trade Polymarket BTC 5-minute and 15-minute fast markets using CEX price momentum signals via Simmer API. Default signal is Binance BTC/USDT klines. Use when...
# Set your API key
export SIMMER_API_KEY="your-key-here"Dry run β see what would happen
python fastloop_trader.pyGo live
python fastloop_trader.py --liveLive + quiet (for cron/heartbeat loops)
python fastloop_trader.py --live --quietLive + smart sizing (5% of balance per trade)
python fastloop_trader.py --live --smart-sizing --quiet
Configure via config.json, environment variables, or --set:
# Change entry threshold
python fastloop_trader.py --set entry_threshold=0.08Trade ETH instead of BTC
python fastloop_trader.py --set asset=ETHMultiple settings
python fastloop_trader.py --set min_momentum_pct=0.3 --set max_position=10
Settings
| Setting | Default | Env Var | Description |
|---------|---------|---------|-------------|
| entry_threshold | 0.05 | SIMMER_SPRINT_ENTRY | Min price divergence from 50Β’ to trigger |
| min_momentum_pct | 0.5 | SIMMER_SPRINT_MOMENTUM | Min BTC % move to trigger |
| max_position | 5.0 | SIMMER_SPRINT_MAX_POSITION | Max $ per trade |
| signal_source | binance | SIMMER_SPRINT_SIGNAL | Price feed (binance, coingecko) |
| lookback_minutes | 5 | SIMMER_SPRINT_LOOKBACK | Minutes of price history |
| min_time_remaining | 60 | SIMMER_SPRINT_MIN_TIME | Skip fast markets with less time left (seconds) |
| asset | BTC | SIMMER_SPRINT_ASSET | Asset to trade (BTC, ETH, SOL) |
| window | 5m | SIMMER_SPRINT_WINDOW | Market window duration (5m or 15m) |
| volume_confidence | true | SIMMER_SPRINT_VOL_CONF | Weight signal by Binance volume |
Example config.json
{
"entry_threshold": 0.08,
"min_momentum_pct": 0.3,
"max_position": 10.0,
"asset": "BTC",
"window": "5m",
"signal_source": "binance"
}
"No active fast markets found"
"No fast markets with >60s remaining"
min_time_remaining if you want to trade closer to expiry"Import failed: Rate limit exceeded"
"Failed to fetch price data"
--set signal_source=coingecko as fallback"Trade failed: no liquidity"
"External wallet requires a pre-signed order"
WALLET_PRIVATE_KEY is not set in the environmentexport WALLET_PRIVATE_KEY=0x"Balance shows $0 but I have USDC on Polygon"
0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174) β not native USDCclawhub install dolph-fast-loop