Closed anouaran closed 1 year ago
Are your finished orders recent? The API returns only orders or trades in the last 7 days by default.
No my orders for last 3 months. but gate can't add this explain about return last 7 days. why status=open get orders without limit for 7 days. so how can get all orders in status=finished without limit in 7 days?
You can set from
and to
parameters to control the time range for your query. Note the time range between from
and to
cannot exceed 30 days.
For open orders, they are still recent because they are alive in the trading market.
in binance give me all traders just by pair. so what is the best way to get all traders without limit. can I use websocket good or same probleme
The only way to retrieve historical trades and orders is to iterate your time range by 30 days. However you can set limit
up to 1000 to retrieve as many records as possible in one request.
I'm using python script to call orders by /spot/orders work fine when I putt in status OPEN but when I butt FINISHED return empty same error when call my_trades, my code:
NOTE: I have orders filled and cancelled in this pair this method work fine. butt after try to get finished orders by
status=finished
not work give me empty return []. document: same error if I use GET /spot/my_trades :