-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General Question about fetchOrderBook and timestamps #1852
Comments
|
Hi! Thx for the question! Initially the orderbook timestamp was designed to store the date returned from the exchange, however, many exchanges do not return any date at all, so the timestamp is filled with the client's timestamp upon receiving their response. But you are right, there's very little point in having a client timestamp there, so we think of setting it to |
As I suspected 😉 The only usecase I can see for client timestamps is WS. |
How can we make sure that the info received is uptodate?
When I deduct timestamp from new Date, for some exchanges i always get 0 as result.
This means that that particular timestamp is generated on my pc, and not sent by the exchange.
Which leads me to my question: If a timestamp is generated on my pc, what's the use of it?
Is there a better way to check that I am getting the latest orderbook?
The text was updated successfully, but these errors were encountered: