Polymarket Candle Gap Fill Trader

v0.0.2

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

0· 154·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, clawhub.json, SKILL.md, and trader.py consistently implement a Polymarket gap-fill trader. The required pip dependency (simmer-sdk) and the single required credential (SIMMER_API_KEY) are appropriate for a trading skill that uses the Simmer execution client.
Instruction Scope
SKILL.md and trader.py limit actions to market discovery, gap detection, conviction sizing, and trade submission. The skill defaults to paper trading and only performs live trades with an explicit --live flag. Instructions do not request unrelated files or credentials.
Install Mechanism
This is an instruction+code skill with a declared pip dependency (simmer-sdk) in clawhub.json. There are no arbitrary downloads, URL-based installers, or archive extraction steps.
Credentials
Only SIMMER_API_KEY is required and is reasonable for a trading agent (it grants authority to place/authorize trades). The skill also reads a set of SIMMER_* tunables declared in clawhub.json; those are non-sensitive configuration. Treat SIMMER_API_KEY as a high-value secret and provide least privilege.
Persistence & Privilege
always:false and autostart:false. The automaton entrypoint is trader.py (expected for a runnable trading skill). The skill does not request persistent platform-wide privileges or modify other skills' configurations.
Assessment
This skill appears coherent for automated Polymarket trading. Before installing: (1) Review the simmer-sdk implementation (third-party dependency) to understand external network calls; (2) Provide SIMMER_API_KEY only if you trust the execution environment and are prepared for potential live trading—test thoroughly in paper mode first; (3) Keep the key scoped/rotated and do not enable --live until you verify behavior in sim; (4) If you need stronger assurance, run the skill in an isolated environment and inspect runtime traffic to the Simmer service.

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

latestvk97fkwwbm5hh5xm5tvg88yh0y9852nyt
154downloads
0stars
3versions
Updated 1w ago
v0.0.2
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...