Speed on Polymarket is not what I thought it was when I started building this.
I assumed faster was always better. Get the signal, fire the order, win. Turns out the execution problem on Polymarket is more interesting than that - and the bottlenecks are not where most people expect them to be.
This is the execution layer behind a bot that's placed 11,717 trades. Here's what I learned building it.
Repo:
The order submission logic is in execution/clob.ts and the latency logging is in utils/metrics.ts. Questions in the comments about any of this.
SOCIAL SHARE CARD GENERATOR