Closed vgunawan closed 6 years ago
Hi @vgunawan ,
The most obvious thing I can see right now without fully debugging your code is that you are missing a /
in the path. the string that you use to create your hmac needs the leading /
in order to be formatted correctly. I'm not sure how you're replicating the example signatures without it. If correcting this (and ensuring that your machine is connected to a unix time server) doesn't get you past authentication, please let me know and I will dig deeper into your code.
Cheers, Justin
Wow yeah that's it! Spent good hour on it. Cheers @justin-ngin!
Also if I could suggest, create code example for various programming languages, sure if anyone could copy paste example, it will reduce the repetitive questions. I am happy to do for Ruby or Elixir.
Hi, I keep getting
{"success"=>false, "errorCode"=>1, "errorMessage"=>"Authentication failed."}
message while trying to use account balance API. I chose it because it seemed to be one of the basic one.I also have followed the instruction in readme and I manage to get the same signature for both
/account/balance
and/order/history
. Public/Private key is also correct. Am I missing something obvious? like maybe have to enable the API somehow? Please helpHere is the request/response log
Here is the ruby snippets