longbridges/polymarket-kalshi-arbitrage-bot — explained in plain English
Analysis updated 2026-05-18
Automatically monitor paired prediction markets on Kalshi and Polymarket for price gaps
Trigger a buy order on Polymarket when the price gap between platforms exceeds your threshold
Catch late-entry opportunities when Kalshi has settled but Polymarket liquidity remains
Check the bot's current prices and last decision through a built-in status API
| longbridges/polymarket-kalshi-arbitrage-bot | japp-fi/polymarket-mcp-server | shaya16/spent | |
|---|---|---|---|
| Stars | 79 | 79 | 79 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 4/5 | 3/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Requires wallet credentials for executing trades and API access to both Kalshi and Polymarket.
This is an automated arbitrage bot for prediction markets, written in TypeScript. Arbitrage means exploiting a price difference for the same thing on two different platforms, if one marketplace prices a "yes" outcome at 95 cents and another prices the same outcome at 82 cents, you can buy the cheaper one and profit when they converge. The bot monitors paired markets on Kalshi and Polymarket, both of which are platforms where you can bet on the outcomes of real-world events (like whether Bitcoin will be higher or lower in 15 minutes). It polls both platforms' APIs on a configurable interval, compares the pricing, and triggers a buy order on Polymarket when the price gap exceeds a threshold you define. It also handles a second scenario: if Kalshi has already settled a market (the event resolved) but Polymarket's order book still has liquidity, it treats that as a late entry opportunity. The bot runs as a lightweight Express web service (Express is a simple Node.js web server framework) that you can deploy on a server or cloud instance. A built-in status API endpoint lets you monitor current prices and the bot's last decision in real time. The tech stack is Node.js 18 or newer, TypeScript, Express, Axios for HTTP calls, and the official Polymarket CLOB client library for order placement. You configure it entirely through environment variables: market identifiers, spread thresholds, wallet credentials for executing trades, and polling intervals. This is aimed at technically-minded traders comfortable running their own server-side automation.
A TypeScript bot that automatically buys and profits from price differences on the same prediction market listed on both Kalshi and Polymarket.
Mainly TypeScript. The stack also includes TypeScript, Node.js, Express.
License is not specified in the description.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.