I am writing a custom bot for trading at different Exchanges, while BTCe is the only one I have currently implemented to about 95%.

Now I am only hanging at one point: If my Bot decides to Sell/Buy, how can I determine the proper price for my order?

My Idea was to get the kist of current buy/sell oderders for e.g. BTC/USD and then calculate for which price I would have to sell/buy so the trade will be executed completely, but then I didn't find an API-method to get a list of current orders here.

Is there any way to achieve what I am trying to do?

closed as too broad by cdecker, Salvador Dali, Stéphane Gimenez, dchapes, Nick ODell Jan 9 '14 at 20:42

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


The API call you are looking for is the market depth:


There are also calls for LTC/BTC




All of the above return JSON data including both ASKS and BIDS

  • This is what I was looking for, thank you very much! :) – Corsair Dec 25 '13 at 13:22

Additionally you can get info from http://bitcoincharts.com/about/markets-api/ for multi-exchange trade data.

For current market rate, 24-hour high/low, last, etc with btc-e you can use https://btc-e.com/api/2/btc_usd/ticker

Not the answer you're looking for? Browse other questions tagged or ask your own question.