<p><strong>Take a look at the Java <a href="https://github.com/timmolter/XChange" rel="nofollow">XChange</a> project</strong></p>

<p>While it is not Objective C it will provide you with all the details you'll need to get your library off the ground including the HMAC authentication process and websockets. </p>

<p>You'll also find a range of other exchanges supported so you can implement those as well thus providing your application with a broader range of potential users since not everyone uses MtGox these days.</p>

CC BY-SA 3.0
2013-08-09T11:27:17.160Z
Yep, I'm very pleased with the way that XChange has shaped up. There's been a lot of good work done on it.
Gary
CC BY-SA 3.0
2013-08-09T13:52:45.417Z
going to mark this as answered as yours is as close as I'll get!
Woodstock
CC BY-SA 3.0
2013-06-09T18:35:29.677Z
2013-06-09T18:35:29.677Z
Gary
<p>I am trying to write a simple app that uses the Mt Gox. (bitcoin exchange) API.</p>

<p>It's very simple to use the price API it's just a http request that returns a .JSON string.</p>

<p>However now I want to do more with my app, I was thinking it would be good to be able to log into the users mtgox account and show their balance of bitcoin.</p>

<p>I have an API key (you can generate one on their site) but I'm finding it really hard to understand whats required to generate a connection and pull the balance.</p>

<p>Is there anyone who might be able to point me in the right direction?</p>

<p>I have researched quite a bit and turned up very little information - API Overview: <a href="https://bitbucket.org/nitrous/mtgox-api/overview" rel="nofollow">https://bitbucket.org/nitrous/mtgox-api/overview</a></p>

<p>In the above link they have some python code, but i'm finding it difficult to translate into Objective C.</p>

<p>So if anyone can:</p>

<p>A. Give me a highlevel overview of the steps required to log in and get a bitcoin balance using the API.</p>

<p>B. Give me some pointers on how to turn their Python example into Objective C I would really appreciate it.</p>

<p>I understand to use the API I need to use this URL to Get my current balance    mtgox.com/api/0/getFunds.php -- however first I need to get a "nonce" parameter to the post data (which must be an ever-increasing interger, for example with PHP in 64bits: (int)(microtime(true)*1000000)) and two HTTP headers: Rest-Key (your key) nad Rest-Sign (a signature generated by doing a sha512-hmac on the POST data with the secret as key, encoded in base64). </p>

<p>I found this documentation: bitbucket.org/nitrous/mtgox-api/overview -- still not clear however, how to code in Objective C thanks</p>

CC BY-SA 3.0
2013-08-09T04:32:43.897Z
This is a badly titled question. Please give some kind of indication of what the question is about in the title.
user1068446
CC BY-SA 3.0
2013-08-09T06:27:51.607Z
Updated thanks. need to type more chars because of the silly limit where by you cannot just say thank you.
Woodstock
<mtgox><api><ios>
MtGox API Overview and explanation of steps required to create connection
Woodstock
# MtGox API Overview and explanation of steps required to create connection

(Asked by: username_0 on 2013-06-06)

I am trying to write a simple app that uses the Mt Gox. (bitcoin exchange) API.

It's very simple to use the price API it's just a http request that returns a .JSON string.

However now I want to do more with my app, I was thinking it would be good to be able to log into the users mtgox account and show their balance of bitcoin.

I have an API key (you can generate one on their site) but I'm finding it really hard to understand whats required to generate a connection and pull the balance.

Is there anyone who might be able to point me in the right direction?

I have researched quite a bit and turned up very little information - API Overview: <https://bitbucket.org/nitrous/mtgox-api/overview>

In the above link they have some python code, but i'm finding it difficult to translate into Objective C.

So if anyone can:

A. Give me a highlevel overview of the steps required to log in and get a bitcoin balance using the API.

B. Give me some pointers on how to turn their Python example into Objective C I would really appreciate it.

I understand to use the API I need to use this URL to Get my current balance mtgox.com/api/0/getFunds.php -- however first I need to get a "nonce" parameter to the post data (which must be an ever-increasing interger, for example with PHP in 64bits: (int)(microtime(true)\*1000000)) and two HTTP headers: Rest-Key (your key) nad Rest-Sign (a signature generated by doing a sha512-hmac on the POST data with the secret as key, encoded in base64).

I found this documentation: bitbucket.org/nitrous/mtgox-api/overview -- still not clear however, how to code in Objective C thanks

**Tags:** mtgox, api, ios

> **Comments:**
> **username_1**: This is a badly titled question. Please give some kind of indication of what the question is about in the title.  
> **username_0**: Updated thanks. need to type more chars because of the silly limit where by you cannot just say thank you.  

---

## 1 answers

### Answer by username_2 on 2013-06-09. Score: 2 | Accepted answer

**Take a look at the Java [XChange](https://github.com/timmolter/XChange) project**

While it is not Objective C it will provide you with all the details you'll need to get your library off the ground including the HMAC authentication process and websockets.

You'll also find a range of other exchanges supported so you can implement those as well thus providing your application with a broader range of potential users since not everyone uses MtGox these days.

> **Comments:**
> **username_2**: Yep, I'm very pleased with the way that XChange has shaped up. There's been a lot of good work done on it.  
> **username_0**: going to mark this as answered as yours is as close as I'll get!  

---

