user5049: I'm submitting a Sell trade via the API, and the orderid returned is 0. It appears the trade is successful, and the adjusted funds are returned by the response. So it looks like the trade is happening instantly.
I was originally worried about the orders taking a while and having to check to find out when an order is complete. I was planning on setting a timer to look at my tradehistory to look for a matching orderid for the trade that I submitted.
So three questions: 
1) Are the orders always completed when the trade call is returned, so I can just skip having to check back on orders and 
2) If it does return a non-zero OrderID does that mean the order isn't complete and I need to do the timed checking?
Finally, do these answers apply in the same way to a Buy order?
Thanks for the help. I understand the API well enough, but not how the underlying exchange functions.

user5049: I think I've been able to answer my own question. What I did was use the API to place an order that I knew wouldn't success by setting the price really low/high.
Because the order didn't process instantly it returned a non-zero OrderID to me.
Using the API I checked my order list and the order was shown there. So basically, if the order comes back with a non-zero OrderID it's still open for as long as the order still appears in the OrderList.

5049: <p>I'm submitting a Sell trade via the API, and the orderid returned is 0. It appears the trade is successful, and the adjusted funds are returned by the response. So it looks like the trade is happening instantly.</p>

<p>I was originally worried about the orders taking a while and having to check to find out when an order is complete. I was planning on setting a timer to look at my tradehistory to look for a matching orderid for the trade that I submitted.</p>

<p>So three questions: </p>

<p>1) Are the orders always completed when the trade call is returned, so I can just skip having to check back on orders and </p>

<p>2) If it does return a non-zero OrderID does that mean the order isn't complete and I need to do the timed checking?</p>

<p>Finally, do these answers apply in the same way to a Buy order?</p>

<p>Thanks for the help. I understand the API well enough, but not how the underlying exchange functions.</p>
 5049: <p>I think I've been able to answer my own question. What I did was use the API to place an order that I knew wouldn't success by setting the price really low/high.</p>

<p>Because the order didn't process instantly it returned a non-zero OrderID to me.</p>

<p>Using the API I checked my order list and the order was shown there. So basically, if the order comes back with a non-zero OrderID it's still open for as long as the order still appears in the OrderList.</p>
