← Back to Skills Marketplace
richducat

Polymarket Fast Loop

by richducat · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
96
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dolph-fast-loop
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...
README (SKILL.md)

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 --live for 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 10% fee (is_paid: true). 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.

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.

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:

  1. Ask for Simmer API key

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

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.

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% \x3C 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

"External wallet requires a pre-signed order"

  • WALLET_PRIVATE_KEY is 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\x3Cyour-polymarket-wallet-private-key>
  • Do NOT attempt to sign orders manually or modify the skill code — the SDK handles it

"Balance shows $0 but I have USDC on Polygon"

  • Polymarket uses USDC.e (bridged USDC, contract 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174) — not native USDC
  • If you bridged USDC to Polygon recently, you likely received native USDC
  • Swap native USDC to USDC.e, then retry
Usage Guidance
Key points to consider before installing or using this skill: - Credential risk: The skill asks you to place a WALLET_PRIVATE_KEY into an environment variable for live trading. That is sensitive. Prefer using an account/wallet with minimal funds or a signing service that restricts operations. Do not put a main/exchange hot wallet private key into a shared host or CI without strong controls. - Verify dependencies and provenance: clawhub.json indicates a pip dependency 'simmer-sdk'. Verify that the simmer-sdk package on PyPI (or wherever you install from) is the correct, trusted package and check its version and maintainers. - Metadata inconsistencies: The registry summary claims no required env vars while clawhub.json and SKILL.md require SIMMER_API_KEY and possibly WALLET_PRIVATE_KEY. This mismatch suggests sloppy packaging — review the code before running and prefer a dry-run first. - Run in dry-run and isolated environment: Start with python fastloop_trader.py (dry run) and inspect logs. Run the skill in an isolated container or VM with limited network/credentials and small budgets to confirm behavior. - Limit live risk: Use small max_position/daily_budget and consider using a dedicated wallet with limited funds and restricted signing capabilities. Rotate keys and audit transactions. - Review full code: The provided fastloop_trader.py contains network calls to external APIs and local file writes. If you are not comfortable auditing Python code, ask a developer to review for hidden exfiltration or unexpected endpoints before providing private keys. If you want, I can: (a) scan the full fastloop_trader.py for suspicious code paths (exfil endpoints, encoded/obfuscated strings), (b) extract all env/config names and show inconsistencies, or (c) draft safer operational guidance for running this bot (e.g., ephemeral signing service, containerization, least-privilege wallet setup).
Capability Analysis
Type: OpenClaw Skill Name: dolph-fast-loop Version: 1.0.0 The skill bundle is a legitimate trading bot designed to automate high-frequency trades on Polymarket's fast markets using price signals from Binance. The Python script (fastloop_trader.py) implements a clear trading strategy, including momentum analysis and an optional Black-Scholes fair-value model, while respecting daily budgets and liquidity constraints. While the SKILL.md instructions ask the agent to collect sensitive credentials (SIMMER_API_KEY and WALLET_PRIVATE_KEY), this is a functional requirement for non-custodial automated trading, and there is no evidence of data exfiltration, obfuscation, or malicious intent in the code or documentation.
Capability Tags
cryptorequires-wallet
Capability Assessment
Purpose & Capability
The skill's code and SKILL.md align with the stated purpose (uses Simmer SDK, polls Polymarket/Polymarket CLOB, and uses CEX signals). However registry-level metadata shown to you (top-level 'Required env vars: none') is inconsistent with clawhub.json and SKILL.md which require SIMMER_API_KEY and list a pip dependency (simmer-sdk). This mismatch is a red flag about packaging/metadata hygiene but not evidence of malicious behavior by itself.
Instruction Scope
SKILL.md explicitly instructs the user to provide a WALLET_PRIVATE_KEY and store it in the environment for live trading; the code will run scheduled loops and make HTTP requests to external services (Simmer, Binance/CoinGecko, Polymarket CLOB) and may write local files (daily_spend.json). Requesting the wallet private key is plausible for client-side signing but is high-risk: the instructions tell users to place a private key into an env var (no guidance on secure handling or least-privilege wallets). The SKILL.md also offers running as cron/heartbeat which increases persistence/automation scope.
Install Mechanism
There is no explicit installer spec in the registry entry, but clawhub.json declares a pip dependency 'simmer-sdk'. Installing a PyPI package is standard for this purpose but carries the usual supply-chain risk: verify the simmer-sdk package provenance before pip installing. Because this is instruction+code delivered in the skill bundle, there is no remote arbitrary archive download; risk is moderate and typical for SDK-based tools.
Credentials
The skill legitimately needs a SIMMER_API_KEY (declared in clawhub.json and SKILL.md) and may need a wallet private key for live trading. Those credentials are proportionate to the trading function, but: (1) SKILL.md requests storing private key in an env var (sensitive practice), (2) the code and SKILL.md use several differently named env/config keys (e.g., SIMMER_SPRINT_SIGNAL vs SIMMER_FASTLOOP_* vs SIMMER_SPRINT_*), which is inconsistent and could cause misconfiguration or accidental leakage, and (3) there is no explicit guidance on limiting SIMMER_API_KEY or using limited-signature wallet keys—users should not expose full hot wallet keys without understanding risk.
Persistence & Privilege
always:false and user-invocable: true (normal). The skill writes local state (daily_spend.json) and is designed to be scheduled (clawhub.json automaton entrypoint), which is expected for a trading bot. It does not request always:true or system-wide config changes. No evidence it modifies other skills' configurations.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dolph-fast-loop
  3. After installation, invoke the skill by name or use /dolph-fast-loop
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
**Initial release of Polymarket FastLoop Trader skill.** - Enables automated trading of Polymarket 5m and 15m fast markets using CEX momentum signals (default: Binance BTC/USDT). - Real-time market discovery via Polymarket Gamma API; no reliance on Simmer's inventory. - Supports BTC, ETH, and SOL markets; configurable asset and entry criteria. - Built-in CLI for configuration, simulation (dry run), and live trading. - Designed as a remixable template: plug in custom signals while the skill manages all trade execution and plumbing. - Documents limitations around risk monitoring (not applicable to fast markets) and Polymarket’s fee structure.
Metadata
Slug dolph-fast-loop
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Polymarket Fast Loop?

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... It is an AI Agent Skill for Claude Code / OpenClaw, with 96 downloads so far.

How do I install Polymarket Fast Loop?

Run "/install dolph-fast-loop" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Polymarket Fast Loop free?

Yes, Polymarket Fast Loop is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Polymarket Fast Loop support?

Polymarket Fast Loop is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Polymarket Fast Loop?

It is built and maintained by richducat (@richducat); the current version is v1.0.0.

💬 Comments