skills$openclaw/polymarket-trader
drakec488.1k

by drakec48

polymarket-trader – OpenClaw Skill

polymarket-trader is an OpenClaw Skills integration for data analytics workflows. Build, evaluate, and tune a Polymarket BTC 1h Up/Down trading strategy using Binance (resolution source) as the anchor. Use when: (1) designing a mispricing/edge model (fair probability vs market price), (2) adding regime filters (trend vs range), (3) debugging bad entries/exits from events.jsonl/state.json, (4) running quick offline analysis or parameter sweeps with the bundled scripts.

8.1k stars8.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

namepolymarket-trader
descriptionBuild, evaluate, and tune a Polymarket BTC 1h Up/Down trading strategy using Binance (resolution source) as the anchor. Use when: (1) designing a mispricing/edge model (fair probability vs market price), (2) adding regime filters (trend vs range), (3) debugging bad entries/exits from events.jsonl/state.json, (4) running quick offline analysis or parameter sweeps with the bundled scripts. OpenClaw Skills integration.
ownerdrakec48
repositorydrakec48/polymarket-trader
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @drakec48/polymarket-trader
last updatedFeb 7, 2026

Maintainer

drakec48

drakec48

Maintains polymarket-trader in the OpenClaw Skills directory.

View GitHub profile
File Explorer
8 files
.
references
strategy.md
1.9 KB
scripts
binance_klines.py
1.2 KB
binance_regime.py
1.6 KB
explain_fills.py
4.2 KB
_meta.json
288 B
SKILL.md
2.3 KB
SKILL.md

name: polymarket-trader description: Build, evaluate, and tune a Polymarket BTC 1h Up/Down trading strategy using Binance (resolution source) as the anchor. Use when: (1) designing a mispricing/edge model (fair probability vs market price), (2) adding regime filters (trend vs range), (3) debugging bad entries/exits from events.jsonl/state.json, (4) running quick offline analysis or parameter sweeps with the bundled scripts.

Polymarket Trader

Maintain a profitable BTC 1h Up/Down strategy by anchoring decisions to Binance BTCUSDT (the resolution source) and enforcing anti-churn/risk rules.

Workflow (use this order)

  1. Confirm the market type
  • This skill is optimized for bitcoin-up-or-down-* 1h markets (Binance 1H open vs close).
  1. Compute the anchor signal (Binance)
  • Fetch 1m closes + the 1h open for the relevant hour.
  • Compute volatility (sigma) and time-to-expiry.
  • Convert to fair probability for Up/Down.
  1. Trade only when there is measurable edge
  • Enter only if edge = fair_prob - market_price exceeds a threshold.
  • Add a directional guardrail: do not bet against the sign of the move when |z| is non-trivial.
  1. Exit using the right logic for the entry mode
  • Model entries: exit on edge decay / model flip; hold to preclose when confidence is extreme.
  • Mean-reversion entries: exit on reversion targets (not model-tp), with strict churn limits.
  1. Validate with logs
  • Every suspected “nonsense trade” must be explained via:
    • reason / entry_mode
    • Binance-derived fair probability + z
    • whether the correct exit block fired

Bundled scripts

All scripts are designed to be run from the OpenClaw workspace.

1) Fetch Binance klines

  • {baseDir}/scripts/binance_klines.py
    • Pulls klines and prints JSON.

2) Dump/stabilization and regime metrics

  • {baseDir}/scripts/binance_regime.py
    • Computes ret5/ret15/slope10 + simple “stabilized” boolean.

3) Explain fills (events.jsonl) with Binance context

  • {baseDir}/scripts/explain_fills.py
    • Reads paperbot events.jsonl and prints a concise table for the last N fills:
      • side/outcome/px/reason
      • estimated fair_up + z
      • “against trend?” flag

References

  • {baseDir}/references/strategy.md — the math model, parameters, and tuning checklist.
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install polymarket-trader?

Run openclaw add @drakec48/polymarket-trader in your terminal. This installs polymarket-trader into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/drakec48/polymarket-trader. Review commits and README documentation before installing.