I was testing the endpoint “allOrders” and “myTrades” and I think there is an error in " myTrades ", the fromId parameter works the same as the limit, that is, if you pass 10 in fromId it returns the last 10 trades of the symbol that you consulted, why have the limit if fromId does the same? When reading the notes at the end of the myTrades endpoint they mention the following:
- If fromId is set, it will get orders >= that fromId. Otherwise most recent orders are returned.
And in the allOrders endpoint it says almost the same
- If orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned
Which makes me think that fromId is the same as orderId, However, as I mentioned, the fromId parameter does not work if you pass it a valid orderId, the query does not return any data as you can see in the following image
Another curious thing is that in Postman the description that appears next to fromId is the same description that appears for limit in the documentation
fromId | LONG | NO | TradeId to fetch from. Default gets most recent trades. |
---|---|---|---|
limit | INT | NO | Default 500; max 1000. |
.
That is why I conclude that there is an error in the fromId parameter of myTrades