微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⚡

极速市场动量套利专家

Polymarket Fast Loop · v0.1.0
专业技能 安全 B 级 作者 johnjerry8749 公开目录收录
1.2k 下载 0 安装 5.9k 收藏 10 浏览

简介

Polymarket 极速市场自动化交易工具,基于币安 BTC 动量信号在 5/15 分钟短周期预测市场套利,支持智能仓位管理与自定义信号扩展

原始描述

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...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/polymarket-fast-loop-40183/
其它 Agent解压到它自己的 skills 目录,目录名用 polymarket-fast-loop-40183

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

Polymarket FastLoop Trader 是一款专为 Polymarket 极速市场(Fast Market)设计的自动化交易代理。系统以 5 分钟或 15 分钟为周期,持续监控 BTC、ETH、SOL 等资产的定向预测市场,通过对比币安等 CEX 实时价格动量与预测市场赔率价差,执行套利交易。

运行模式上,脚本采用单次执行设计,由外部 cron/heartbeat 驱动循环。用户可通过 --live 启用实盘交易,默认 dry-run 模式便于策略验证。配置支持 config.json、环境变量及 CLI 参数三重方式,关键参数包括入场阈值(默认 5¢偏离 50¢)、最小动量(0.5%)、单次仓位上限($5)等。

显著优点

  • 极速市场专精: 针对 Polymarket 5/15 分钟高频预测市场优化,填补短周期自动化交易工具空白
  • 信号可扩展: 默认币安动量信号仅为基线,支持多交易所价差、社交情绪、技术指标、新闻事件等自定义信号叠加
  • 智能风控机制: 内置成交量加权过滤(剔除虚假波动)、剩余时间检查(默认 >60s)、仓位智能缩放(smart-sizing)
  • 精细化追踪: 交易自动标记 sdk:fastloop 来源标签,便于独立核算策略盈亏
  • 灵活部署: 支持本地 cron、云函数、OpenClaw heartbeat 等多种调度方式

潜在局限与风险

  • 费率侵蚀: Polymarket 极速市场收取 10% 盈利手续费(is_paid: true),对薄利策略构成显著成本压力,需严格计入边缘计算
  • API 依赖与限额: 依赖 Simmer API(免费版 10 次/日导入限制,Pro 版 50 次),高频交易需付费升级;币安/Coingecko 价格源存在单点故障风险
  • 流动性风险: 极速市场订单簿较薄,大额仓位可能遭遇滑点或无流动性成交失败
  • 时间窗口脆弱性: 5 分钟周期对市场延迟极度敏感,网络抖动或 API 延迟可能导致错过入场窗口

适合人群

  • 熟悉 Polymarket 机制、具备短线交易经验的量化交易者
  • 希望自动化执行 CEX-预测市场套利策略的 DeFi 用户
  • 具备 Python/CLI 基础、能自主部署 cron 或云函数的技术用户
  • 可承受高频交易本金波动、理解 10% 费率结构的进阶玩家

常规风险提示

本技能涉及真实资金自动交易,建议充分测试 dry-run 模式后再启用 --live。自定义信号开发需严格回测,避免因过拟合导致实盘亏损。请确保 Simmer API Key 安全存储,避免泄露至版本控制。

技能正文


name: polymarket-fast-loop displayName: Polymarket FastLoop Trader description: 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 user wants to trade sprint/fast markets, automate short-term crypto trading, or use CEX momentum as a Polymarket signal. metadata: {"clawdbot":{"emoji":"⚡","requires":{"env":["SIMMER_API_KEY"]},"cron":null,"autostart":false}} authors:

  • Simmer (@simmer_markets) version: "1.0.6" published: true

Polymarket FastLoop Trader

Trade Polymarket's 5-minute BTC fast markets using real-time price momentum from Binance.

Polymarket only. All trades execute on Polymarket with real USDC. Use --live for real trades, dry-run is the default.

How it works: Every cycle, the script finds the current live BTC fast market, checks BTC price momentum on Binance, and trades if momentum diverges from market odds.

This is a template. The default signal (Binance momentum) gets you started. Your agent's reasoning is the edge — layer on sentiment analysis, multi-exchange spreads, news feeds, or custom signals to improve it.

⚠️ Fast markets carry Polymarket's 10% fee (is_paid: true). Factor this into your edge calculations.

When to Use This Skill

Use this skill when the user wants to:

  • Trade BTC sprint/fast markets (5-minute or 15-minute)
  • Automate short-term crypto prediction trading
  • Use CEX price momentum as a Polymarket signal
  • Monitor sprint market positions

Setup Flow

When user asks to install or configure this skill:

  1. Ask for Simmer API key

    • Get from simmer.markets/dashboard → SDK tab
    • Store in environment as SIMMER_API_KEY
  2. 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)
  3. 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:

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

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

Example config.json

{
  "entry_threshold": 0.08,
  "min_momentum_pct": 0.3,
  "max_position": 10.0,
  "asset": "BTC",
  "window": "5m",
  "signal_source": "binance"
}

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):

  1. Fetch last 5 one-minute candles from Binance (BTCUSDT)
  2. Calculate momentum: (price_now - price_5min_ago) / price_5min_ago
  3. Compare momentum direction to current Polymarket odds
  4. 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)

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.

Customizing Your Signal

The default momentum signal is a starting point. To add your own edge:

  • Multi-exchange: 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
  • Technical indicators: RSI, VWAP, order flow analysis
  • News: Breaking news correlation — use your agent's reasoning to interpret headlines

The skill handles all the Simmer plumbing (discovery, import, trade execution). Your agent provides the alpha.

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_remaining if 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=coingecko as fallback

"Trade failed: no liquidity"

  • Fast market has thin book, try smaller position size

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

polymarketprediction-marketsbtcalgorithmic-tradingmomentum-tradingdefiapi-tradingshort-term-trading

同类 Skill