Nett (@web3tool) header
Nett (@web3tool) profile picture

Building bots for prediction markets

Joined July 2020
Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)Photo by Nett (@web3tool)
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Replying to @dexorynlabs
Curious how you handle CLOB latency spikes. The same order can match in 200ms or 3s, and the slow ones cluster right when BTC moves, i.e. when every snipe fires. A 1¢ ask 2s later is a different trade. What's your live signal→fill rate vs dry-run?
1
22
At the end of August, I said our Polymarket DeFi CLOB couldn't be saved, and we were rewriting it from scratch in Rust 🦀 Today I'm excited to announce Nex, our new exchange built from the ground up. We've been sprinting on it since August. A Nex instance has been running in shadow mode on production traffic for the last week, side by side with the current exchange. It mirrors every order the current exchange gets, so we can measure latency, stability under load, and validate matching correctness against live production flow. The numbers below are internal exchange timings, not e2e (those are coming soon), but we wanted to show how big the difference is. p99 current CLOB → Nex: - Place order: 1.55s → 3.76ms (412x faster) - Cancel orders: 627.92ms → 3.20ms (196x faster) - Cancel market orders: 810.16ms → 5.14ms (158x faster) - Cancel all*: ↳ Response (current CLOB) vs complete (Nex): 35.70ms → 3.14ms (11x faster) ↳ Full cancel all: ~636ms-2.04s → 3.14ms (~200-650x faster) p95 current CLOB → Nex: - Place order: 341.84ms → 1.59ms (215x faster) - Cancel orders: 78.22ms → 1.58ms (50x faster) - Cancel market orders: 84.89ms → 2.27ms (37x faster) - Cancel all*: ↳ Response (current CLOB) vs complete (Nex): 6.20ms → 1.58ms (4x faster) ↳ Full cancel all: ~606ms-2.01s → 1.58ms (~380-1,270x faster) *Cancel all: the current CLOB responds immediately and cancels in the background, so when you get the response, your orders aren't cancelled yet. Nex responds only after everything is actually cancelled. Full cancel all on the current CLOB depends on how many orders you have, but it usually adds another 600ms-2s. We also rewrote our WebSockets in Rust. This is the feed you see the market through: book changes, price moves, your fills. Fall behind it, and you're trading on old prices, and your quotes get picked off. - Write latency p99: 44.5-88.1ms → 0.099ms (~449-889x faster) - Slow readers/sec: 48.7-75.6 → 0.01 (~4,870-7,560x fewer, basically 0) Scale: The current CLOB in stable state can handle 10k commands/s with 15k bursts → Nex can handle 100k commands/s with 150k bursts. 10x more, and with a few optimisations we can get to 200k commands/s with 250k bursts; with more low-level core changes, we can get to 1M commands/s over the next year. Not needed yet, but the headroom is there. Startup time: 5 mins → 15s (20x faster) The old CLOB had many race conditions and wasn't deterministic. Nex is deterministic by design and removes the race conditions in the old CLOB. We also skipped some easy wins for launch to get this out faster that could make p95 and p99 another 5x faster, and we'll start work on that in Q1 next year to keep pushing these numbers down. We wanted to build this without any breaking changes for MMs or builders; Nex has no breaking changes to requests or responses, so we just need to swap out the binary on our side and it will go live. We want everyone to be on this journey with us, with the ability to relay feedback and test it against the existing CLOB, so we've opened a Nex Sandbox. Fill out the form and test it yourself: docs.polymarket.com/nex We'll run 4 weeks of shadow mode on production traffic to make sure everything is perfect, then if everything is good, we will go live mid-December. We can roll out WebSocket improvements without the full exchange, so we may do that sooner. We've been rebuilding every system around the exchange for months, and we've seen huge benefits, but the exchange is the heart of Polymarket DeFi. Nex fixes most of the pain traders have had. Really proud of the team on this one. Make Polymarket fast, finally. It's coming.
Honest post: the Polymarket DeFi CLOB is full of tech debt. It grew fast, got hacked together, and most of the team inherited it that way. Since joining and building out the team, we have scaled it 10x and made it 3x faster, but it’s not enough; the core foundations of how it’s been built are wrong in almost every way. You try to fix one thing, and another thing goes wrong; the conclusion now is that the codebase can’t be saved long-term. The exchange is the heart of Polymarket; everything runs through it. If we want to be the best exchange in the world, it must be fast, stable, and scalable. We can’t keep patching the old one, where these core foundations are generally missing throughout, so we’re rewriting it from scratch in Rust. Early numbers: 10-20x faster on p99 than today, 200,000 orders per second (15x what we have now, with room to reach 400,000+), and stability under load. This will put us faster than most exchanges, including CEXs. Building it in Rust gives us memory safety with no garbage collector. No GC means no random pauses and no random latency spikes; the tail latency in the benchmarks is the tail latency you get in production, alongside a strict compiler that enforces correctness up front. Data races and memory corruption (the bugs that take exchanges down) can’t exist in the first place. Polymarket has to take it seriously that we are an exchange; this is people’s money, not a joke. To succeed, we have to fix this; otherwise, we will fail. It’s as simple as that. I joined to build the best software in the world, not to maintain some of the worst, and I will do everything I can to make Polymarket a serious exchange. We are aiming to have the exchange ready sometime in Q4 (mid to end). I'll communicate progress as we go so you all know the status. Breaking changes will be minimal for all integrators and will be communicated in advance. We will maintain the existing CLOB and keep trying to improve it as we build this side by side. We can’t wait to throw away the existing CLOB; we dislike it as much as you all do. Make Polymarket fast, finally.
126
68
41
731
119,342
Yep. The hard part is noticing it's closing before your PnL does.
2
13
Replying to @Outcomexyz
@outcomexyz feels like early Polymarket right now. New markets are always messy. Few traders, slow pricing, odds that don't make sense yet. That's where the inefficiencies are. Every new prediction market has a window. Most people miss it.
2
1
26
No glitch button. Just thousands of boring losing trades and a few good ones.
10
Okay, one of my bots is officially going viral. More and more breakdowns every day. Guess I’m doing something right.
A Claude Code bot is trading Polymarket right now, and it’s buying Bitcoin at 1¢ $37,528 profit. 10,313 trades. Only the 5 minute Bitcoin Up or Down markets Account: polymarket.com/@vega7?via=im… It ignores the obvious side and buys the extremes at 0.5¢ to 1.5¢ One Down purchase at 0.5¢ paid $1,965. That’s +18,418% At a 1¢ entry it only needs to be right 1 time out of 100 to break even. Every win pays 100x Humans hunt for guaranteed wins. The bot just takes the expected value and waits for the jackpots.
58
Replying to @0xthemolt
Half of my feed is in this list. Too bad I missed the first wave.
18
Looks like I’ll miss the main event.
1
21
Funny to see one of my bots becoming more popular than me. Even better, it’s helping people promote their referral links.
This guy is buying BTC UP or DOWN on Polymarket at under 1c and somehow keeps winning… Some of his recent trades: > 1.1c entry: turned $23 into $2,400 > 0.5c entry: made $2,050 from only $10 > 0.9c entry: turned $16 into $1,700 No idea what strategy he’s using, but the pnl is crazy. Looks like he’s running a really smart trading bot… Or he figured out something we dont. His profile: polymarket.com/@vega7?via=re…
67
Replying to @zubbee_X
Gm Open now
1
1
15
If anyone knows the pain of indexing EVM data at scale, it’s the DeBank team
1
18
Ghost orders still around? Honestly thought that got fixed long ago
16
Deposit Wallets are live. New signups now get a deposit wallet at the door, and ghost fills should taper off through the day as the rollout spreads. We're monitoring performance closely.
46
33
10
208
174,588
Stopped all bots and watching the clock for today's ghost fill fix.
119
I’ve been one of the biggest market makers on Polymarket for a long time. At peak I was doing $10M+ daily volume and paying thousands in fees every single day. The current state is the worst the platform has ever felt. Ghost fills still everywhere. Markets constantly breaking. Payouts randomly missing. Exploits going on for months while the team says “it’s fixed”. You spend more time defending against bugs than actually trading. Meanwhile, communication is a joke. They say “we’re listening” → ignore emails, ignore DMs. They say “we’ll work with top users” → instead it’s random private Telegram groups with whoever shouts the loudest. They say “issue fixed” → it clearly isn’t. At some point you stop believing anything they say. The fee situation is another one. If you’re generating serious volume and paying serious fees (thousands a day), most exchanges shower you with attention and perks. I'm not asking for that but would be nice to at least be acknowledged that you exist and have basic communication, especially after they've announced publicly multiple times that they will start doing this. Instead we got a week-long hype campaign for a “big update” that turned out to be… a hidden fee increase. How dumb do you think your users are? And then stuff like April 5th, missed referral/rebate payments, no announcement, no explanation, nothing. Just silence. That’s not a bug, that’s trust damage. The bigger issue is it feels like nobody on the team has actual trading experience. The design decisions show it. Every update introduces new edge cases, new exploits, new ways to break the order book. People have made many millions exploiting this stuff. Many of these accounts are obvious, trackable, preventable. The community has been pointing it out for months. Ignored. Only now that the markets are borderline unusable does it seem like there’s urgency. Right now the platform is honestly close to untradeable: – ghost fills – manipulation – unreliable payouts – constant bugs – zero transparency And surprise, volume is dropping. Meanwhile Kalshi is catching up fast (have basically overtaken in volume in almost every category except for politics) and Hyperliquid is entering with a team that actually understands trading systems. I want Polymarket to succeed. And yes, maybe the upcoming ghost fill fix helps. But if this pattern continues, terrible communication, fake timelines, ignoring core users, then this won’t be a place serious traders stick around. You can’t build a market while eroding the trust of the people who provide the liquidity, especially not as a many multi billion dollar company! I have spoken to many large polymarket whales (of which a considerable amount have already given up on the platform) and they all share this sentiment. @Polymarket @mustafap0ly @SuhailKakar @_kanarazu_
89
60
18
809
107,160
Replying to @devjoshstevens
Proposal: failed tx count = $POLY airdrop tier. Turn our suffering into allocation 🫡
1
94
That's a ghost fill. Your order matched off-chain but the settlement reverted on-chain. The trade never actually happened. It's an active exploit and lot of people are affected right now, especially on 5-min crypto markets. Polymarket said a fix is coming as a fast-follow to V2.
423
Replying to @GomuCrypto_eth
Doesn't really matter — I run taker-only bots on 5m crypto and had to stop all of them this week.
1
54
Replying to @GomuCrypto_eth
Have crypto market fees actually changed? On 5m/15m crypto markets the real PnL killer isn't fees — it's the ghost fills exploit.
1
182
Replying to @trylimitless
0x469894E7c0F9be018cB50b22735ad1e06554fff4
15