Partial Book Depth Streams is api result not symbol name

Partial Book Depth Streams is api result not symbol name

Hey there,
there’s already a post on this, please refer to: symbol on `<symbol>@depth<levels>` stream payload

Hi,

there is a difference in the response to the subscription @depth@1000ms between the testnet and the real net.
The response in the testnet contains the symbol name, in contrast to the realnet, where it is missing!
testnet:

{"stream":"btcusdt@depth20@1000ms","data":{"lastUpdateId":29235826,"bids":[["98575.45000000","0.00376000"],["98575.44000000","0.00401000"],["98575.27000000","0.00498000"],["98574.69000000","0.00254000"],["98574.29000000","0.00482000"],["98574.26000000","0.00472000"],["98573.98000000","0.00371000"],["98573.97000000","0.00416000"],["98572.01000000","0.00371000"],["98572.00000000","0.00279000"],["98570.19000000","0.00498000"],["98569.65000000","0.00406000"],["98568.00000000","0.00305000"],["98565.68000000","0.00010000"],["98565.59000000","0.00482000"],["98561.48000000","0.00010000"],["98557.95000000","0.00488000"],["98557.62000000","0.00452000"],["98554.98000000","0.00335000"],["98553.99000000","0.00356000"]],"asks":[["98577.83000000","0.00310000"],["98582.06000000","0.00472000"],["98582.76000000","0.00279000"],["98582.86000000","0.00411000"],["98587.61000000","0.00259000"],["98591.26000000","0.00416000"],["98618.15000000","0.01545000"],["98643.14000000","0.00203000"],["98693.25000000","0.00083000"],["98785.05000000","0.00250000"],["98786.36000000","0.02943000"],["98790.96000000","0.00405000"],["98807.10000000","0.00092000"],["98815.39000000","0.00250000"],["98824.20000000","0.00250000"],["98827.78000000","0.00250000"],["98837.44000000","0.00250000"],["98845.17000000","0.00250000"],["98857.72000000","0.00250000"],["98868.57000000","0.00250000"]]}}

realnet:

{"lastUpdateId":57225241631,"bids":[["98603.04000000","3.65916000"],["98603.03000000","0.54010000"],["98601.86000000","0.07310000"],["98601.85000000","0.00010000"],["98601.84000000","0.00010000"],["98601.83000000","0.20312000"],["98601.71000000","0.00010000"],["98601.36000000","0.00016000"],["98600.54000000","0.00999000"],["98600.37000000","0.00016000"],["98600.01000000","0.00010000"],["98600.00000000","0.14586000"],["98599.99000000","0.05631000"],["98599.55000000","0.00010000"],["98599.46000000","0.00010000"],["98599.30000000","0.00010000"],["98598.37000000","0.15248000"],["98597.60000000","0.00021000"],["98596.60000000","0.00010000"],["98596.20000000","0.00011000"]],"asks":[["98603.05000000","1.07393000"],["98603.33000000","0.00022000"],["98603.53000000","0.00028000"],["98603.67000000","0.00022000"],["98603.98000000","0.00022000"],["98603.99000000","0.00040000"],["98604.00000000","0.02982000"],["98604.02000000","0.00022000"],["98604.23000000","0.00050000"],["98604.35000000","0.00016000"],["98604.73000000","0.00022000"],["98604.74000000","0.14915000"],["98604.75000000","0.00016000"],["98604.76000000","0.00022000"],["98604.93000000","0.00027000"],["98604.94000000","0.00016000"],["98604.95000000","0.00010000"],["98605.04000000","0.00018000"],["98605.23000000","0.00010000"],["98605.30000000","0.00006000"]]}

Why is there a difference?

Please Binance. Fix it or tell us how to deal with it in case of want to subscribe to multiple streams at once and distinguish the stream response.

Like this:
{“method”: “SUBSCRIBE”, “params”: [“btcusdt@depth20@1000ms”,“dexeusdt@depth20@1000ms”]}
KR
Mask

I have noticed that I have used different paths in the url for the testnet and the realnet. This caused the different behaviour. So the problem was not with the API but with me. Sorry!

[testnet]
streamurl=wss://stream.testnet.binance.vision:9443/stream
apiurl=wss://testnet.binance.vision/ws-api/v3

[realnet]
streamurl=wss://stream.binance.com:9443/ws
apiurl=wss://ws-api.binance.com:9443/ws-api/v3

So the trick is to use /stream instead of /ws .

streamurl=wss://stream.binance.com:9443/stream

KR
mask