Closed Ad0be closed 4 years ago
Hi @Ad0be ,
Yes, the private key does need to be decoded from base64 before being used in the signature. In my experience, this produces output that looks different depending on how you are trying to print it. I will add a sample authentication signature for the /account/balance endpoint as this is usually the first place people start with designing and debugging. As long as you can replicate the signature that will soon be there, you will be using your private key correctly.
Regards, Justin
Thanks Justin.
Still having trouble getting this to work in swift but thanks for the examples. I think it will help people a lot. Cheers, Kane.
Hi @Ad0be
Thank you for your feedback.
Please find below our a sample client application using SWIFT language: https://github.com/BTCMarkets/api-v3-client-swift
This sample was written for our new API version but it can also be used (with minor update) for previous versions as well: https://api.btcmarkets.net/doc/v3#section/Introduction
Regards, Martin
closing the issue.
Hi,
I'm trying to authenticate an /account/balance api request in swift but get:
I have made non authenticated api requests without a problem but have not been able to get this call or the sample /order/history to work. Im using account balance as a test to try and keep it simple without httpbody etc. I would appreciate any suggestions anyone could provide.
Code Snippet is below:
HTTP request outputted and debugged through Charles is:
Points to Note: