Retrive the oldest trade

Hi.

How is it possible to get the oldest trade and then be able to use /api/v3/myTrades with the fromId to retreive them all with the pagination?
For now I’m looping this endpoint with the startTime and endTime until I find one…
Very bad in terms of number of calls…

Best regards,

You can use /api/v3/myTrades with fromId=0&limit=1.

1 Like