| @polymarket/client | minor |
|---|---|
| @polymarket/bindings | minor |
Breaking migration: replace RTDS completely with authenticated PolyBolt price streams. The production endpoint is now wss://ws-live-v2.polymarket.com/ws, with no legacy fallback. Production price subscriptions require that endpoint to be deployed; use a staging environment fork while deployment is pending.
Migration:
- Use a secure client for all price subscriptions and provide explicit, nonempty symbol or asset filters.
- Replace
prices.crypto.binancewithprices.crypto,prices.crypto.chainlink.twapwithprices.crypto.twap, andprices.equity.pythwithprices.equity. Feed symbols depend on the deployed source; there is no implicit symbol set. - Use
webSockets.realtimeandRealtimeWebSocketManager. RemovewebSockets.rtds,RtdsWebSocketManager, andRtdsWebSocketManagerOptionsreferences. - Move environment overrides from
rtdstorealtime: { ws, headers? }. RemoveprotocolandrtdsLegacy; there is only one price transport. - Remove
commentsandprices.crypto.chainlinksubscriptions: these streams are unsupported. HTTP comments APIs remain available. - Replace legacy comment/reaction event,
CryptoPrices*,EquityPrices*, andRealtimeEventbinding imports with the source-neutral price event/spec types. The legacy RTDS schemas and price payload types are removed. - Handle both
subscribehistory snapshots andupdateevents for crypto, TWAP, and equity. RemoveincludeSnapshot; snapshots are included by default. UseCryptoPriceEvent,CryptoTwapPriceEvent, andEquityPriceEventwith the corresponding subscription types.
Add secure prices.polymarket best-bid-and-offer updates with PolymarketPriceEvent and PolymarketPriceSubscription. Price values preserve exact decimal precision, timestamps represent producer time, and events expose optional seq and dropped fields. Subscriptions await server acceptance and can throw SubscriptionRejectedError or ConnectionLostError. Connections authenticate on reconnect, pool filters beyond 64 keys, and refresh history after reported drops.