30 and 60 are lookback windows, not publication intervals. Read Polymarket’s August 7 announcement, the PolyNode transition guide, and Polymarket’s Chainlink TWAP guide for the schedule and underlying price semantics.
Use TypeScript
0.12.0+, Python 0.12.0+, or Rust 0.15.0+. Earlier versions do not implement the complete interval-to-TWAP mapping and rotation behavior documented here.Managed stream
Choose an interval and, optionally, a subset of supported assets. The default is all seven: BTC, ETH, SOL, XRP, DOGE, HYPE, and BNB.- TypeScript
- Python
- Rust
What rotation means
Market slugs and outcome-token IDs change at every boundary. Chainlink selection is also scoped to the WebSocket connection. The managed helper therefore owns a dedicated socket and performs this sequence at each boundary:- close the old dedicated socket
- discover the new market slugs and token IDs
- connect a replacement socket
- subscribe to
settlementsfor the exact new slugs - subscribe to the interval’s exact Chainlink TWAP window, when applicable
- emit
rotationwith the new market metadata
Rotation payload
Each discovered market includes the fields needed to connect other user-facing components:
Python and Rust expose the same fields in
snake_case. Rust’s RotationInfo also exposes twap_window_seconds for the selected interval.
Choose another interval
- TypeScript
- Python
- Rust
Subscribe to TWAP prices manually
Use a manual Chainlink subscription when you want price events without managed market discovery. Combine every feed and lookback needed on that socket into one subscription.- TypeScript
- Python
- Rust
is_twap and twap_window_seconds; do not infer the price type from arrival frequency. If both windows are selected, key state by feed, window, and timestamp.
Connect the current market to the orderbook
Use the rotation payload’s outcome token IDs. Replace the previous token set wheneverrotation fires:
Shutdown
Stop every managed stream you create. This cancels its rotation timer, removes subscriptions, and closes its dedicated connection.- TypeScript
- Python
- Rust

