You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think BitMEX requires the amount in satoshis (an integer, not a floating point decimal). So, instead of "amount": 0.0022 it should be "amount": 220000.
Closing this for now, feel free to reopen it or just ask further questions if any. We will be happy if you report back whether the issue is resolved on your side or not. Thx!
This is my route:
And this is what i am trying to post:
{
"address": "THE ADRESS",
"amount": 0.0022,
"code": "BTC",
"otpToken": "MY TOKEN"
}
When i execute this route, i get this error:
BadRequest: bitmex {"error":{"message":"amount is invalid","name":"HTTPError"}}
The key and the secret are OK. The otpToken too. I can fetch everything.
I´m new on this, and i can´t figure it out where is the error on my code.
Thank you!!
The text was updated successfully, but these errors were encountered: