openOrders returns 400 error on spots

I get an 400 error from

https://api.binance.com/api/v3/openOrders?symbol=ALGOUSDT&timestamp=1615551437402&signature={signature}

It is very strange to me as I call it “in the same way” as
https://api.binance.com/api/v3/myTrades?symbol=ALGOUSDT&limit=12&timestamp=1615551418160&signature={signature}

And that one works perfectly

ofcourse I call with differently hashed signatures but both with method GET as per the documentation

There must be some error msg in the response body. What is it?

1 Like

well no the 400 response is a “Bad request” which suggests that my request is malformed in some way, which I simply dont understand

  • or that something undocumented has changed when Binance added the DELETE functionality to this endpoint…?

Well that goes to show…
Actually the 400 bad request DOES return more information in the response body as @MJW said.

But .net does not make it easy to retrieve it on a “failed” requests like 400, but with some workarounds I managed to extract it:
{“code”:-1021,“msg”:“Timestamp for this request is outside of the recvWindow.”}

So I need to more aggresively update serverTime before sending my requests.

Hello. Can you ellaborate a little more on how you extracted the error? I’m struggling with 400 error codes when trying to sell. I’m in VB NET. Thanks a lot in advance.

@Heishiro_Mitsurugi you have to find out the error message, that’s the only way to understand the problem.