The response for the all market tickers stream in the documentation does not match with the actual response received
This is the response received
{
“e”: “24hrTicker”,
“E”: 1713765173564,
“s”: “NEARUSD_PERP”,
“ps”: “NEARUSD”,
“p”: “0.506”,
“P”: “7.980”,
“w”: “6.36076957”,
“c”: “6.847”,
“Q”: “42”,
“o”: “6.341”,
“h”: “6.849”,
“l”: “6.051”,
“v”: “2624659”,
“q”: “4126323.03456056”,
“O”: 1713678720000,
“C”: 1713765173548,
“F”: 35079417,
“L”: 35156779,
“n”: 77363
}
while this is the response from the documentation
{
“e”: “24hrTicker”, // Event type
“E”: 1672515782136, // Event time
“s”: “BNBBTC”, // Symbol
“p”: “0.0015”, // Price change
“P”: “250.00”, // Price change percent
“w”: “0.0018”, // Weighted average price
“x”: “0.0009”, // First trade(F)-1 price (first trade before the 24hr rolling window)
“c”: “0.0025”, // Last price
“Q”: “10”, // Last quantity
“b”: “0.0024”, // Best bid price
“B”: “10”, // Best bid quantity
“a”: “0.0026”, // Best ask price
“A”: “100”, // Best ask quantity
“o”: “0.0010”, // Open price
“h”: “0.0025”, // High price
“l”: “0.0010”, // Low price
“v”: “10000”, // Total traded base asset volume
“q”: “18”, // Total traded quote asset volume
“O”: 0, // Statistics open time
“C”: 86400000, // Statistics close time
“F”: 0, // First trade ID
“L”: 18150, // Last trade Id
“n”: 18151 // Total number of trades
}
Hey,
The Spot Ticker and CM Futures Ticker are two separate WebSocket streams.
The result you are receiving aligns with the documentation for the CM Futures Ticker stream as you are making a request for a CM Futures symbol: Binance API Documentation
Thankyou for the help, this resolved my issue