🦀 ClawHub
Polymarket Trader
by @drakec48
Build and analyze a BTC 1h Up/Down trading strategy anchored to Binance BTCUSDT, applying edge thresholds, regime filters, and detailed trade validation.
TERMINAL
clawhub install polymarket-trader📖 About This Skill
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
bitcoin-up-or-down-* 1h markets (Binance 1H open vs close).2) Compute the anchor signal (Binance)
3) Trade only when there is measurable edge
edge = fair_prob - market_price exceeds a threshold.4) Exit using the right logic for the entry mode
5) Validate with logs
reason / entry_mode
- Binance-derived fair probability + z
- whether the correct exit block firedBundled scripts
All scripts are designed to be run from the OpenClaw workspace.
1) Fetch Binance klines
{baseDir}/scripts/binance_klines.py2) Dump/stabilization and regime metrics
{baseDir}/scripts/binance_regime.py3) Explain fills (events.jsonl) with Binance context
{baseDir}/scripts/explain_fills.pyevents.jsonl and prints a concise table for the last N fills:
- side/outcome/px/reason
- estimated fair_up + z
- “against trend?” flagReferences
{baseDir}/references/strategy.md — the math model, parameters, and tuning checklist.