I am trying to access this endpoint, where signature
parameter has to be sent as query parameter
https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
I am trying to understand what value for that signature
key should be passed.
Firstly i thought it was secret key binance exchange given. But it was not, because when try to above endpoint it says that :
{
"code": -1022,
"msg": "Signature for this request is not valid."
}
As you can see i passed my secret key as the value for signature key. It is not working. So what am i really missing here ? or do i need to do some transformations to the secret key ? please help me understand it and advance thanks!
It looks like you are putting the timestamp
before the recvWindow
in your query string.
timestamp
is always the last parameter and the order of the parameters in the docs clearly puts recvWindow
before timestamp
.
I managed to get it working with query string recvWindow=60000×tamp=1652512756366