We have websocket that pushes realtime klines updates for each change in current 1min…
- User
We have websocket that pushes realtime klines updates for each change in current 1min candle. Program should to determine last update for each candle and output the close price from this update (so in other words it outputs close price of each 1min candle). Explain in words how to do this. Response: {"symbol":"BTC_USDT","data":{"symbol":"BTC_USDT","interval":"Min1","t":1732134720,"o":94258.5,"c":94268.6,"h":94287.9,"l":94252,"a":3443194.35551,"q":365211,"ro":94258.5,"rc":94268.6,"rh":94287.9,"rl":94252},"channel":"push.kline","ts":1732134748705} Response data parameters description:
Parameter Data Type Description symbol string the name of the contract a decimal total transaction amount c decimal the closing price interval string interval: Min1、Min5、Min15、Min30、Min60、Hour4、Hour8、Day1、Week1、Month1 l decimal the lowest price o decimal the opening price q decimal total transaction volume h decimal the highest price t long trading time,unit:second(s), the start time of the window(windowStart)
- Assistant