Ask for help, getDepth data access time frequency and more.

Author: xaifer48, Created: 2022-09-23 22:53:38, Updated: 2022-09-23 22:53:56

I would like to ask you two questions, gentlemen: 1, the orderbook of the Binance exchange pushing interval time, there are 250 milliseconds, 500 milliseconds, 100 milliseconds 3 types. 2, if in a policy some data is obtained by these functions wrapped by the inventor and some other data is obtained by the websocket, what is the conflict? Please guide me, thank you.


More

The Little Dream> 1, the order book push intervals of the Binance exchange, there are 250 milliseconds, 500 milliseconds, 100 milliseconds 3 types. The inventor packed the GetDepth function, what is the time interval of 100 ms for obtaining data? The GetDepth interface, which is a REST protocol, encapsulates the data from a request to a data acquisition. The time from request to acquisition is usually a few hundred milliseconds, depending on the network and the exchange interface response speed. > 2, if in a policy some data is obtained with these functions wrapped by the inventor and some other data is obtained with the websocket, what is the conflict? The two methods can be mixed, but you have to design them specifically according to your needs.