简体   繁体   中英

How to get historical Bid and Ask price with python-binance

I am using

client.get_historical_klines('BTCUSDT', '15m', '1 Dec, 2019', '25 Apr, 2021', limit=500 )

to get historical price (mid point). But is there a way to get historical bid and ask price, rather than mid price, with python-binance api?

According to the Binance API documentation , there is no option to get historical data on the order book. Therefore there should be no option in python-binance either.

In the documentation, I see the following (nearest) endpoints:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM