bmoscon / cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler
Other
2.19k stars 679 forks source link

how to get snapshot data in okx #888

Closed xubinlaile closed 2 years ago

xubinlaile commented 2 years ago

image

bmoscon commented 2 years ago

not sure how highlighting some stuff from the docs is a question. What is your question? If you want the book data snapshot, thats the same as subscribing to the L2 book data feed in cryptofeed.

xubinlaile commented 2 years ago

thanks for your attention. I test one demo success in linux, I get the log such as 'Delta from last book contains 155 entries', what is the releationship between delta data and snapshot data, how can I get the snapshot data?

xubinlaile commented 2 years ago

as the picture shows below, i guess the delta data may be incremental data, does the frame support merging incremental data into full data?

xubinlaile commented 2 years ago

how can I get the csv data of snapshot? thanks for your reply.

xubinlaile commented 2 years ago

not sure how highlighting some stuff from the docs is a question. What is your question? If you want the book data snapshot, thats the same as subscribing to the L2 book data feed in cryptofeed.

base on the doc, when subscribe book default, incremental data will be pushed every 100 ms when there is change in order book, how can i subscribe the different channel 'books50-l2-tbt' in which the incremental data will be pushed every 10 ms image

bmoscon commented 2 years ago

cryptofeed uses books - the 400 depth book that is updated every 100 ms. to have it use anything else youd have to change the code yourself.