<p>This field is used to spcify the currency pair type of the return data, so leaving in <code>BTCUSD</code> works fine or changing it to a different accepted currency pair, such as <code>BTCEUR</code>, also works and just changes the currency denomination of the returned data.  </p>

CC BY-SA 3.0
2013-05-07T18:30:36.827Z
2013-05-07T18:30:36.827Z
Loourr
<p>I am trying to place a new order using Mt. Gox's <a href="https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Submit_an_order" rel="nofollow">submit an order</a> API call. However I keep on getting the error object </p>

<pre><code>{ result: 'error', error: 'Bad API call' }
</code></pre>

<p>I'm fairly certain I'm doing everything right, except I suppose the order Id which is referred to as BTCUSD in the documentation. </p>

<pre><code>https://data.mtgox.com/api/1/BTCUSD/private/order/add
</code></pre>

<p>It gives no other explanation on what this field is, and I have found other projects calling it ID, so I'm using the node-uuid <code>v1()</code> method to generate a unique ID for the field.</p>

<p>So this is the URL I create:</p>

<pre><code>/api/1/36c1f990-a4a4-11e2-84fd-a100a9f27dd2/private/order/add
</code></pre>

<p>and the object I send with it</p>

<pre><code>{ type: 'ask', amount_int: '100000.000', price_int: '20000000' }
</code></pre>

<p>What am I doing wrong?</p>

<mtgox><api>
What goes in the id/BTCUSD field for Mt. Gox "submit an order" API call?
Loourr
# What goes in the id/BTCUSD field for Mt. Gox "submit an order" API call?

(Asked by: username_0 on 2013-04-14)

I am trying to place a new order using Mt. Gox's [submit an order](https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Submit_an_order) API call. However I keep on getting the error object

```
{ result: 'error', error: 'Bad API call' }

```

I'm fairly certain I'm doing everything right, except I suppose the order Id which is referred to as BTCUSD in the documentation.

```
https://data.mtgox.com/api/1/BTCUSD/private/order/add

```

It gives no other explanation on what this field is, and I have found other projects calling it ID, so I'm using the node-uuid `v1()` method to generate a unique ID for the field.

So this is the URL I create:

```
/api/1/36c1f990-a4a4-11e2-84fd-a100a9f27dd2/private/order/add

```

and the object I send with it

```
{ type: 'ask', amount_int: '100000.000', price_int: '20000000' }

```

What am I doing wrong?

**Tags:** mtgox, api


---

## 1 answers

### Answer by username_0 on 2013-05-07. Score: 1

This field is used to spcify the currency pair type of the return data, so leaving in `BTCUSD` works fine or changing it to a different accepted currency pair, such as `BTCEUR`, also works and just changes the currency denomination of the returned data.


---

