← 返回
效率工具 Key 中文

Polymarket FastLoop Trader

Trade Polymarket BTC/ETH/SOL 5/15-minute fast markets with momentum and order book filters.
在Polymarket交易BTC/ETH/SOL的5/15分钟快速市场,融合动量和订单簿过滤器。
andrewbrownrd
效率工具 clawhub v1.0.10 3 版本 100000 Key: 需要
★ 0
Stars
📥 915
下载
💾 38
安装
3
版本
#btc#latest#polymarket#simmer#trading

概述

Polymarket Simmer FastLoop Trader

> [!TIP]

> This is a template. The default signal is a Mean Reversion strategy using Binance momentum exhaustion and L2 order book imbalance.

> Remix it with alternative signals like trend-following momentum, social sentiment feeds, or cross-venue arbitrage models.

> The skill handles all the plumbing (market discovery, fee-accurate EV math, position tracking). Your agent provides the alpha.

Automated trading skill 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. Signals are filtered 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: Filters trades using institutional flow data.
  • Time-of-Day Filter: 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 run, the skill scans and caches upcoming market IDs to disk (fast_markets_cache.json). At market open, the Simmer API briefly hides the market — the skill uses the cache to execute trades during this "API blackout" window, ensuring no opportunity is missed.

Setup

1. Get Simmer API Key

  • Register at simmer.markets.
  • Go to Dashboard -> SDK tab.
  • Copy your API key: export SIMMER_API_KEY="your-key-here".

2. Required Environment Variables

VariableRequiredDescriptionValues
-----------------------------------------
SIMMER_API_KEYYesYour Simmer SDK keyGet from simmer.markets
TRADING_VENUEYesExecution environmentsimmer (Paper) or polymarket (Live)
WALLET_PRIVATE_KEYOptionalYour Polymarket wallet keyRequired only if TRADING_VENUE="polymarket"
  • simmer (Default): Paper Trading. Simulates trades using virtual funds. No real USDC needed.
  • polymarket: Real Trading. Connects to Polymarket. You must have USDC in the wallet.

> [!WARNING]

> Never share your WALLET_PRIVATE_KEY or SIMMER_API_KEY. The SDK signs trades locally; your private key is never transmitted.

Quick Start

pip install simmer-sdk
export SIMMER_API_KEY="your-key-here"

# Paper mode (default)
python polymarket-simmer-fastloop.py

# Live trading
python polymarket-simmer-fastloop.py --live

# Check 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 Setup

OpenClaw:

openclaw cron add \
  --name "Simmer FastLoop" \
  --cron "*/5 * * * *" \
  --tz "UTC" \
  --session isolated \
  --message "Run: cd /path/to/skill && python polymarket-simmer-fastloop.py --live --quiet. Show output summary." \
  --announce

Linux crontab:

*/5 * * * * cd /path/to/skill && python polymarket-simmer-fastloop.py --live --quiet

All Settings

SettingDefaultDescription
-------------------------------
entry_threshold0.05Min divergence from 50c
min_momentum_pct1.0Min % asset move to trigger
max_position5.0Max $ per trade
signal_sourcebinancebinance or coingecko
lookback_minutes5Candle lookback window
min_time_remaining60Skip if < N seconds left
target_time_min90Prefer markets with >= N seconds left
target_time_max210Prefer markets with <= N seconds left
assetBTCBTC, ETH, or SOL
window5m5m or 15m
volume_confidencetrueSkip low-volume signals
require_orderbookfalseRequire order book confirmation
time_filtertrueSkip 02:00–06:00 UTC
vol_sizingtrueAdjust size by volatility
fee_buffer0.05Extra edge above fee breakeven
daily_budget10.0Max spend per UTC day
starting_balance1000.0Paper portfolio starting balance

🎨 Remixing the Signal

This skill is a remixable template. We distinguish between Plumbing (Infrastructure) and Alpha (Strategy).

Core Components:

  • 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 logic inside run_strategy where side is determined based on CEX signals.

How to Remix:

  1. Find the Signal logic: In polymarket-simmer-fastloop.py, look for the run_strategy function around line ~950.
  2. Modify the Decision:
    • Swap the side = "no" and side = "yes" logic to change from Mean Reversion to Trend Following.
    • Replace get_momentum with your own model or API (e.g., custom XGBoost classifier or GPT-4o signal).
  3. 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 logic.

Troubleshooting

"Momentum below threshold" — Asset move is too small. Lower min_momentum_pct if needed.

"Order book imbalance: neutral" — Market is balanced, signal skipped when require_orderbook=true.

"Time filter: low liquidity window" — Current hour is 02–06 UTC. Set time_filter=false to override.

版本历史

共 3 个版本

  • v1.0.8
    2026-03-30 03:54 安全
  • v1.0.10 当前
    2026-03-27 21:42 安全 安全
  • v1.0.7
    2026-03-11 11:52

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

polymarket-simmer-fastloop-sync-pulse

andrewbrownrd
使用零延迟三重触发策略交易 Polymarket BTC/ETH/SOL 5 分钟快速市场,结合币安动量、NOFX OI/Netflow(免费公共 API),...
★ 0 📥 784
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,395
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,192