Polymarket Candle Gap Fill Trader

v0.0.3

Trades gap-fill reversions on Polymarket 5-minute crypto interval markets. When consecutive intervals have contradictory strong signals -- prior interval res...

0· 173·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for diagnostikon/polymarket-candle-gap-fill-trader.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Polymarket Candle Gap Fill Trader" (diagnostikon/polymarket-candle-gap-fill-trader) from ClawHub.
Skill page: https://clawhub.ai/diagnostikon/polymarket-candle-gap-fill-trader
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install polymarket-candle-gap-fill-trader

ClawHub CLI

Package manager switcher

npx clawhub@latest install polymarket-candle-gap-fill-trader
Security Scan
Capability signals
CryptoRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the implementation: trader.py implements discovery of Polymarket 5-minute interval markets, gap detection, conviction sizing, and trade execution via the Simmer SDK. Required dependency (simmer-sdk) and required environment variable (SIMMER_API_KEY) are proportional to the stated trading purpose.
Instruction Scope
SKILL.md instructs the agent to discover markets, detect gaps, and trade; it documents paper-vs-live modes and required credential. The instructions do not request or read unrelated system files or credentials and explicitly default to paper trading. No vague, broad data-collection steps are present.
Install Mechanism
This is an instruction-only skill with a code file and a pip dependency (simmer-sdk) declared in clawhub.json. No external URL downloads, extract steps, or obscure installers are used. Using pip for an SDK is expected for this purpose.
Credentials
Only SIMMER_API_KEY is required (declared in clawhub.json and SKILL.md). Tunables are exposed via environment variables but are configuration, not secrets. The single credential requested is appropriate for a trading skill.
Persistence & Privilege
The skill is not always-enabled (always:false) and autostart is false. However, it can be invoked autonomously by the agent (default model invocation is allowed). Because the skill can execute real trades when run with --live, consider limiting autonomous invocation or ensuring policy safeguards to prevent unintended live trading.
Assessment
This skill appears coherent and implements what it claims: trading Polymarket 5-minute interval gap fills using the Simmer SDK. Before installing, confirm you trust the Simmer runtime and the SIMMER_API_KEY you supply (it grants trading authority). Default behavior is paper trading; real trades require explicitly running with --live. If you want to avoid accidental live trades, do not grant autonomous invocation to agents that could call this skill, or keep the API key restricted/revocable and use strict tunable limits (small MAX_POSITION, higher MIN_VOLUME). Review the trader.py code yourself if you want to verify network endpoints and logging behavior, and only provide the API key to environments you trust.

Like a lobster shell, security has layers — review code before you run it.

latestvk97254t9102yqkfw9hvpftpymn85qtaq
173downloads
0stars
4versions
Updated 4h ago
v0.0.3
MIT-0

Candle -- Gap Fill Trader

This is a template. The default signal detects price gaps between consecutive crypto 5-minute interval markets and trades the reversion using conviction-based sizing. The skill handles all the plumbing (interval parsing, gap detection, trade execution, safeguards). Your agent provides the alpha.

Strategy Overview

Polymarket lists 5-minute interval markets for BTC, ETH, SOL, and XRP: "Will BTC be Up or Down in the 10:50AM-10:55AM ET interval?" These resolve to YES (up) or NO (down) based on actual price movement. A "gap" occurs when consecutive intervals have contradictory strong signals -- interval N at 62% (strong UP) followed by interval N+1 at 38% (strong DOWN). In traditional candlestick analysis, gaps tend to "fill" as price reverts to close the discontinuity. On Polymarket, when consecutive intervals disagree strongly, the outlier tends to revert toward 0.50.

Edge

Unlike generic mean-reversion strategies that trade any low-probability market, this skill specifically targets structural gaps between consecutive intervals -- cases where the market pricing implies an abrupt directional reversal that exceeds a minimum gap size. The gap-fill is structurally sound because:

  1. Microstructure continuity -- consecutive 5-minute intervals share overlapping information sets; a sharp reversal in pricing implies either new information (rare) or noise (common)
  2. Retail overreaction -- Polymarket participants observe one strong interval and overcorrect in the opposite direction for the next, creating systematic mispricing at gap boundaries
  3. Mean-reversion at extremes -- when two consecutive intervals disagree by >12 percentage points, the second interval is statistically more likely to resolve closer to 50% than its current pricing suggests
  4. Independent resolution -- each interval resolves based on actual price movement, so a gap in market pricing does not reflect a genuine structural shift in the underlying asset's trajectory

Signal Logic

  1. Discover crypto interval markets via keyword search (Bitcoin Up or Down, Ethereum Up or Down, Solana Up or Down, XRP Up or Down) with a get_markets(limit=200) fallback
  2. Parse each question to extract (coin, date_str, start_time_minutes) using regex
  3. Group intervals by (coin, date) and sort by time
  4. Scan consecutive pairs for gaps: prior is UP (p>0.55) and current is DOWN (p<0.45), or vice versa, with |p_current - p_prior| > GAP_SIZE
  5. Trade the gap fill:
    • Current is DOWN outlier after prior UP -> buy YES (gap fill upward toward 0.50)
    • Current is UP outlier after prior DOWN -> buy NO (gap fill downward toward 0.50)
  6. Size by conviction (distance from threshold), not flat amount

Remix Signal Ideas

  • Volume-weighted gaps -- weight gap significance by the trading volume in both intervals; high-volume gaps are more meaningful than low-volume ones
  • Multi-interval gap confirmation -- require 2+ prior intervals to agree before classifying the current interval as a gap outlier
  • Binance tick data -- use real-time price data to confirm whether the gap reflects genuine new information or is pure noise
  • Cross-coin gap correlation -- if BTC and ETH both gap in the same direction simultaneously, it may reflect genuine macro news rather than noise
  • Time-of-day filter -- gaps during low-volume hours (e.g., early morning ET) may be noisier and less likely to fill

Safety & Execution Mode

The skill defaults to paper trading (venue="sim"). Real trades only with --live flag.

ScenarioModeFinancial risk
python trader.pyPaper (sim)None
Cron / automatonPaper (sim)None
python trader.py --liveLive (polymarket)Real USDC

autostart: false and cron: null mean nothing runs automatically until configured in Simmer UI.

Required Credentials

VariableRequiredNotes
SIMMER_API_KEYYesTrading authority. Treat as a high-value credential.

Tunables (Risk Parameters)

All declared as tunables in clawhub.json and adjustable from the Simmer UI.

VariableDefaultPurpose
SIMMER_MAX_POSITION40Max USDC per trade at full conviction
SIMMER_MIN_TRADE5Floor for any trade (min USDC regardless of conviction)
SIMMER_MIN_VOLUME3000Min market volume filter (USD)
SIMMER_MAX_SPREAD0.10Max bid-ask spread
SIMMER_MIN_DAYS1Min days until resolution
SIMMER_MAX_POSITIONS10Max concurrent open positions
SIMMER_YES_THRESHOLD0.38Buy YES only if market probability <= this
SIMMER_NO_THRESHOLD0.62Sell NO only if market probability >= this
SIMMER_GAP_SIZE0.12Min probability gap between consecutive intervals to trigger trade

Edge Thesis

Crypto 5-minute interval markets on Polymarket exhibit gap-fill behavior analogous to traditional candlestick markets. When consecutive intervals have contradictory strong signals -- one priced strongly UP and the next strongly DOWN (or vice versa) with a gap exceeding 12 percentage points -- the outlier interval systematically overestimates the directional reversal. This is because consecutive 5-minute windows share overlapping market conditions, and abrupt pricing reversals between adjacent intervals more often reflect retail overreaction than genuine new information. The gap-fill trade exploits this by buying the reversion with conviction-based sizing that scales with the distance from the trading threshold.

Dependency

simmer-sdk by Simmer Markets (SpartanLabsXyz)

Comments

Loading comments...