# I made a bot that spots "risk-free" arbitrage between Kalshi and Polymarket. Here's the code. — retained record

> Retained reddit record from reddit:algotrading.

Canonical: https://highsignal.app/data/records/e7f77d05bfa1c6d9

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:algotrading)  published 2026-09-29 10:26 ingested 2026-09-30 02:45

[original source ↗](https://www.reddit.com/r/algotrading/comments/1wt6hzg/i_made_a_bot_that_spots_riskfree_arbitrage/)

## retained text



```
The strategy is simple: cross-platform arbitrage. When Kalshi and Polymarket price the same market differently (like the Republican winning TX-15), my bot buys "YES" on one and "NO" on the other. One of them always pays $1.00, so if both together cost $0.97 after fees, that 3¢ is locked in. The catch is that you only collect it at settlement, which can be months away.

So the bot doesn't wait. It enters when the spread locks in at least 2¢ after fees, and sells both sides as soon as the round trip nets 2¢ or more. If the spread never closes, it just holds to settlement, so it never sells at a loss. In the backtest on TX-15 (1,000 contracts), that was 4 trades, 4 wins, +$321.50, a 32.8% return on the \~$980 of capital used.

The bot is fully open source and built on top of Synpath: [https://github.com/Synpath-ai/synpath](https://github.com/Synpath-ai/synpath)

The bot is available here: [https://github.com/Synpath-ai/prediction-market-arbitrage-trading-bot](https://github.com/Synpath-ai/prediction-market-arbitrage-trading-bot)

Disclaimer: Not financial advice. Educational purposes only. 
```



document fetched 2026-09-30 00:48 · canonical https://reddit.com/r/algotrading/comments/1wt6hzg/i_made_a_bot_that_spots_riskfree_arbitrage
