I can get the trades for most of my trades pairs, but at least one keeps on returning an empty list on random occasions. This is in python. I can see that the balance is non-zero for the that pair, and that the web page trading history list lists two trades.
So, on two separate requests one will return an empty list and another the proper result.
Why is this happening? I think I’m not violating the IP limits and such as I’m doing the request manually, one at a time.
I am having the same issue. Sometimes the response comes back as an empty list and sometimes it comes back not empty but missing trades. My trades were executed back in May/June as well.
Hi. Based on the information you provided, this might be due to the incomplete data syncing process. Your API request may occasionally hit the DB server which has not yet included the latest data.
The trades/orders I’m after have long been filled already… for weeks now; they’re not new or active. I guess they would have been in the DB server for a long time. For this particular pair, one trade is pending. No trades happened lately.
Does the overall platform trading activity impact the DB server queries?
I have the same issue. It’s fairly constant on certain pairs. DOTBTC fails 50% of the time for me. It also not always an empty response. For DOTBTC I always get response with data, but one time it would contain 85 trades (wrong) and next time 91 (correct).
really for the very same request, with same params and shortly after?
The MyTrades endpoint is very difficult to use, because of the 24hours limitation, so one should instead use the fromID system, starting from fromID=0 and hangling from id to id.
edit: what I wrote is true for spot trading, not sure if margin trading endpoint works the same, sorry.
Just to clarify. To confirm that this is not an issue in my code I downloaded Binance Postman collection and created simple request with symbol == DOTBTC and other parameters unspecified. And I created one test in postman that verifies if count of returned items is 91 (correct count). And I can run it subsequently getting pass or fail on that test randomly. I don’t see any correlation with how often I send requests. So this is not about hitting limits.
After spending another day trying to use this API I keep getting an empty result for DOGE, even though the web trade history shows balance. Non zero balance is seen in the reply to ‘/api/v3/account’, too. But, trying to get ‘/api/v3/myTrades’ for DOGE it fails every time. Why?
Can you post a complete request url of your myTrades endpoint (omit sensitive fields) and share the expected response behaviour versus what you get, please?
@hinxx Can you post a complete request url of your myTrades endpoint (omit sensitive fields) and share the expected response behaviour versus what you get, please?