/api/v3/allOrders returns random results

Starting from today morning I started to get different responses from the same endpoint. I send get request to GET /api/v3/allOrders on symbol LUNCUSDT on my account. I have 21 entries but if I resend the same request in some seconds I get another response. I got either 18 or 21 entries all the time. This happens to a batch of symbols so my portfolio tracker (matching orders and trades) got errors all the time beacuse of the incosistency of responses.

I used example from official python library from this link - https://github.com/binance/binance-connector-python/blob/master/examples/spot/trade/get_orders.py

I’ve recorded a screencast. I copied the code from the example above, inserted my key\secret, changed symbol to LUNCUSDT and restart it several times, You can see that results in the down section (Records count: 18\21) differs from run to run.

Link to video - https://streamable.com/k7w6we

Can you help me with it?

Thank you!

Can you let us know all the order "status" of when it returns 18 and for when it return 21 results?

Records count: 18
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64000865, ‘status’: ‘FILLED’, ‘time’: 1663932723439, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64001260, ‘status’: ‘FILLED’, ‘time’: 1663932724553, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64015844, ‘status’: ‘FILLED’, ‘time’: 1663932790451, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64016163, ‘status’: ‘FILLED’, ‘time’: 1663932791485, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64018092, ‘status’: ‘FILLED’, ‘time’: 1663932797586, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64018525, ‘status’: ‘FILLED’, ‘time’: 1663932798606, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64021332, ‘status’: ‘FILLED’, ‘time’: 1663932806955, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64021776, ‘status’: ‘FILLED’, ‘time’: 1663932807996, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64023177, ‘status’: ‘FILLED’, ‘time’: 1663932811317, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64023697, ‘status’: ‘FILLED’, ‘time’: 1663932812347, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64027743, ‘status’: ‘FILLED’, ‘time’: 1663932819856, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64030565, ‘status’: ‘FILLED’, ‘time’: 1663932824944, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71364877, ‘status’: ‘FILLED’, ‘time’: 1664143031826, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71365512, ‘status’: ‘CANCELED’, ‘time’: 1664143032901, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71365522, ‘status’: ‘FILLED’, ‘time’: 1664143032926, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71365863, ‘status’: ‘CANCELED’, ‘time’: 1664143033958, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71407415, ‘status’: ‘FILLED’, ‘time’: 1664143232433, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71407482, ‘status’: ‘FILLED’, ‘time’: 1664143232731, ‘isWorking’: True}

Records count: 21
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64000865, ‘status’: ‘FILLED’, ‘time’: 1663932723439, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64001260, ‘status’: ‘FILLED’, ‘time’: 1663932724553, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64015844, ‘status’: ‘FILLED’, ‘time’: 1663932790451, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64016163, ‘status’: ‘FILLED’, ‘time’: 1663932791485, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64018092, ‘status’: ‘FILLED’, ‘time’: 1663932797586, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64018525, ‘status’: ‘FILLED’, ‘time’: 1663932798606, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64021332, ‘status’: ‘FILLED’, ‘time’: 1663932806955, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64021776, ‘status’: ‘FILLED’, ‘time’: 1663932807996, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64023177, ‘status’: ‘FILLED’, ‘time’: 1663932811317, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64023697, ‘status’: ‘FILLED’, ‘time’: 1663932812347, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64027743, ‘status’: ‘FILLED’, ‘time’: 1663932819856, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 64030565, ‘status’: ‘FILLED’, ‘time’: 1663932824944, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71364877, ‘status’: ‘FILLED’, ‘time’: 1664143031826, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71365512, ‘status’: ‘CANCELED’, ‘time’: 1664143032901, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71365522, ‘status’: ‘FILLED’, ‘time’: 1664143032926, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71365863, ‘status’: ‘CANCELED’, ‘time’: 1664143033958, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71407415, ‘status’: ‘FILLED’, ‘time’: 1664143232433, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 71407482, ‘status’: ‘FILLED’, ‘time’: 1664143232731, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 128364587, ‘status’: ‘FILLED’, ‘time’: 1665446860123, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 128365426, ‘status’: ‘CANCELED’, ‘time’: 1665446861142, ‘isWorking’: True}
{‘symbol’: ‘LUNCUSDT’, ‘orderId’: 128580356, ‘status’: ‘FILLED’, ‘time’: 1665448234732, ‘isWorking’: True}

So we have CANCELLED orders in 18 and in 21 records. So in 18 there’s 3 missing FILLED orders and that is important. In 21 we have CANCELLED and FILLED orders (orderIds: 128364587, 128365426, 128580356). Maybe it has to do with some different CDNs or some cache for LUNCUSDT. I face this problem with a small number of assets on spot

Got it, we’ll ping internally

I also changed API keys but it didn’t help

@recycletechno Can you retry again, pls?

@aisling2 I think it’s OK now. 21 records all the time. But what was the problem? To avoid it in the future? Our trading bot crashed with that bug

Great! Minor syncing delay.