GET /api/v3/myTrades with orderId params doesn't work.

In order to save executed orders as well as trades in my db, I wanted to loop through ‘allOrder’ endpoint then loop each order with ‘myTrades’ endpoint with ‘symbol’ and ‘orderId’ params.
unfortunately it return an empty list when I add ‘orderId’ param.
Even ‘fromId’ does not work and return empty list.

Exemple:
client.get_all_orders(symbol=symbol, startTime=‘datetime’)
=>
[{‘symbol’: ‘BTCUSDT’,
‘orderId’: 8585686300,
‘orderListId’: -1,
‘clientOrderId’: ‘xxxx’,
‘price’: ‘0.00000000’,
‘origQty’: ‘0.00093000’,
‘executedQty’: ‘0.00093000’,
‘cummulativeQuoteQty’: ‘44.85541590’,
‘status’: ‘FILLED’,
‘timeInForce’: ‘GTC’,
‘type’: ‘MARKET’,
‘side’: ‘BUY’,
‘stopPrice’: ‘0.00000000’,
‘icebergQty’: ‘0.00000000’,
‘time’: 1639168847040,
‘updateTime’: 1639168847040,
‘isWorking’: True,
‘origQuoteOrderQty’: ‘0.00000000’}]

client.get_my_trades(symbol=“BTCUSDT”, orderId= 8585686300)
=>

I don’t see my errors. Thanks in advance for your helps.

Not sure what library you are using but it works on the official library given above. You might want to give it a try.