Hello, I’ve been trying to use Binance API Documentation
First of all, I find it strange and inconsistent with the other endpoints that this endpoint is a “POST” and not a “GET”.
Then, I have issues with several parameters.
- recordId
I cannot find the correct format to pass to the API. Using an id
from the API response doesn’t work.
Here is an example of call and response:
https://vapi.binance.com/vapi/v1/bill?recordId=1125899906844498152¤cy=USDT&limit=10&recvWindow=5000×tamp=1647910640484
-1102 Mandatory parameter 'recordId' was not sent, was empty/null, or malformed.
Passing a small int doesn’t return an error but obviously doesn’t filter properly.
- startTime
I cannot find the correct format to pass to the API. Using a millisecond timestamp from the API response doesn’t work.
Here is an example of call and response:
https://vapi.binance.com/vapi/v1/bill?startTime=1647561600000¤cy=USDT&limit=10&recvWindow=5000×tamp=1647910698107
-1102 "Mandatory parameter 'startTime' was not sent, was empty/null, or malformed."
Passing endTime only or both startTime and endTime gives the same issue.
- limit
The limit parameter seems to be ignored: the response has more items than limit.
Here is an example of parameters sent:
https://vapi.binance.com/vapi/v1/bill?currency=USDT&limit=3&recvWindow=5000×tamp=1647910735344
I receive a full response with 80+ items.
If you know about workarounds or could fix these issues, it would be appreciated.