<p>It appears you are looking at "active orders" if you are seeing this status. As per BTC-e API documentation (found at: <a href="https://btc-e.com/api/documentation" rel="nofollow">https://btc-e.com/api/documentation</a>), you should be looking at trade history, which will show completed orders. Partial orders would show as individual trades on as the result e.g. if you place a sell/ask order 1 BTC @ $1000 and I were to place a buy/bid order of 0.1 BTC @ $1000 then you would see a trade of 0.1 BTC @ $1000 in your trade history, if I were to place the same order again against your 0.9 BTC remaining you would see two trades for 0.1 BTC @ $1000. This data is shown here for partial trades even if the order is still active.</p>

<p>Since the standard output is limited to the 1000 most recent transactions, I would recommend making use of the 'from' parameter when scraping trade data. You can increase the number of results but BTC-e will likely place a limit on how much data can be returned at some point in the future. You can also stagger API calls to get 1000 transactions at a time, however I would recommend putting this data in a table for better access.</p>

CC BY-SA 3.0
2014-01-31T17:25:28.520Z
Thanks for the quick response, Mark. So, in your example above, if my sell order got filled for only 0.1 and I immediately queried ActiveOrders afterwards, it would show me the same OID for the full 1BTC order, but  the `amount` would now return back as 0.9? And to find that 0.1 fill, I need to constantly scrape the `TradeHistory` endpoint and compare for all trades with the same `rate`s? Is the OID for the partial fills all the same? Or is that a completely new OID?  Lastly, I need to use `TradeHistory` or `TransHistory`?
ACVentures
CC BY-SA 3.0
2014-01-31T17:04:40.950Z
2014-01-31T17:04:40.950Z
Mark
<p>It would appear there is no way of obtaining fill notifications for active orders.</p>

<p>If I am mistaken, please enlighten me!</p>

<p>When orders are submitted to a BTC-e account, either via API or their website, and they are NOT instantly filled, they get assigned an OrderID integer. I can query the authenticated API for account info, which will give me back a list of all Active Orders and associated OIDs, but aside from having my program maintain a list of what it "thinks" are Active, versus what actually is active on the account by sending a query every X seconds, I do not know of a simpler/faster way to determine what orders got filled or when.</p>

<p>I also would like some clarification on the <code>status</code> field of the order response from API. it would appear <code>0</code> is <code>active</code> and <code>1</code> is <code>filled</code>. What are the values for <code>partial fill</code> and <code>cancelled</code>? </p>

<p>There is also a way to see <code>All</code> orders on the website by going to <code>Finances</code>-><code>Orders History</code> and then the drop down for <code>Show All</code>, is there a corresponding API call for that?</p>

<p>I need to be able to monitor for partial and complete fills.</p>

<api><btce>
How to check status of an order on BTC-e API?
ACVentures
# How to check status of an order on BTC-e API?

(Asked by: username_0 on 2014-01-31)

It would appear there is no way of obtaining fill notifications for active orders.

If I am mistaken, please enlighten me!

When orders are submitted to a BTC-e account, either via API or their website, and they are NOT instantly filled, they get assigned an OrderID integer. I can query the authenticated API for account info, which will give me back a list of all Active Orders and associated OIDs, but aside from having my program maintain a list of what it "thinks" are Active, versus what actually is active on the account by sending a query every X seconds, I do not know of a simpler/faster way to determine what orders got filled or when.

I also would like some clarification on the `status` field of the order response from API. it would appear `0` is `active` and `1` is `filled`. What are the values for `partial fill` and `cancelled`?

There is also a way to see `All` orders on the website by going to `Finances`->`Orders History` and then the drop down for `Show All`, is there a corresponding API call for that?

I need to be able to monitor for partial and complete fills.

**Tags:** api, btce


---

## 1 answers

### Answer by username_1 on 2014-01-31. Score: 1

It appears you are looking at "active orders" if you are seeing this status. As per BTC-e API documentation (found at: <https://btc-e.com/api/documentation>), you should be looking at trade history, which will show completed orders. Partial orders would show as individual trades on as the result e.g. if you place a sell/ask order 1 BTC @ $1000 and I were to place a buy/bid order of 0.1 BTC @ $1000 then you would see a trade of 0.1 BTC @ $1000 in your trade history, if I were to place the same order again against your 0.9 BTC remaining you would see two trades for 0.1 BTC @ $1000. This data is shown here for partial trades even if the order is still active.

Since the standard output is limited to the 1000 most recent transactions, I would recommend making use of the 'from' parameter when scraping trade data. You can increase the number of results but BTC-e will likely place a limit on how much data can be returned at some point in the future. You can also stagger API calls to get 1000 transactions at a time, however I would recommend putting this data in a table for better access.

> **Comments:**
> **username_0**: Thanks for the quick response, Mark. So, in your example above, if my sell order got filled for only 0.1 and I immediately queried ActiveOrders afterwards, it would show me the same OID for the full 1BTC order, but  the `amount` would now return back as 0.9? And to find that 0.1 fill, I need to constantly scrape the `TradeHistory` endpoint and compare for all trades with the same `rate`s? Is the OID for the partial fills all the same? Or is that a completely new OID?  Lastly, I need to use `TradeHistory` or `TransHistory`?  

---

