ftx-api icon indicating copy to clipboard operation
ftx-api copied to clipboard

How do I use websocket to update K-line data?

Open lei1996 opened this issue 3 years ago • 2 comments

example: 15min image I first get the historical data through the gethistoricalprices interface, and then push the latest data through WS 15 minutes later?

lei1996 avatar Jan 02 '22 10:01 lei1996

I don't want to request the HTTP interface in 15 minutes, because there will be other problems.

lei1996 avatar Jan 02 '22 10:01 lei1996

I don't think FTX provides a kline channel. If you'd like official confirmation you could try asking on their API channel in telegram: https://t.me/ftx_api_support

What you could do instead is subscribe to the trades topic and build your own candles.

tiagosiebler avatar Feb 02 '22 12:02 tiagosiebler