研究 Polymarket 行情与鲸鱼流向,跟踪聪明钱盈亏榜;获授权后在 Polygon 钱包下单并受硬性风控约束。
编程
Polymarket FastLoop Trader
用 Binance 价格动量作为信号,通过 Simmer SDK 在 Polymarket 上交易 5 分钟/15 分钟 BTC 闪盘。
它能做什么
通过 Polymarket Gamma API 实时发现 BTC、ETH、SOL 闪盘市场,以真实 USDC 下单。默认信号抓取 Binance K 线,计算 5 分钟价格动量,在价差和成交量同时满足阈值时入场。它本身是模板:信号函数可以替换成自定义数据源,行情发现、市场导入、下单执行由 skill 自动处理。默认 dry-run,加 --live 才会真实下单。
什么时候用它
- 自动化交易 BTC、ETH 或 SOL 的 5m/15m 闪盘
- 把默认 Binance 信号换成自定义数据源
- 按账户余额自动分配仓位
- 通过 sdk:fastloop 标签单独统计闪盘盈亏
技能文档
Polymarket FastLoop Trader
Trade Polymarket's 5-minute crypto fast markets using real-time price signals. Default: BTC momentum from Binance. Works with ETH and SOL too.
Polymarket only. All trades execute on Polymarket with real USDC. Use
--livefor real trades, dry-run is the default.
This is a template. The default signal (Binance momentum) gets you started — remix it with your own signals, data sources, or strategy. The skill handles all the plumbing (market discovery, import, trade execution). Your agent provides the alpha.
⚠️ Fast markets carry Polymarket's crypto taker fee (
is_paid: true). Effective rate is 3.5% at 50¢, up to ~6.6% on cheap shares (e.g. 5¢ NO). Makers pay 0% and earn a 20% rebate from collected taker fees. Factor this into your edge calculations.
⚠️ Risk monitoring does not apply to sub-15-minute markets. Simmer's stop-loss and take-profit monitors check positions every 15 minutes — which means they will never fire on 5m or 15m markets before resolution. Any risk settings you configure in the Simmer dashboard have no effect on these positions. Size accordingly and do not rely on automated stop-losses for fast market trades.
News-recency veto. Optional guard that checks Simmer's macro-news schedule before order placement and skips matching news-resolution markets inside the first 30 seconds after CPI, BLS jobs/unemployment, FOMC, nonfarm payrolls, or quarterly earnings events. Continuous-feed crypto Up/Down markets are not blocked by this veto. Default is off until internal positive backfill coverage exists; set
enable_news_veto=trueto enable it.
How It Finds Markets
- Queries Polymarket directly (Gamma API) for live fast markets — doesn't depend on Simmer's market inventory
- Discovers new markets as they appear, every cycle
- Works with BTC, ETH, or SOL — just change the asset (
--set asset=ETH) or ask your bot to look for whatever market you want - Runs every 5 minutes to catch each trading window (or every 1 minute for mid-window opportunities)
You don't need to wait for markets to show up in Simmer. FastLoop finds them in real-time on Polymarket, then imports and trades them through Simmer.
🚨 Framework, not a production trading system. Read DISCLAIMER.md before connecting to a wallet with real funds.
When to Use This Skill
Use this skill when the user wants to:
- Trade crypto sprint/fast markets (5-minute or 15-minute) on any supported asset
- Automate short-term crypto prediction trading
- Use CEX price momentum (or any custom signal) as a Polymarket signal
- Monitor sprint market positions
Setup Flow
When user asks to install or configure this skill:
-
Install the Simmer SDK
pip install simmer-sdk -
Ask for Simmer API key
- Get from simmer.markets/dashboard → SDK tab
- Store in environment as
SIMMER_API_KEY
-
Ask for wallet private key (required for live trading)
- This is the private key for their Polymarket wallet (the wallet that holds USDC)
- Store in environment as
WALLET_PRIVATE_KEY - The SDK uses this to sign orders client-side automatically — no manual signing needed
-
Ask about settings (or confirm defaults)
- Asset: BTC, ETH, or SOL (default BTC)
- Entry threshold: Min divergence to trade (default 5¢)
- Max position: Amount per trade (default $5.00)
- Window: 5m or 15m (default 5m)
-
Set up cron or loop (user drives scheduling — see "How to Run on a Loop")
Quick Start
# Set your API key
export SIMMER_API_KEY="your-key-here"
# Dry run — see what would happen
python fastloop_trader.py
# Go live
python fastloop_trader.py --live
# Live + quiet (for cron/heartbeat loops)
python fastloop_trader.py --live --quiet
# Live + smart sizing (5% of balance per trade)
python fastloop_trader.py --live --smart-sizing --quiet
How to Run on a Loop
The script runs one cycle — your bot drives the loop. Set up a cron job or heartbeat:
Linux crontab (local/VPS installs):
# Every 5 minutes (one per fast market window)
*/5 * * * * cd /path/to/skill && python fastloop_trader.py --live --quiet
# Every 1 minute (more aggressive, catches mid-window opportunities)
* * * * * cd /path/to/skill && python fastloop_trader.py --live --quiet
OpenClaw native cron (containerized or OpenClaw-managed setups):
openclaw cron add \
--name "Fast Loop Trader" \
--cron "*/5 * * * *" \
--tz "UTC" \
--session isolated \
--message "Run fast loop trader: cd /path/to/skill && python fastloop_trader.py --live --quiet. Show the output summary." \
--announce
Via OpenClaw heartbeat: Add to your HEARTBEAT.md:
Run: cd /path/to/fast market && python fastloop_trader.py --live --quiet
Configuration
Configure via config.json, environment variables, or --set:
# Change entry threshold
python fastloop_trader.py --set entry_threshold=0.08
# Trade ETH instead of BTC
python fastloop_trader.py --set asset=ETH
# Multiple 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 |
enable_news_veto | false | SIMMER_FASTLOOP_ENABLE_NEWS_VETO | Skip matching news-resolution markets within 30s of scheduled macro/news releases |
Example config.json
{
"entry_threshold": 0.08,
"min_momentum_pct": 0.3,
"max_position": 10.0,
"asset": "BTC",
"window": "5m",
"signal_source": "binance",
"enable_news_veto": false
}
CLI Options
python fastloop_trader.py # Dry run
python fastloop_trader.py --live # Real trades
python fastloop_trader.py --live --quiet # Silent except trades/errors
python fastloop_trader.py --smart-sizing # Portfolio-based sizing
python fastloop_trader.py --positions # Show open fast market positions
python fastloop_trader.py --config # Show current config
python fastloop_trader.py --set KEY=VALUE # Update config
Signal Logic
Default signal (Binance momentum):
- Fetch last 5 one-minute candles from Binance (
BTCUSDT) - Calculate momentum:
(price_now - price_5min_ago) / price_5min_ago - Compare momentum direction to current Polymarket odds
- Trade when:
- Momentum ≥
min_momentum_pct(default 0.5%) - Price diverges from 50¢ by ≥
entry_threshold(default 5¢) - Volume ratio > 0.5x average (filters out thin moves)
- Momentum ≥
Example: BTC up 0.8% in last 5 min, but fast market YES price is only $0.52. The 3¢ divergence from the expected ~$0.55 → buy YES.
Remix It: Plug In Your Own Signal
This skill is a template. The default Binance momentum signal is just a starting point. The skill handles all the boring parts (market discovery, import, order execution, budget tracking). You bring the signal.
Ideas for custom signals:
- Multi-exchange spreads: Compare prices across Binance, Kraken, Bitfinex — divergence between exchanges can predict CLOB direction
- Sentiment: Layer in Twitter/social signals — a viral tweet can move fast markets before the CLOB adjusts
- Technical indicators: RSI, VWAP, order flow analysis from your favorite data source
- News: Breaking news correlation — use your agent's reasoning to interpret headlines
- On-chain data: Whale movements, funding rates, liquidation levels
To customize, edit get_momentum() in fastloop_trader.py or add your own signal function. The rest of the skill (discovery, import, sizing, fee-aware EV check) stays the same.
Example Output
⚡ Simmer FastLoop Trading Skill
==================================================
[DRY RUN] No trades will be executed. Use --live to enable trading.
⚙️ Configuration:
Asset: BTC
Entry threshold: 0.05 (min divergence from 50¢)
Min momentum: 0.5% (min price move)
Max position: $5.00
Signal source: binance
Lookback: 5 minutes
Min time left: 60s
Volume weighting: ✓
🔍 Discovering BTC fast markets...
Found 3 active fast markets
🎯 Selected: Bitcoin Up or Down - February 15, 5:30AM-5:35AM ET
Expires in: 185s
Current YES price: $0.480
📈 Fetching BTC price signal (binance)...
Price: $97,234.50 (was $96,812.30)
Momentum: +0.436%
Direction: up
Volume ratio: 1.45x avg
🧠 Analyzing...
⏸️ Momentum 0.436% < minimum 0.500% — skip
📊 Summary: No trade (momentum too weak: 0.436%)
Source Tagging
All trades are tagged with source: "sdk:fastloop". This means:
- Portfolio shows breakdown by strategy
- Other skills won't interfere with your fast market positions
- You can track fast market P&L separately
Troubleshooting
"No active fast markets found"
- Fast markets may not be running (off-hours, weekends)
- Check Polymarket directly for active BTC fast markets
"No fast markets with >60s remaining"
- Current window is about to expire, next one isn't live yet
- Reduce
min_time_remainingif you want to trade closer to expiry
"Import failed: Rate limit exceeded"
- Free tier: 10 imports/day. Pro: 50/day
- Fast market trading needs Pro for reasonable frequency
"Failed to fetch price data"
- Binance API may be down or rate limited
- Try
--set signal_source=coingeckoas fallback
"Trade failed: no liquidity"
- Fast market has thin book, try smaller position size
"External wallet requires a pre-signed order"
WALLET_PRIVATE_KEYis not set in the environment- The SDK signs orders automatically when this env var is present — no manual signing code needed
- Fix:
export WALLET_PRIVATE_KEY=0x - Do NOT attempt to sign orders manually or modify the skill code — the SDK handles it
"Balance shows $0 but I have funds on Polygon"
- Polymarket V2 (live 2026-04-28) uses pUSD (PolyUSD, 1:1 backed by USDC.e). If your wallet holds USDC.e, migrate at simmer.markets/dashboard with one click (~30s)
- If you bridged native USDC (Circle), swap to USDC.e first, then migrate to pUSD
- Full migration guide: docs.simmer.markets/v2-migration
常见问题
- Simmer 的止损/止盈对 5m/15m 仓位有效吗?
- 无效。Simmer 风控每 15 分钟才检查一次,闪盘到期前不会被触发,所以在仪表盘里配置的止损止盈对这类仓位不起作用,需要靠仓位控制。
- 除了 Binance 还能用别的行情源吗?
- 可以。设置 signal_source=coingecko 作为备用,或者直接改 fastloop_trader.py 里的 get_momentum() 接入自己的信号函数,行情发现、导入、下单等逻辑不用动。
- 闪盘的手续费怎么算?
- 闪盘按 Polymarket 加密货币 taker 费收取:50¢ 时约 3.5%,便宜份额(如 5¢ NO)最高约 6.6%。挂单方 0%,并从 taker 费中获得 20% 返还,套利前要算进成本。
相关技能
扫描临近结算的 Polymarket 市场,按 60/40 以上强偏度筛选,并在受控仓位下押注高概率一方。
通过一个命令行工具完成多链加密货币交易、钱包管理与 AI 市场分析。
批量或实时镜像顶级 Polymarket 巨鲸仓位,内置再平衡与单笔限额。
一条提示词搞定代币、DeFi、链上数据与组合策略的深度加密研究。
对每日股票 OHLCV CSV 运行做多策略回测,输出统一绩效指标与逐笔交易记录。