Agent skill · marketing growth · aradotso
polymarket-arbitrage-trading-bot
Automated dump-and-hedge arbitrage trading bot for Polymarket's 15-minute crypto Up/Down markets, supporting BTC, ETH, SOL, and XRP.
Why this skill is useful
Adds an executable trading bot that automates arbitrage strategies for Polymarket's crypto markets, which the AI cannot generate on its own.
What it needs
Requires node installed locally. Requires polymarket account access. About 7k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
Polymarket Arbitrage Trading Bot Skill by ara.so — Daily 2026 Skills collection. Automated dump-and-hedge arbitrage bot for Polymarket's 15-minute crypto Up/Down prediction markets. Written in TypeScript using the official @polymarket/clob-client. Watches BTC, ETH, SOL, and XRP markets for sharp price drops on one leg, then buys both legs when combined cost falls below a target threshold to lock in a structural edge before resolution. --- Installation Requirements: Node.js 16+, USDC on Polygon (for live trading), a Polymarket-compatible wallet. --- Project Structure --- Key Commands Command Purpose --------- --------- npm run dev Run via ts-node (development, no build needed) npm run build Compile TypeScript to dist/ npm run typecheck Type-check without emitting output npm run clean Remove dist/ directory npm run sim Simulation mode — logs trades, no real orders npm run prod Production mode — places real CLOB orders npm start Run compiled output (defaults to simulation unless --production passed) --- Configuration (.env) --- Strategy Overview --- Code Examples Loading Config (src/config.ts pattern) Initializing the CLOB Client Discovering the Active 15-Minute Market Fetching Best Ask Price from CLOB Dump Detection Logic Placing a Market Buy Order (Production) Core Dump-Hedge Cycle Settlement and Redemption --- Running Modes Simulation (Recommended First) Production (Live Trading) Single Asset, Custom Thresholds --- Common Patterns Multi-Asset Parallel Monitoring Logging to history.toml --- Troubleshooting Issue Cause Fix ------- ------- ----- Failed to fetch market/orderbook API/network error Temporary; check GAMMAAPIURL / CLOBAPIURL connectivity, retries are built in Orders fail in production Wrong auth config Verify PRIVATEKEY, SIGNATURETYPE, and PROXYWALLETADDRESS match your Polymarket account No market found for asset Round gap or unsupported asset Only use btc, eth, sol, xrp; wait for next 15m round to start Bot never triggers leg 1 Threshold too high or quiet …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/polymarket-arbitrage-trading-bot