GitHub: https://github.com/abrownfox0/abrownfox001-twap60-prediction-trigger-system
YouTube walkthrough: https://www.youtube.com/watch?v=XzhugRL6BV4
Live profile: https://polymarket.com/@abrownfox001
Part 2 said settlement is already law: 5-minute crypto pays 60s Chainlink TWAP.
Part 3 is the execution plane. This is the change that can force clob.ts to move even if your signal is correct.
1. What Polymarket Has Actually Said
By mid-September 2026 the public picture looks like this:
- The live prediction CLOB still matches signed orders and settles on Polygon.
- DeFi engineering has called the current book full of tech debt and said it cannot be saved long-term.
- A replacement matching engine is being rewritten in Rust, with a target around mid-to-late Q4.
- The old CLOB is supposed to stay up while the new one is built beside it.
- Breaking changes for integrators are supposed to be minimal and announced in advance.
- Early internal benchmarks circulated with much lower p99 latency and much higher order throughput. Those are dev numbers, not production SLAs.
- A senior onchain product hire (former Zora CEO Jacob Horne) was added while that rebuild is already underway.
Translate that for a bot:
Do not wait for a surprise “CLOB is gone” tweet.
Do wrap your order layer so you can swap endpoints, error shapes, and ack semantics without touching the TWAP engine.
2. Why a 5m Bot Feels This Immediately
@abrownfox001 is not a quote-spam MM. It still depends on the book for four things:
- mid-band 45–55¢ fills
- staggered clips instead of one lift
- later flat scratches
- idempotent cancels when conviction dies or a socket blips
If matching latency, cancel semantics, or tradeID vs hash behavior changes, the scratch loop is the first thing that breaks.
A faster book helps only if:
- your stale-TWAP halt still works
- you do not double-send after a reconnect
- “breakeven scratch” still finds depth near 50¢
Speed without those guards is just faster adverse selection.
3. What to Isolate Now
Keep settlement and matching in different modules. The public repo already does this:
| Module | Should care about CLOB rewrite? |
|---|---|
twapFeed.ts |
No |
signal.ts |
No |
markets.ts |
Only if market discovery URLs change |
engine.ts |
Only via order/cancel results |
clob.ts |
Yes. This is the blast radius. |
clob.ts should already look like an adapter:
place_limit()
cancel()
cancel_all_slot()
get_open_orders()
map_ack(response) -> { order_id, trade_ids, status }
Do not let engine code parse raw CLOB JSON.
When Rust CLOB lands, you want one adapter change, not a rewrite of scratch logic.
4. Compatibility Window, Not Big-Bang Faith
Polymarket’s stated plan is dual-running:
current CLOB ───────────────────► still live
Rust CLOB ──── build / bench ─► Q4 target
integrators ──── announced diffs only
Prepare for the boring deltas first:
- ack fields (
tradeIDalready replaced some hash behavior on FAK/FOK) - cancel batch limits
- rate-limit headers /
Retry-After - websocket book vs REST book lag
- cancel-only modes during incidents
- possible gateway host changes even if “CLOB v2 URL stays”
Assume minimal breaking changes means “you still have to regression-test every order type you use.”
For this engine that list is small: taker-ish limits in the 45–55¢ band, cancels, no giant batch MM stack.
5. What I Would Not Do
- Freeze a custom fork of an old
clob-clientand hope Q4 is a no-op - Put TWAP math inside the order client
- Treat benchmark “15x throughput” as permission to 10x clip size
- Point the 5m directional bot at Perps just because that book is also Rust
- Ignore Sep 15 maintenance and the Sep 19 trading outage as “unrelated to matching”
Those incidents are why part 4 exists. Matching rebuilds and reliability incidents are the same operational class: your bot must survive a book that is temporarily not itself.
6. Prep Checklist
- [ ] Order/cancel isolated in one adapter
- [ ] Idempotency keys / local order registry
- [ ] Parse
Retry-Afterand tier warnings - [ ] Dry-run path still works (
npm start) - [ ] Slot halt if acks or book data look impossible
- [ ] Log raw ack + mapped status for one week before any cutover
- [ ] Follow @PolymarketDevs for the actual integrator note, not Twitter summaries
7. What Part 4 Covers
Even if the Rust book ships cleanly, current production already has:
- volume-tiered CLOB rate limits
- RTDS as the TWAP path
- maintenance windows
- a multi-subsystem outage that took CLOB + RTDS + settlement down together
Part 4 is bot ops: what to do when the platform is degraded, not when the model is wrong.
Links
- Repo: https://github.com/abrownfox0/abrownfox001-twap60-prediction-trigger-system
- Video: https://www.youtube.com/watch?v=XzhugRL6BV4
- Live activity: https://polymarket.com/@abrownfox001?tab=activity
Not financial advice. Benchmarks are not production capacity.
If you have more questions, please feel free to contact me at any time: https://t.me/abrownfox001
My Polymarket Activity: https://polymarket.com/@abrownfox001?tab=activity
#Polymarket #CLOB #Rust #TradingBot #BTC #AlgoTrading #PredictionMarkets
Top comments (0)