When you see the error code ":1002,"message":"Authorization is required or has been failed" in your trading bot, it means that one of the following causes is preventing you from trading on HitBTC.
invalid API key
user is not allowed to perform the requested operation
invalid time window value
invalid HMAC signature format
invalid HMAC signature value
Check out our tutorial on how to connect to HitBTC with API Keys.
Example of the error message in your trading bot output:
02/26/2024 6:43:01 AM ERROR Oops! It seems like this one API balance call returned empty. Don't worry; we'll try again in a minute!
02/26/2024 6:43:00 AM ERROR GET https://api.hitbtc.com/api/2/trading/balance 401 {"error":{"code":1002,"message":"Authorization is required or has been failed"}}