Polymarket FastLoop Trader
v1.0.10Trade Polymarket BTC/ETH/SOL 5/15-minute fast markets with momentum and order book 过滤器s.
运行时依赖
安装命令
点击复制技能文档
Polymarket Simmer FastLoop Trader
[!TIP] This is a template. The default 签名al is a Mean Reversion strategy using Binance momentum exhaustion and L2 order book imbalance. Remix it with alternative 签名als like trend-following momentum, social sentiment feeds, or cross-venue arbitrage 模型s. The 技能 handles all the plumbing (market discovery, fee-accurate EV math, position 追踪ing). Your 代理 provides the alpha.
Automated trading 技能 for Polymarket BTC/ETH/SOL 5-minute and 15-minute fast markets.
Default is paper mode. Use --live for real trades.
Strategy
When the latest 5-minute candle shows a rAPId spike (momentum > threshold) the script buys the reverse side, capturing the pullback. 签名als are 过滤器ed by:
Momentum: Binance 1-minute candles, configurable threshold (default 1.0%). Order Book Imbalance (optional): Top 20 levels of Binance L2 book confirm directional bias. NOFX Institutional Netflow: 过滤器s trades using institutional flow data. Time-of-Day 过滤器: Skips low-liquidity hours (02:00–06:00 UTC) by default. Fee-Accurate EV: Only trades when divergence exceeds fee breakeven + buffer. Volatility-Adjusted Sizing: High volatility reduces position size automatically. Pre-Caching (Ignition): On every 运行, the 技能 扫描s and 缓存s upcoming market IDs to disk (fast_markets_缓存.json). At market open, the Simmer API briefly hides the market — the 技能 uses the 缓存 to 执行 trades during this "API blackout" window, ensuring no opportunity is missed. 设置up
- 获取 Simmer API Key
- Required 环境 Variables
[!警告] Never 分享 your WALLET_PRIVATE_KEY or SIMMER_API_KEY. The SDK 签名s trades locally; your private key is never transmitted.
Quick 启动 pip 安装 simmer-sdk 导出 SIMMER_API_KEY="your-key-here"
# Paper mode (default) python polymarket-simmer-fastloop.py
# Live trading python polymarket-simmer-fastloop.py --live
# 检查 win rate and P&L stats python polymarket-simmer-fastloop.py --stats
# Resolve expired trades agAInst real outcomes python polymarket-simmer-fastloop.py --resolve
# Quiet mode for cron python polymarket-simmer-fastloop.py --live --quiet
Cron 设置up
OpenClaw:
OpenClaw cron 添加 \ --name "Simmer FastLoop" \ --cron "/5 " \ --tz "UTC" \ --会话 isolated \ --message "运行: cd /path/to/技能 && python polymarket-simmer-fastloop.py --live --quiet. Show 输出 summary." \ --announce
Linux crontab:
/5 cd /path/to/技能 && python polymarket-simmer-fastloop.py --live --quiet
All 设置tings 设置ting Default Description entry_threshold 0.05 Min divergence from 50c min_momentum_pct 1.0 Min % as设置 move to trigger max_position 5.0 Max $ per trade 签名al_source binance binance or coingecko lookback_minutes 5 Candle lookback window min_time_remAIning 60 Skip if < N seconds left tar获取_time_min 90 Prefer markets with >= N seconds left tar获取_time_max 210 Prefer markets with <= N seconds left as设置 BTC BTC, ETH, or SOL window 5m 5m or 15m volume_confidence true Skip low-volume 签名als require_orderbook false Require order book confirmation time_过滤器 true Skip 02:00–06:00 UTC vol_sizing true Adjust size by volatility fee_buffer 0.05 Extra edge above fee breakeven dAIly_bud获取 10.0 Max spend per UTC day 启动ing_balance 1000.0 Paper portfolio 启动ing balance 🎨 Remixing the 签名al
This 技能 is a remixable template. We distin图形界面sh between Plumbing (Infrastructure) and Alpha (Strategy).
Core 组件s: The Plumbing (Structural): Market discovery (Gamma/Simmer fallback), Pre-Caching, execution via Simmer SDK, and fee-accurate EV calculations. The Alpha (Replaceable): The decision-making 记录ic inside 运行_strategy where side is determined based on CEX 签名als. How to Remix: Find the 签名al 记录ic: In polymarket-simmer-fastloop.py, look for the 运行_strategy function around line ~950. Modify the Decision: Swap the side = "no" and side = "yes" 记录ic to change from Mean Reversion to Trend Following. Replace 获取_momentum with your own 模型 or API (e.g., custom XGBoost classifier or GPT-4o 签名al). Refine Execution: Edit calculate_position_size to implement custom risk management formulas.
Use this template to bypass the complexity of Polymarket's order book and focus entirely on your strategy 记录ic.
Troubleshooting
"Momentum below threshold" — As设置 move is too small. Lower min_momentum_pct if needed.
"Order book imbalance: neutral" — Market is balanced, 签名al skipped when re