md0070/polymarket-arbitrage-trading-bot — explained in plain English
Analysis updated 2026-05-18
Automate short-term crypto up or down bets on Polymarket without watching prices manually.
Run a rules-based strategy that enters and exits fast prediction market trades.
Trade with a bot that reads live on-chain balances instead of in-memory accounting.
| md0070/polymarket-arbitrage-trading-bot | alpha-vector-core/polymarket-arbitrage-trading-bot | alpha-vector-core/polymarket-trading-bot | |
|---|---|---|---|
| Stars | 79 | 79 | 79 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 4/5 | 4/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Node.js 20+, USDC on Polygon, and a signing private key.
Polymarket is a blockchain-based prediction market where you can trade on yes/no outcomes, including whether a cryptocurrency will close above its current price within a short window. This TypeScript repository provides a production-oriented bot for those short-horizon crypto markets, covering Bitcoin, Ethereum, Solana, and XRP across time windows from 5 minutes to 24 hours. The bot authenticates with Polymarket's central limit order book, resolves the correct market for your chosen coin and window, and then polls prices every second. Orders are Fill-and-Kill, meaning they fill immediately at the best available price or cancel, with no partial fills left resting in the book. All balance data comes from the blockchain directly rather than from in-memory accounting. Two trading strategies are included. The first, trade_1, handles exits only. If you hold a UP or DOWN position, the bot sells when the market is close to its expiry time or when the price ratio moves far from the midpoint of 0.50. The second, trade_2, covers the full trade lifecycle. It enters once per window when both time elapsed and price deviation meet your configured thresholds, then exits when the price hits a target range. After a successful exit, an optional emergency swap can flip to the opposite token immediately. You configure the bot through a trade.toml file that sets strategy name, trade size in USD, coin, and window length, plus a .env file for your signing private key and funder wallet address. Node.js 20 or later and USDC on the Polygon blockchain are required. The five-minute window is currently available for Bitcoin only, the longer windows support all four coins. The repository is tagged with topics including arbitrage-bot and polymarket-trading-bot. The README is explicit that this is not a backtester, that it uses real money, and that automated prediction market trading can result in total loss of funds. The license is ISC.
An automated bot that trades real crypto on short-term Bitcoin, Ethereum, Solana, and XRP price bets on Polymarket.
Mainly TypeScript. The stack also includes TypeScript, Node.js, Polygon.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.