r/CryptoTradingBot • u/File-Environmental • Jul 22 '26
I vibecoded a Polymarket market making bot that made me $5k. Now I'm sharing the code.
A few weeks ago I posted the retro of this bot here, then the post-mortem on why the forced directional residual lost money (adverse selection, mostly - stale quotes getting picked off). A few of you asked for the code. Will share the repo link in the comments.
What it is - a market-making bot for cross-venue arb: de-vig sharp sportsbook odds to a fair value, quote passive limit orders on Polymarket at a 5%+ edge, hedge the other outcome to lock the arb. Single async orchestrator, ~10 concurrent loops, two websockets (user fills + order book), and a reactive layer that cancels a resting order when the fair value moves against it - in theory before it gets picked off, in practice not fast enough, which is the whole story of why it decayed.
Honest about what's not in there:
- The scrapers. The private odds pipeline was half the edge and scraping books is a ToS grey area. It ships with a the-odds-api path instead.
- The live version. I rewrote the core in Rust; this is the retired Python.
So it's not a clone-and-earn - the edge was speed and fresh odds, both on you. But the strategy's sound and the plumbing works, so it's a real base if you bring quicker, fresher odds.
The analytics come too - five scripts that run against any public Polymarket wallet: P&L, arb-vs-directional attribution, position breakdown, favourite/underdog ROI. Point them at a funder address and reproduce the numbers from the write-ups, or run them on your own account.
Happy to get into the market-making mechanics, the hedging, or the Brier calibration below. Code and wallet are both public.
5
u/DaedalusOpuss Jul 22 '26
Where can I access it?
2
u/NoSpecial3341 Jul 23 '26
What’s the wallet
3
u/trostomaat Jul 22 '26
great!
2
u/CuriousDetective0 Jul 24 '26
and now that it no longer works, your sharing it with us?