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 1 mapped the stack: settlement already moved, matching is next, ops keep breaking.
Part 2 is the settlement layer only. By late September 2026, 60-second Chainlink TWAP is not a pending upgrade. It is how live 5-minute crypto Up/Down markets resolve.
If your bot still treats TWAP as optional, you are forecasting a number Polymarket no longer pays.
1. The Rule That Is Already Live
| Market | Official settlement now |
|---|---|
| Crypto 5-minute | 60-second Chainlink TWAP |
| Crypto 15-minute | 60-second Chainlink TWAP |
| Crypto 4-hour | 60-second Chainlink TWAP |
Timeline that still trips people:
- Aug 7: snapshot close replaced by TWAP
- first 5m mapping: 30-second window
- Aug 14 onward: 5m markets deployed since then use 60s
- RTDS delivers 30s and 60s TWAP over Polymarket’s public websocket
The repo name is the production stance: abrownfox001-twap60-prediction-trigger-system.
Older comments in twapFeed.ts that say “30s window” are historical. Live 5m scoring should not be.
2. What “60 Seconds” Actually Means
It is a lookback, not a once-per-minute heartbeat.
Chainlink publishes a signed average over the prior 60 seconds. Updates can arrive more often than that. Bots that wait for “the 60s candle close” are inventing a clock the feed does not use.
Both sides of the comparison must be the same series:
twap_open = 60s TWAP at slot start
twap_now = latest 60s TWAP
up_wins = twap_end >= twap_open # per live market rules
Pin open from Binance mid and close from TWAP and you have created a third market. Nobody settles it.
3. The Tech Mistakes That Are Still Everywhere
These are not theoretical. They are the leftover code paths from July.
| Leftover | Why it fails now |
|---|---|
| CEX last-tick trigger | Snapshot edge was the thing TWAP was built to kill |
| 30s open + 60s close | Silent label error |
| RTDS connected ⇒ data is fresh | Heartbeat ≠ new TWAP observation |
| Float compare on 1e18 scaled prices | Rounding bugs at resolution |
| Train on historical snapshot closes | You are fitting a dead target |
| Score only in the final 8 seconds | 60s average is a path, not a bell |
The public @abrownfox001 loop is the opposite:
- stream TWAP through the whole 5m slot
- mid-band entries
- re-score
- scratch if the official path stops supporting the ticket
That only makes sense if the target is the live average.
4. Minimum Feed Contract for a 5m Bot
src/twapFeed.ts has to do more than “subscribe.”
Required behavior:
- topic for 60s TWAP (
crypto_prices_twap_sixty/ SDKwindowSeconds: 60) - exact filter
{"symbol":"btc/usd"} - store value + observation timestamp
- reconnect with backoff
- skip the slot if stale
- log
resolution_srcasrtds_twaporgamma
Gamma outcomePrices remains the scoring fallback.
CEX mid stays in cexFeed.ts as lead-lag only.
If RTDS dies, do not silently swap in Binance last. Halt or paper that slot.
5. Why This Still Matters After the “Update” News Cycle
September headlines are about Rust CLOBs, perps, and product hires.
None of that changes the 5-minute payout function.
A faster matching engine that executes the wrong target is just a faster wrong bot.
TWAP60 is the first filter. Matching-engine prep is part 3.
6. Checklist Before You Touch Anything Else
- [ ] Live market rules name the 60s Chainlink stream
- [ ] Open pin and live score use that same stream
- [ ] 30s path is research-only or deleted
- [ ] Stale TWAP is a hard skip
- [ ] Every decision log includes
twap_open,twap_now,t_left - [ ] Labels for any retraining come from official TWAP/gamma, not CEX close
If this list is incomplete, stop. The CLOB rewrite will not save you.
7. What Part 3 Covers
The next expected change is the execution plane:
- current CLOB stays live
- Rust matching engine being built beside it
- claimed p99 / throughput gains are still benchmarks
- integrators should assume a compatibility window, not a surprise cutover
That is where 5m bots will feel the next forced code change.
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. Always read the live market’s official resolution source.
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 #TWAP #Chainlink #BTC #TradingBot #AlgoTrading #PredictionMarkets
Top comments (0)