Closed evgenyfedorenko closed 2 years ago
Hi, it's not supported right now, but pull requests are welcome.
What is the expectation for this change? Should BookChange type accept optional param 'interval' and accumulate changes based on it and yield only after that interval? Or we should it be an optional 'depth' param in BookSnapshot type so that it can contain entire book?
I guess it should be one of computables in tardis-dev lib and then exposed via tardis-machine, so you'd be doing smth similar to what book snapshots logic does, but not compute snapshots just aggregate book_change messages by time, but frankly wouldn't it be easier to be done client side? You could buffer book_change messages by certain amount of time and then process as batch.
Looks like there is no way right now to configure update speed for exchanges. For instance binance gives an option to specify that https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams. I know there is a way to keep a local copy of book via computeBookSnapshots. But that will give me the message type book_snapshot and I need to limit the book size explicitly which I can not do. Is there way to let's say have messages type book_change every 250ms ? Thanks