Hello, I searched and didn't find how to control the cache size for the book depthCache.
The object is updated with Binance data, but there is no memory size control, it is only possible to use the sortAsks and sortBids functions with the maximum sampling value, correct?
I would like to suggest an update to the clearDepthCache function to allow controlling the size of the cache instead of just clearing it all like the current one.
If there is another way I would like suggestions.
Follow the code below.
Hello, I searched and didn't find how to control the cache size for the book depthCache. The object is updated with Binance data, but there is no memory size control, it is only possible to use the sortAsks and sortBids functions with the maximum sampling value, correct? I would like to suggest an update to the clearDepthCache function to allow controlling the size of the cache instead of just clearing it all like the current one. If there is another way I would like suggestions. Follow the code below.