<p>Generally, the ask price displayed by the exchanges is the sell order at the lowest price. Ask is another way of saying sell. So Ask order = Sell order.</p>

<p>The same for bid orders. The bid price is the buy order at the highest price.</p>

<p>Speaking for the result of the below API call:</p>

<pre><code>http://pubapi.cryptsy.com/api.php?method=orderdatav2
</code></pre>

<p>The order with lowest price among the "sellorders" is the Ask.</p>

<p>The order with the highest price among the "buyorders" is the Bid.</p>

<p>This is true for any trading pair.</p>

<p>There seems to be pairs where "buyorders" is null. That is either an error on their part or there are no bids for those pairs.</p>

CC BY-SA 3.0
2014-07-02T11:03:42.803Z
So, for each coin pairs, I will have to check every sellorder for the lowest price and every buyorder for highest price and together that one point gives a point to plot the graph as in the link given in my question?
Criesto
CC BY-SA 3.0
2014-07-02T11:46:16.973Z
Well... To plot that graph, yes you need to go through all orders. Any point in the graph shows the total amount of orders up to that price.
Emre K.
CC BY-SA 3.0
2014-07-02T10:53:04.627Z
2014-07-02T10:53:04.627Z
Emre K.
<p>I am trying to create a graph to moniter order data, similar to:</p>

<p><a href="http://www.cryptocoincharts.info/orderbook.php?pair=pc-btc&amp;market=bittrex" rel="nofollow">http://www.cryptocoincharts.info/orderbook.php?pair=pc-btc&amp;market=bittrex</a></p>

<p>I am using the cryptsy api (<a href="http://pubapi.cryptsy.com/api.php?method=orderdatav2" rel="nofollow">http://pubapi.cryptsy.com/api.php?method=orderdatav2</a>) to fetch all the order data and for each coins it returns some thing like:</p>

<pre><code>          "price": "395.00000000",
          "quantity": "0.00100000",
          "total": "0.39500000"
</code></pre>

<p>The question that I have is, is there any formula or some thing to calculate <code>bid</code> and <code>ask</code>, so that I can plot the graph?</p>

<p>Thanks.</p>

<api><cryptsy>
How is BID and ASK Calculated for crypto currencies?
Criesto
# How is BID and ASK Calculated for crypto currencies?

(Asked by: username_0 on 2014-07-02)

I am trying to create a graph to moniter order data, similar to:
http://www.cryptocoincharts.info/orderbook.php?pair=pc-btc&market=bittrex
I am using the cryptsy api (http://pubapi.cryptsy.com/api.php?method=orderdatav2) to fetch all the order data and for each coins it returns some thing like:
          "price": "395.00000000",
          "quantity": "0.00100000",
          "total": "0.39500000"

The question that I have is, is there any formula or some thing to calculate bid and ask, so that I can plot the graph?
Thanks.

**Tags:** api, cryptsy


---

## 1 answers

### Answer by username_1 on 2014-07-02. Score: 1

Generally, the ask price displayed by the exchanges is the sell order at the lowest price. Ask is another way of saying sell. So Ask order = Sell order.
The same for bid orders. The bid price is the buy order at the highest price.
Speaking for the result of the below API call:
http://pubapi.cryptsy.com/api.php?method=orderdatav2

The order with lowest price among the "sellorders" is the Ask.
The order with the highest price among the "buyorders" is the Bid.
This is true for any trading pair.
There seems to be pairs where "buyorders" is null. That is either an error on their part or there are no bids for those pairs.

> **Comments:**
> **username_0**: So, for each coin pairs, I will have to check every sellorder for the lowest price and every buyorder for highest price and together that one point gives a point to plot the graph as in the link given in my question?  
> **username_1**: Well... To plot that graph, yes you need to go through all orders. Any point in the graph shows the total amount of orders up to that price.  

---

