๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
ๅฐ้พ™่™พๅฐ้พ™่™พAI
๐Ÿค–

Polymarket Fast Loop Improved

Trade Polymarket BTC/ETH/SOL 5-minute and 15-minute fast markets using multi-signal CEX momentum. Adds funding rate confirmation, order book imbalance, time-...

ไธ‹่ฝฝ207
ๆ˜Ÿๆ ‡0
็‰ˆๆœฌ0.1.0
่ฅ้”€ๆŽจๅนฟ
ๅฎ‰ๅ…จ้€š่ฟ‡
โš™๏ธ่„šๆœฌ

ๆŠ€่ƒฝ่ฏดๆ˜Ž


name: polymarket-fast-loop-improved displayName: Polymarket FastLoop Trader (Improved) description: Trade Polymarket BTC/ETH/SOL 5-minute and 15-minute fast markets using multi-signal CEX momentum. Adds funding rate confirmation, order book imbalance, time-of-day filtering, volatility-adjusted sizing, win-rate calibration, and fee-accurate EV math. Use when user wants to trade sprint/fast markets with a more rigorous edge filter. metadata: {"clawdbot":{"emoji":"โšก","requires":{"env":["SIMMER_API_KEY"],"pip":["simmer-sdk"]},"cron":null,"autostart":false,"automaton":{"managed":true,"entrypoint":"fastloop_improved.py"}}} authors:

  • Based on Simmer (@simmer_markets) original, enhanced version: "1.0.0" published: false

Polymarket FastLoop Trader โ€” Improved

An enhanced version of the Simmer FastLoop skill with rigorous edge filtering, multi-signal confirmation, and real calibration tracking.

Default is paper mode. Use --live for real trades. Always run 100+ paper trades first to validate your win rate before going live.

โš ๏ธ Fast markets carry Polymarket's 10% fee. Your signal needs to be right 63%+ of the time to profit. This skill will tell you your actual win rate.

Key Improvements Over Original

FeatureOriginalImproved
Fee mathApproximateExact breakeven with configurable buffer
SignalBinance momentum onlyMomentum + funding rate + order book
Momentum threshold0.5% (too low)1.0% default, calibration-driven
Time filteringNoneSkips low-liquidity hours
Position sizingFixedVolatility-adjusted
Win rate trackingNoneLogs outcomes, reports calibration
Market selectionSoonest expiryConfigurable sweet-spot window
StatsNoneFull P&L, win rate, signal breakdown

Quick Start

# Install dependency
pip install simmer-sdk

# Set API key
export SIMMER_API_KEY="your-key-here"

# Paper mode โ€” see what would happen (default)
python fastloop_improved.py

# Go live
python fastloop_improved.py --live

# Check calibration stats (win rate, P&L, signal accuracy)
python fastloop_improved.py --stats

# Resolve any expired paper trades against real outcomes
python fastloop_improved.py --resolve

# Quiet mode for cron
python fastloop_improved.py --live --quiet

How to Run on a Loop

OpenClaw native cron:

openclaw cron add \
  --name "FastLoop Improved" \
  --cron "*/5 * * * *" \
  --tz "UTC" \
  --session isolated \
  --message "Run improved fast loop: cd /path/to/skill && python fastloop_improved.py --live --quiet. Show output summary." \
  --announce

Linux crontab:

*/5 * * * * cd /path/to/skill && python fastloop_improved.py --live --quiet

Configuration

# Raise momentum threshold (recommended: 1.0โ€“2.0%)
python fastloop_improved.py --set min_momentum_pct=1.5

# Require order book confirmation
python fastloop_improved.py --set require_orderbook=true

# Set sweet-spot window for market selection (seconds remaining)
python fastloop_improved.py --set target_time_min=90 --set target_time_max=180

# Disable time-of-day filter (trade 24/7)
python fastloop_improved.py --set time_filter=false

All Settings

SettingDefaultDescription
entry_threshold0.05Min divergence from 50ยข
min_momentum_pct1.0Min % BTC move (raised from 0.5)
max_position5.0Max $ per trade
signal_sourcebinancebinance or coingecko
lookback_minutes5Candle lookback window
min_time_remaining60Skip if less than 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_fundingfalseRequire funding rate confirmation
require_orderbookfalseRequire order book imbalance confirmation
time_filtertrueSkip low-liquidity hours (02:00โ€“06:00 UTC)
vol_sizingtrueAdjust size by recent volatility
fee_buffer0.05Extra edge required above fee breakeven
daily_budget10.0Max spend per UTC day
starting_balance1000.0Paper portfolio starting balance

Signal Logic

Three signals are evaluated independently. The momentum signal is always required. Funding and order book are optional confirmation layers.

1. Momentum (always on)

  • Fetch N one-minute Binance candles
  • momentum = (close_now - open_then) / open_then * 100
  • Must exceed min_momentum_pct

2. Funding Rate (optional, require_funding=true)

  • Fetch Binance perpetual funding rate for the asset
  • Positive funding + upward momentum = longs crowded, signal is weaker โ†’ SKIP
  • Negative funding + upward momentum = confirmation โ†’ TRADE
  • Logic inverted for downward momentum

3. Order Book Imbalance (optional, require_orderbook=true)

  • Fetch top 20 levels of Binance L2 book
  • imbalance = (bid_depth - ask_depth) / (bid_depth + ask_depth)
  • Imbalance > 0.1 confirms upward momentum
  • Imbalance < -0.1 confirms downward momentum

Fee-Accurate EV

entry_price  = market price of chosen side
win_profit   = (1 - entry_price) ร— (1 - fee_rate)
breakeven    = entry_price / (win_profit + entry_price)
required_div = (breakeven - 0.50) + fee_buffer

Trade only fires if actual_divergence โ‰ฅ required_div.

Time-of-Day Filter

Skips 02:00โ€“06:00 UTC by default. US session (13:00โ€“21:00 UTC) is the highest-liquidity window for crypto prediction markets.

Volatility-Adjusted Sizing

24h_vol = std(hourly_returns_last_24h) ร— โˆš24
size    = max_position ร— min(1.0, 0.02 / 24h_vol)

High volatility โ†’ smaller position. Low volatility with strong trend โ†’ full size.

Win Rate Calibration

The skill tracks every paper and live trade in fastloop_ledger.json. After market expiry, run --resolve to fetch the actual Polymarket outcome and log it. After 50+ trades, --stats shows your real win rate broken down by momentum threshold, time of day, and asset โ€” so you can tune settings based on actual data rather than guessing.

Troubleshooting

All troubleshooting from the original skill applies. Additional:

"Funding rate fetch failed"

  • Binance futures API may be rate-limited. Skill falls back to momentum-only.

"Order book imbalance: neutral"

  • Market is balanced, signal is ambiguous โ€” skipped if require_orderbook=true.

"Time filter: low liquidity window"

  • Current UTC hour is in the 02โ€“06 block. Set time_filter=false to override.

ๅฆ‚ไฝ•ไฝฟ็”จใ€ŒPolymarket Fast Loop Improvedใ€๏ผŸ

  1. ๆ‰“ๅผ€ๅฐ้พ™่™พAI๏ผˆWeb ๆˆ– iOS App๏ผ‰
  2. ็‚นๅ‡ปไธŠๆ–นใ€Œ็ซ‹ๅณไฝฟ็”จใ€ๆŒ‰้’ฎ๏ผŒๆˆ–ๅœจๅฏน่ฏๆก†ไธญ่พ“ๅ…ฅไปปๅŠกๆ่ฟฐ
  3. ๅฐ้พ™่™พAI ไผš่‡ชๅŠจๅŒน้…ๅนถ่ฐƒ็”จใ€ŒPolymarket Fast Loop Improvedใ€ๆŠ€่ƒฝๅฎŒๆˆไปปๅŠก
  4. ็ป“ๆžœๅณๆ—ถๅ‘ˆ็Žฐ๏ผŒๆ”ฏๆŒ็ปง็ปญๅฏน่ฏไผ˜ๅŒ–

็›ธๅ…ณๆŠ€่ƒฝ