feat: split USDⓈ-M futures WebSocket URLs into public/market/private#701
Open
pcriadoperez wants to merge 4 commits intoccxt:masterfrom
Open
feat: split USDⓈ-M futures WebSocket URLs into public/market/private#701pcriadoperez wants to merge 4 commits intoccxt:masterfrom
pcriadoperez wants to merge 4 commits intoccxt:masterfrom
Conversation
Binance is retiring the legacy fstream.binance.com/ws endpoint on 2026-04-23. This migrates to the new dedicated endpoints: - /public → depth, partialDepth, rpiDepth (high-frequency order book) - /market → aggTrades, candles, ticker, liquidations, markPrices, etc. - /private → user data streams (listenKey-based) Adds wsFuturesPublic, wsFuturesMarket, wsFuturesPrivate config options. The existing wsFutures option remains as a blanket override for all three.
Adds all streams from Binance's endpoint mapping that were not previously implemented: Public: - futuresBookTicker, futuresAllBookTickers Market: - futuresMarkPrice (individual symbol, supports 1s update speed) - futuresContinuousCandles (pair + contractType klines) - futuresCompositeIndex (index composition data) - futuresContractInfo (contract listing/status changes) - futuresAssetIndex, futuresAllAssetIndex (multi-assets mode)
…ix flaky checkFields test Shared functions (candles, ticker, allTickers, aggTrades) now explicitly route futures variator to endpoints.futuresMarket instead of relying on endpoints.futures coincidentally pointing to /market/ws. Also fix checkFields to use `field in object` instead of `t.truthy(value)` so fields with valid falsy values like `trades: 0` don't cause failures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wss://fstream.binance.com/wsto the new dedicated endpoints per Binance announcement (2026-03-06):/public— depth, partialDepth, rpiDepth (high-frequency order book data)/market— aggTrades, candles, ticker, allTickers, liquidations, allLiquidations, allMarkPrices, customSubStream/private— futuresUser (listenKey-based user data streams)wsFuturesPublic,wsFuturesMarket,wsFuturesPrivatewsFuturesoption remains as blanket override for backward compatibility