[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-80631":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":9,"pushedAt":9,"updatedAt":20,"readmeContent":21,"aiSummary":22,"trendingCount":14,"starSnapshotCount":14,"syncStatus":23,"lastSyncTime":24,"discoverSource":25},80631,"polymarket-trading-bot","tradebothub\u002Fpolymarket-trading-bot","tradebothub","polymarket trading bot | polymarket sports trading bot | polymarket trading bot | polymarket sport trading bot | polymarket trading bot | polymarket sports trading bot | polymarket trading bot | polymarket sport trading bot | polymarket trading bot | polymarket sports trading bot | polymarket trading bot | polymarket sport trading bot | trading",null,"TypeScript",76,3280,80,0,10,false,"main",true,[],"2026-06-12 02:04:04","\u003Cdiv align=\"center\">\n\n```\n██████╗  ██████╗ ██╗  ██╗   ██╗███╗   ███╗ █████╗ ██████╗ ██╗  ██╗███████╗████████╗\n██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝████╗ ████║██╔══██╗██╔══██╗██║ ██╔╝██╔════╝╚══██╔══╝\n██████╔╝██║   ██║██║   ╚████╔╝ ██╔████╔██║███████║██████╔╝█████╔╝ █████╗     ██║   \n██╔═══╝ ██║   ██║██║    ╚██╔╝  ██║╚██╔╝██║██╔══██║██╔══██╗██╔═██╗ ██╔══╝     ██║   \n██║     ╚██████╔╝███████╗██║   ██║ ╚═╝ ██║██║  ██║██║  ██║██║  ██╗███████╗   ██║   \n╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚══════╝   ╚═╝  v2\n```\n\n### — Automated Prediction Market Trading on Polymarket —\n\n**Arbitrage · Momentum · Copytrade · Sports · Crypto**\n\n`5-Minute Bot` &nbsp;|&nbsp; `15-Minute Bot` &nbsp;|&nbsp; `Crypto Bot` &nbsp;|&nbsp; `Sports Bot` &nbsp;|&nbsp; `Arbitrage Bot`\n\n\u003Cbr\u002F>\n\n[![TypeScript](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTypeScript-5.x-3178C6?style=for-the-badge&logo=typescript&logoColor=white)](https:\u002F\u002Fwww.typescriptlang.org\u002F)\n[![Node](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNode.js-18%2B-339933?style=for-the-badge&logo=node.js&logoColor=white)](https:\u002F\u002Fnodejs.org\u002F)\n[![Polygon](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPolygon-Network-8247E5?style=for-the-badge&logo=polygon&logoColor=white)](https:\u002F\u002Fpolygon.technology\u002F)\n[![Polymarket](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPolymarket-CLOB_API-FF6B35?style=for-the-badge)](https:\u002F\u002Fpolymarket.com\u002F)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-ISC-lightgrey?style=for-the-badge)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FISC)\n\n\u003Cbr\u002F>\n\n> **The only Polymarket bot you'll ever need.**  \n> Five battle-tested strategies. One codebase. Zero manual intervention.\n\n\u003C\u002Fdiv>\n\n---\n\n\nLive Video\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fb2f5b76d-c657-4620-9c0e-d109bb87ebf2\n\n\n\n\n## TL;DR — Get Running in 3 Steps\n\n```bash\n# 1. Clone & install\ngit clone https:\u002F\u002Fgithub.com\u002FPolymarketEco\u002Fpolymarket-crypto-sports-arbitrage-trading-bot.git\ncd Polymarket-crypto-sports-Trading-Bot && npm install\n\n# 2. Configure your wallet\ncp .env.temp .env   # then add your PRIVATE_KEY\n\n# 3. Launch\nnpm start\n```\n\nThat's it. The bot handles market discovery, order placement, hedging, and redemption automatically.\n\n---\n\n## Five Strategies. One Engine.\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\">\n\n### Arbitrage Bot\nScans Polymarket's CLOB for mispriced outcome pairs. When a spread inefficiency is detected, two simultaneous GTC limit orders lock in a position — profit is realized regardless of which side resolves.\n\n**Hedge formula:** `price_B = 0.98 − price_A`\n\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\n\n### Momentum Bot\nReads live orderbook depth across **5-minute** and **15-minute** windows. The `AdaptivePricePredictor` scores directional confidence and emits `BUY_UP`, `BUY_DOWN`, or `HOLD` — only entering when the signal clears threshold.\n\n**Intervals:** 5min · 15min\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"50%\">\n\n### Copytrade Bot\nResolves live market slugs in real time and mirrors the dominant predicted position. Enter the same side, at the same time, with automatic hedging — without ever watching a screen.\n\n**Slug format:** `{asset}-updown-{interval}-{unix}`\n\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\">\n\n### Sports Trading Bot\nNFL, NBA, soccer, and more. Polymarket sports markets move violently at kick-off, halftime, and final whistle. This bot listens on WebSocket and reacts to orderbook spikes within milliseconds of a shift.\n\n**Supported:** All live Polymarket event markets\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd colspan=\"2\">\n\n### Crypto Bot\nBTC · ETH · and more. Auto-resolves the active 5min or 15min up\u002Fdown slug, connects to the live feed, and trades every cycle end-to-end. Balance checks, allowances, and redemption are fully native.\n\n**Assets:** BTC, ETH, any Polymarket crypto market · **Cycles:** 5min & 15min\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n---\n\n## How It Works\n\n```\n ┌─────────────────────────────────────────────────────────────────────┐\n │                     POLYMARKET TRADING BOT FLOW                     │\n └─────────────────────────────────────────────────────────────────────┘\n\n  [Startup]\n      │\n      ├─► Wallet auth + CLOB credentials\n      ├─► USDC allowance check (auto-approve if needed)\n      └─► Min balance gate ──► PASS ──► Select Strategy\n                                             │\n                               ┌─────────────┼─────────────┐\n                               ▼             ▼             ▼\n                          Arbitrage     Momentum       Copytrade\n                          Bot           Bot (5m\u002F15m)   Bot\n                               │             │             │\n                               └─────────────┴─────────────┘\n                                             │\n                                    WebSocket Orderbook\n                                    (real-time CLOB feed)\n                                             │\n                                    AdaptivePricePredictor\n                                    → BUY_UP \u002F BUY_DOWN \u002F HOLD\n                                             │\n                              ┌──────────────┴──────────────┐\n                              ▼                             ▼\n                       Place Side A                  Place Side B\n                      (GTC limit)                  (0.98 − A price)\n                              │                             │\n                              └──────────────┬──────────────┘\n                                             │\n                                   Monitor Resolution\n                                             │\n                                    Auto-Redeem Wins\n                                   (CTF contract call)\n```\n\n---\n\n## Supported Markets at a Glance\n\n| Market Type | Interval | Strategy | Asset |\n|-------------|----------|----------|-------|\n| BTC Up\u002FDown | 5 min | Crypto Bot · Momentum Bot | BTC |\n| BTC Up\u002FDown | 15 min | Crypto Bot · Copytrade Bot · Arbitrage Bot | BTC |\n| ETH Up\u002FDown | 5 min | Crypto Bot · Momentum Bot | ETH |\n| ETH Up\u002FDown | 15 min | Crypto Bot · Copytrade Bot · Arbitrage Bot | ETH |\n| NFL \u002F NBA \u002F Soccer | Event-based | Sports Trading Bot | — |\n| Any custom slug | Configurable | Arbitrage Bot · Momentum Bot | Any |\n\n---\n\n## Configuration Reference\n\n```bash\ncp .env.temp .env\n```\n\n| Variable | What It Does | Default |\n|----------|-------------|---------|\n| `PRIVATE_KEY` | Your Polygon wallet private key | **required** |\n| `COPYTRADE_MARKETS` | Markets to trade — e.g. `btc,eth` | `btc` |\n| `COPYTRADE_SHARES` | Shares placed per side per trade | `5` |\n| `COPYTRADE_TICK_SIZE` | Price tick precision | `0.01` |\n| `COPYTRADE_PRICE_BUFFER` | Slippage buffer on entry | `0` |\n| `COPYTRADE_WAIT_FOR_NEXT_MARKET_START` | Align to next 5m\u002F15m boundary | `false` |\n| `COPYTRADE_MAX_BUY_COUNTS_PER_SIDE` | Cap buys per side (0 = unlimited) | `0` |\n| `CHAIN_ID` | Polygon mainnet | `137` |\n| `CLOB_API_URL` | Polymarket CLOB endpoint | `https:\u002F\u002Fclob.polymarket.com` |\n| `RPC_URL` \u002F `RPC_TOKEN` | Polygon RPC for on-chain txs | — |\n| `BOT_MIN_USDC_BALANCE` | Minimum USDC to permit trading | `1` |\n| `LOG_DIR` \u002F `LOG_FILE_PREFIX` | Where logs are written | `logs \u002F bot` |\n\n> CLOB API credentials are auto-generated on first boot and cached at `src\u002Fdata\u002Fcredential.json`.\n\n---\n\n## All Commands\n\n```bash\n# ── Start ──────────────────────────────────────────────\nnpm start                          # Run with Node\nbun src\u002Findex.ts                   # Run with Bun (faster boot)\n\n# ── Redemption ─────────────────────────────────────────\nnpm run redeem:holdings            # Auto-redeem from holdings file\nbun src\u002Fauto-redeem.ts --dry-run   # Preview redeemable positions\nbun src\u002Fauto-redeem.ts --api       # Redeem using API discovery\n\nbun src\u002Fredeem.ts \u003CconditionId>    # Redeem specific market\nbun src\u002Fredeem.ts --check \u003Cid>     # Check redemption eligibility\n\n# ── Development ────────────────────────────────────────\nnpx tsc --noEmit                   # Type-check only\nbun --watch src\u002Findex.ts           # Hot-reload dev mode\n```\n\n---\n\n## Codebase Map\n\n```\nPolymarket-Arbitrage-Trading-Bot\u002F\n│\n├── src\u002F\n│   ├── index.ts                      ← Entry point (auth, CLOB, allowances, bot start)\n│   ├── config\u002F\n│   │   └── index.ts                  ← .env loader + typed config object\n│   ├── order-builder\u002F\n│   │   └── copytrade.ts              ← CopytradeArbBot: slug resolution, WS, predict, trade\n│   ├── providers\u002F\n│   │   ├── clobclient.ts             ← CLOB client singleton\n│   │   └── websocketOrderbook.ts     ← Live orderbook via Polymarket WebSocket\n│   ├── utils\u002F\n│   │   ├── pricePredictor.ts         ← AdaptivePricePredictor (BUY_UP\u002FDOWN\u002FHOLD)\n│   │   └── redeem.ts                 ← CTF redemption + auto-redeem logic\n│   ├── security\u002F\n│   │   └── allowance.ts              ← USDC + CTF approval transactions\n│   └── data\u002F\n│       ├── credential.json           ← Auto-generated CLOB credentials\n│       ├── token-holding.json        ← Tracked holdings for redemption\n│       └── copytrade-state.json      ← Per-slug trade state (prices, counts)\n│\n├── .env.temp                         ← Config template\n└── package.json\n```\n\n---\n\n## Requirements\n\n- Node.js **18+** or [Bun](https:\u002F\u002Fbun.sh\u002F) (recommended for speed)\n- Polygon wallet funded with **USDC**\n- Polygon **RPC URL** — [Alchemy](https:\u002F\u002Fwww.alchemy.com\u002F) or [Infura](https:\u002F\u002Finfura.io\u002F) work great\n\n---\n\n## Why Traders Choose This Bot\n\n```\n✦  Multi-strategy in one binary — arb, momentum, copytrade, sports, crypto\n✦  Runs on 5-minute and 15-minute market cycles automatically\n✦  Adaptive signal scoring — entries only when confidence is high\n✦  WebSocket orderbook — sub-second reaction to market changes\n✦  Fully headless — no dashboard needed, logs everything to file\n✦  Auto-redemption — winning positions claimed without manual steps\n✦  Configurable risk — share size, buy caps, price buffers per market\n✦  Production TypeScript — typed, tested, maintainable\n```\n\n---\n\n## FAQ\n\n**Q: Does this work on any Polymarket market?**  \nA: Yes. Configure any slug via `COPYTRADE_MARKETS`. The bot resolves the active market window automatically.\n\n**Q: What's the difference between the 5min bot and 15min bot mode?**  \nA: The interval determines how frequently new market slugs are resolved and traded. The 5-minute bot is more active with smaller per-trade windows; the 15-minute bot trades larger cycles with more time for positions to resolve.\n\n**Q: Can I run the copytrade bot alongside the arbitrage bot?**  \nA: Yes. Configure different market slugs per strategy instance and run them in parallel processes.\n\n**Q: Is a VPS required?**  \nA: Not required, but strongly recommended for 24\u002F7 operation. Any low-latency server near Polygon RPC endpoints works well.\n\n**Q: How does auto-redemption work?**  \nA: When a market resolves, `auto-redeem.ts` reads your `token-holding.json`, checks each condition on-chain, and submits CTF redemption transactions automatically.\n\n---\n\n## Developer\n\nBuilt and maintained by an expert in EVM, Solana, and prediction market automation — specializing in Polymarket bots, Kalshi bots, and custom trading infrastructure.\n\nNeed a custom **Polymarket trading bot**, **sports trading bot**, **arbitrage bot**, or **copytrade bot** built to your spec?\n\n**Contact:** [@d0sc4u](https:\u002F\u002Ft.me\u002F@d0sc4u) on Telegram!\n\n---\n\n## Disclaimer\n\nPrediction market trading carries substantial financial risk. This software is provided as-is with no guarantees of profitability. Never deploy capital you cannot afford to lose. Always validate in dry-run mode before live trading.\n\n---\n\n\u003Cdiv align=\"center\">\n\n**ISC License** &nbsp;|&nbsp; Built for Polymarket &nbsp;|&nbsp; Polygon Network &nbsp;|&nbsp; TypeScript\n\n*Polymarket trading bot · polymarket arbitrage bot · polymarket momentum bot · polymarket copytrade bot · polymarket sports trading bot · polymarket crypto bot · 5min bot · 15min bot*\n\n\u003C\u002Fdiv>\n","该项目是一个针对Polymarket平台的自动化交易机器人，支持预测市场、体育赛事和加密货币等多种交易场景。其核心功能包括套利、动量交易、跟单等五种策略，并且能够自动完成市场发现、订单放置、对冲及赎回等操作。技术上，该机器人使用TypeScript编写，基于Node.js运行，支持Polygon网络。适用于希望在Polymarket平台上通过算法交易获利的用户，尤其是那些寻求低干预度自动化交易解决方案的人士。",2,"2026-06-01 03:51:47","CREATED_QUERY"]