1- For GET /sapi/v1/lending/union/purchaseRecord (Get Purchase Record (USER_DATA)):
When startTime=endTime in the request it works normally and the “createTime” in the response is identical to the value sent in startTime & endTime.
That is okay and expected.
2- On the other hand, for GET /api/v3/allOrders (All Orders (USER_DATA)):
When startTime=endTime in the request it returns an error: “code”: -1102, “msg”: “Mandatory parameter ‘endTime’ was not sent, was empty/null, or malformed.”
This is not expected because I assume that you can make startTime=endTime with no problem. My understanding is that Binance response is always the items that are having their time equal to and including startTime and the items having their time equal to and including endTime and all the items between them.
Any idea what is the reason behind this?