<p>You must keep a record of your orders and compare them with the returned list. Alternatively, you can sort the returned list according to date. The order you posted is the most recent.</p>

CC BY-SA 3.0
2011-09-17T02:25:25.270Z
2011-09-17T02:25:25.270Z
nmat
<p>I'm working on my first trading script using the TradeHill API.</p>

<p>I find it pretty annoying that the OID of an order isn't returned to you when you create a new buy/sell order.</p>

<p>How exactly can you get the OID of a freshly created order? I'm thinking that you will have to have a list of orders before it is created and compare this with the new list after the order.</p>

<p>You must then find the new OID in the list?</p>

<p>Is this the only way?</p>

CC BY-SA 3.0
2011-09-21T18:24:02.417Z
Write tradehill (support@tradehill.com) and suggest they return it in their API call. The more they hear this, the more likely it is to happen.
Owen
<tradehill>
Best way to get the OID of an order created at TradeHill?
jim
# Best way to get the OID of an order created at TradeHill?

(Asked by: username_0 on 2011-09-17)

I'm working on my first trading script using the TradeHill API.

I find it pretty annoying that the OID of an order isn't returned to you when you create a new buy/sell order.

How exactly can you get the OID of a freshly created order? I'm thinking that you will have to have a list of orders before it is created and compare this with the new list after the order.

You must then find the new OID in the list?

Is this the only way?

**Tags:** tradehill

> **Comments:**
> **username_1**: Write tradehill (support@tradehill.com) and suggest they return it in their API call. The more they hear this, the more likely it is to happen.  

---

## 1 answers

### Answer by username_2 on 2011-09-17. Score: 1 | Accepted answer

You must keep a record of your orders and compare them with the returned list. Alternatively, you can sort the returned list according to date. The order you posted is the most recent.


---

