Replies: 2 comments
-
Cross posting from Discord
|
Beta Was this translation helpful? Give feedback.
-
This turned out to be a bug when requesting for full depth books, an initial snapshot was not being requested. This has been changed to request an initial 1000 level snapshot, before applying deltas (which works for both the Futures and Spot APIs) 970d551. |
Beta Was this translation helpful? Give feedback.
-
I have a question on how to handle book deltas vs snapshots. Traditionally the way this works is that the exchanges recommend you subscribe to deltas, then get an initial snapshot. Only then do you start applying deltas to the book (making sure to drop any with a sequence number less than that on the initial snapshot). What I find in Nautilus (on Binance) is a bit odd. If I subscribe to a snapshot and deltas, then the books that are generated by each callback are substantially different from each other. If I just use the deltas and build a book, I'm never actually guaranteed to know what the actual best bid/offer is, as the starting point is random. If I subscribe to only snapshots, then the limitation is that you only get aggregated events each interval_ms, so you potentially are reacting slower than other participants when then is a material update to the orderbook. What is the recommended way to handle this?
Beta Was this translation helpful? Give feedback.
All reactions