Rotate TypeScript subscriptions across short-form crypto markets with the correct Chainlink TWAP window.
Polymarket’s short-form crypto markets change identifiers at fixed boundaries. The managed stream discovers the active market, chooses the correct Chainlink selection, and replaces the subscription when the boundary arrives.
Starting August 7, 2026 at 00:00 UTC, use a 30-second TWAP for 5-minute markets and a 60-second TWAP for 15-minute and 4-hour markets. One-hour markets continue to use the default spot feed.
At every boundary the helper closes its dedicated socket, opens a new one, and subscribes to the new market identifiers and price selection. Consumers do not manually calculate the next slug, but they should handle a normal connection transition around rotation.Supported assets are BTC, ETH, SOL, XRP, DOGE, HYPE, and BNB.