sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.02k stars 2.2k forks source link

DepthCache #463

Closed stephencostiniano closed 2 years ago

stephencostiniano commented 4 years ago

Hello is it possible to increase the depth_cache to 1000 or 5000

oliver-zehentleitner commented 4 years ago

yes, should be possible with limit: https://github.com/sammchardy/python-binance/blob/master/binance/depthcache.py#L124

https://github.com/binance-exchange/binance-official-api-docs/blob/025aedba3bec0418939857b49886a0ffce2a1b21/rest-api.md#order-book Valid limits:[5, 10, 20, 50, 100, 500, 1000, 5000]