Volume Value Complexity in Live Data and Hstorical Data

With Python:

client.get_historical_klines(“BTCUSDT”, Client.KLINE_INTERVAL_1MINUTE)

The volume value in the data I captured in this way is less than 1, such as 0.1.

SOCKET = “wss://stream.binance.com:9443/ws/btcusdt@kline_1m”
ws = websocket.WebSocketApp(SOCKET, on_open=on_open, on_close=on_close, on_message=on_message)

The v value in the data I captured in this way is 22.74.

What’s the problem? This volume data seems inconsistent, am I pulling the data wrong?

We don’t know what’s the underlying code of client.get_historical_klines(“BTCUSDT”, Client.KLINE_INTERVAL_1MINUTE) and the responses you’ve checked. You should share the raw responses from REST API and Websocket here so that we can analyze further and troubleshoot.

ws = websocket.WebSocketApp(‘wss://stream.binance.us:9443/ws/ethusdt@kline_1m’, on_open=on_open,on_message=on_message, on_close=on_close)
ws.run_forever()

*I received:
opened

{‘e’: ‘kline’, ‘E’: 1704696447298, ‘s’: ‘ETHUSDT’, ‘k’: {‘t’: 1704696420000, ‘T’: 1704696479999, ‘s’: ‘ETHUSDT’, ‘i’: ‘1m’, ‘f’: 16201400, ‘L’: 16201400, ‘o’: ‘2221.14000000’, ‘c’: ‘2221.14000000’, ‘h’: ‘2221.14000000’, ‘l’: ‘2221.14000000’, ‘v’: ‘0.00490000’, ‘n’: 1, ‘x’: False, ‘q’: ‘10.88358600’, ‘V’: ‘0.00490000’, ‘Q’: ‘10.88358600’, ‘B’: ‘0’}}
on_close args:
True
lookat volume is ‘v’: ‘0.00490000’, volume of ETHUSDT is so small and sometime it equal zero