tiagosiebler / ftx-api

Node.js connector for the FTX.com & FTX.us APIs and WebSockets, with TypeScript & browser support.
https://www.npmjs.com/package/ftx-api
MIT License
123 stars 47 forks source link

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

Closed lei1996 closed 1 year ago

lei1996 commented 2 years ago

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 commented 2 years ago

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

tiagosiebler commented 2 years ago

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.