sammchardy / python-binance

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

Inconsistent client.futures_get_all_orders data #1203

Open haloboyscp opened 2 years ago

haloboyscp commented 2 years ago

Describe the bug When calling the API on client.futures_get_all_orders I am many times getting not the most recent orders or getting no orders at all

To Reproduce orders[coin] = client.futures_get_all_orders(symbol=coin, limit=1) Expected behavior It should return the data for the latest order

Is it me doing something wrong or is there an issue with lag or something else? Thanks

conor19w commented 2 years ago

Something like this might work , think orders come back in reverse: orders[coin] = client.futures_get_all_orders(symbol=coin)[-1]

wapd27 commented 1 year ago

When calling the API in client.futures_get_all_orders, many times I don't get the most recent orders, how can I solve this?