Install
openclaw skills install @diagnostikon/polymarket-candle-cross-asset-divergence-traderDetects cross-asset divergence in Polymarket crypto 5-minute interval markets. When normally correlated assets like BTC and ETH show contradictory candle directions in overlapping time windows, the divergence tends to close as the less liquid coin converges toward BTC. This is the candlestick equivalent of pairs trading -- exploiting temporary breakdowns in crypto correlation structure.
openclaw skills install @diagnostikon/polymarket-candle-cross-asset-divergence-traderThis is a template. The default signal detects cross-asset divergence between BTC and other crypto coins on 5-minute interval markets and trades the convergence using conviction-based sizing. The skill handles all the plumbing (interval parsing, divergence detection, trade execution, safeguards). Your agent provides the alpha.
Polymarket lists 5-minute interval markets for BTC, ETH, SOL, and XRP: "Will Bitcoin 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. Crypto assets are highly correlated -- when BTC moves, ETH/SOL/XRP typically follow within minutes. But on Polymarket's discrete 5-minute intervals, this correlation occasionally breaks down: BTC shows UP (>55%) while ETH shows DOWN (<45%) in the same time window. This divergence is structurally temporary because the underlying correlation reasserts itself. The less liquid coin (ETH/SOL/XRP) tends to converge toward BTC's direction.
Unlike generic correlation trading that requires continuous price feeds and complex cointegration models, this skill operates on Polymarket's discrete binary outcomes where the divergence signal is unambiguous:
Bitcoin Up or Down, Ethereum Up or Down, Solana Up or Down, XRP Up or Down) with a get_markets(limit=200) fallbackDIV_THRESHOLDThe skill defaults to paper trading (venue="sim"). Real trades only with --live flag.
| Scenario | Mode | Financial risk |
|---|---|---|
python trader.py | Paper (sim) | None |
| Cron / automaton | Paper (sim) | None |
python trader.py --live | Live (polymarket) | Real USDC |
autostart: false and cron: null mean nothing runs automatically until configured in Simmer UI.
| Variable | Required | Notes |
|---|---|---|
SIMMER_API_KEY | Yes | Trading authority. Treat as a high-value credential. |
All declared as tunables in clawhub.json and adjustable from the Simmer UI.
| Variable | Default | Purpose |
|---|---|---|
SIMMER_MAX_POSITION | 40 | Max USDC per trade at full conviction |
SIMMER_MIN_TRADE | 5 | Floor for any trade (min USDC regardless of conviction) |
SIMMER_MIN_VOLUME | 3000 | Min market volume filter (USD) |
SIMMER_MAX_SPREAD | 0.10 | Max bid-ask spread |
SIMMER_MIN_DAYS | 1 | Min days until resolution |
SIMMER_MAX_POSITIONS | 10 | Max concurrent open positions |
SIMMER_YES_THRESHOLD | 0.38 | Buy YES only if market probability <= this |
SIMMER_NO_THRESHOLD | 0.62 | Sell NO only if market probability >= this |
SIMMER_DIV_THRESHOLD | 0.08 | Min divergence between BTC and follower coin |
Crypto assets on Polymarket's 5-minute interval markets exhibit strong positive correlation driven by shared macro factors. When BTC and a follower coin (ETH, SOL, XRP) show contradictory candle directions in the same time window -- BTC UP while ETH DOWN, or vice versa -- this divergence is structurally temporary. BTC, being the most liquid and efficiently priced, is more likely correct. The follower coin's interval market is mispriced and tends to converge toward BTC's direction before resolution. The skill exploits this convergence with conviction-based sizing that scales with the distance from the trading threshold.
simmer-sdk by Simmer Markets (SpartanLabsXyz)