LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
688 stars 164 forks source link

auto_replace_stream(interval_h=24) #15

Closed oliver-zehentleitner closed 4 years ago

oliver-zehentleitner commented 5 years ago

If Binance initiate a disconnect and the connection has to be reestablished, does Binance deliver all data since the disconnect or is there a gap? If there is a gap, it could be a solution to replace streams (start a new with same settings and close the old on the first receive of the new stream) every X hours.

Has anyone analyzed this and can share knowlegde?

pisulski commented 4 years ago

From my knowladge they just start a websocket. Mayby Binance API English on telegram help you with answer. I saw only information from users 'oh no after restart my bot doesnt work. Does websocket sent messages? Probably user Ninj0r from this channel is most adequate.

oliver-zehentleitner commented 4 years ago

Thanks for the hint, will do so!

oliver-zehentleitner commented 4 years ago

answer: You will miss the data sent while you were disconnected