Closed Henriii closed 5 years ago
Hi. Thanks for your feedback. Regarding the events :
If you're interested in keeping your order book in sync, handling orderBook & orderBookUpdate is enough, you don't need to handle trades event (unless you also want to keep track of the orders which have been matched).
When an order is matched, any exchange will emit both events :
Thank you! Much appreciated.
Hi,
First I want to thank you for creating this project, so far it works really good for me!
Now to my question: Could you explain the difference between "trade" and "orderBookUpdates" events? From my understanding a trade would also trigger an orderBookUpdate, since it changes the orderbook on the exchange?!
Do I need to handle "trade" events when I want to keep a sync of an orderbook?