Previously, I did a request to get all my account’s balances. That request was successfully so I don’t understand why I’m getting the error just making an order and I didn’t get same error when getting my account info if both requests needs my API info.
As I said before, previous request was successfully done. That request get all my account data and balances. I’m sharing the log anyway and will see the url to get my account info.
{
method: 'get',
url: 'https://api.binance.com/api/v3/account?timestamp=1663246238467&recvWindow=60000&signature=1e88d65513b33f9bb0a8887912276b910db31eae54d9aca8d3fa4b2e2c28d2b5',
headers: {
'Content-Type': 'application/json',
'X-MBX-APIKEY': 'XXX'
}
}
My BUSD balance is 301.95953624
And just after this request, is coming the other request for orders. So, if this one is working fine with the API, the other one should work as well.
Or both works, or both should has errors. Not one yes and one no.
Or both works, or both should has errors. Not one yes and one no.
It is possible for one request to work and another to fail. Please check that the API Key has the valid permissions to trade. Also double check the signature created is correct.
Are GET requests working but POST requests failing? It might be that your signature process is incomplete, because the signature process is a bit more complex when making a request with parameters (especially a POST request). Here’s a node.js example showing how to do this with the axios request library:
This source is from the node.js connector, it’s also on npm to use directly as is, or you can just copy-paste the pieces you’re missing.