<p>It will never be accurate unless you know the preferred exchange for your user, because as you can see the prices are different for each exchange.
Go to this website <a href="http://bitcoin-analytics.com" rel="nofollow">http://bitcoin-analytics.com</a>, and click on "Arbitrage", you will see the difference in exchange rates from multiple sources.</p>

<p>Your best bet is to ask the user to choose their exchange or if they have a preferred one, and use their API, which means you'll need to use multiple APIs for most popular exchanges, like mtgox.com, bitstamp.net, btc-e.com..etc, I would also consider which geographical area you are targeting, it would help you identify who are the ones you need to have.</p>

<p>Good luck.</p>

CC BY-SA 3.0
2013-12-20T23:30:20.213Z
2013-12-22T14:21:21.493Z
2013-12-22T14:21:21.493Z
user10950
<p>I personally like what BitPay is doing.  This is tied to their service, but it uses a rather ingenious spread of data from multiple exchanges.  They use what is called the Bitcoin Best Bid (BBB).  They pull in market data from several exchanges and create a giant table of all buy and sell orders.</p>

<blockquote>
  <p>The BBB is calculated by simulating an auto-routing market sell order, across all exchanges, with zero commission fees. </p>
</blockquote>

<p>For additional information see the link below:</p>

<p><a href="https://bitpay.com/bitcoin-exchange-rates" rel="nofollow">https://bitpay.com/bitcoin-exchange-rates</a> </p>

<p>The api is available here:</p>

<p><a href="https://bitpay.com/api/rates" rel="nofollow">https://bitpay.com/api/rates</a></p>

<p>It is updated once a minute.</p>

CC BY-SA 3.0
2013-12-24T01:07:31.073Z
Nice but I am looking for something for altcoins.
myusuf3
CC BY-SA 3.0
2013-12-23T18:24:08.933Z
2013-12-23T18:24:08.933Z
Mark S.
<p>The <a href="http://bitcoincharts.com/about/markets-api/" rel="nofollow">Bitcoin Charts API</a> has current USD/BTC exchange rates sourced from MtGox.com, as well as historic trade data.</p>

<p>There is also the <a href="https://www.cryptsy.com/pages/api" rel="nofollow">Cryptsy API</a> and <a href="https://vircurex.com/welcome/api?locale=en" rel="nofollow">Vircurex API</a> for alternate cryptocurrencies. I'm not sure if these would fit your needs, but they are worth looking into.</p>

CC BY-SA 3.0
2013-12-21T19:39:02.960Z
The rate depends on the exchange that the user wants to trade on.  Each exchange has different rates.
user6972
CC BY-SA 3.0
2013-12-18T05:42:05.343Z
2013-12-18T05:47:52.003Z
2013-12-18T05:47:52.003Z
Sam Weinberg
<p><a href="https://bitdango.com" rel="nofollow">Bitdango</a> has a <a href="https://bitdango.com/api" rel="nofollow">free API</a> to access currency pair prices. To get the one you indicated (BTC/USD), simply use this JSON endpoint:</p>

<p><a href="https://bitdango.com/api/currencypairs/BTCUSD" rel="nofollow">https://bitdango.com/api/currencypairs/BTCUSD</a></p>

<p>You also mentioned you want more currency pairs, Bitdango tracks all the major crypto currency pairs and provides exchange rates with all the major fiat currencies, etc. Here is the API to search currency pairs:</p>

<p><a href="https://bitdango.com/api/currencypairs" rel="nofollow">https://bitdango.com/api/currencypairs</a></p>

CC BY-SA 3.0
2014-01-04T04:02:23.300Z
2014-01-04T04:02:23.300Z
Paul Fryer
<p>I want to build an mobile application which tells you how much your bitcoins are worth in USD. I would like to know of good API that I can rely on for data. As well as historic conversion rates over time. </p>

<p>Example. </p>

<p>I have 5 bitcoins -> which are worth 5031 USD. </p>

<p>Bonus points for other alt-currencies included in said API. </p>

<p>I would like something that isn't linked to a particular service or exchange.</p>

CC BY-SA 3.0
2013-12-23T17:13:24.267Z
You can't get rates that aren't linked to an exchange because that is where the rates come from.
user6972
CC BY-SA 3.0
2014-01-04T04:04:43.107Z
As user6972 mentioned that is where rates come from. Someone has to publish order books so others can understand what currencies are selling for. Bitdango aggregates/combines market prices when it computes currency pair exchange rates, so at least you are getting the average, instead of a single price at one exchange, etc.
Paul Fryer
CC BY-SA 3.0
2014-01-04T09:17:04.313Z
Here is my related JavaScript project for converting BTC to other currencies on the client side: https://github.com/miohtama/bitcoin-prices - you can change the market data backend with little trouble
Mikko Ohtamaa
<api><currencies>
USD conversion rate API
myusuf3
# USD conversion rate API

(Asked by: username_0 on 2013-12-18)

I want to build an mobile application which tells you how much your bitcoins are worth in USD. I would like to know of good API that I can rely on for data. As well as historic conversion rates over time.

Example.

I have 5 bitcoins -> which are worth 5031 USD.

Bonus points for other alt-currencies included in said API.

I would like something that isn't linked to a particular service or exchange.

**Tags:** api, currencies

> **Comments:**
> **username_1**: You can't get rates that aren't linked to an exchange because that is where the rates come from.  
> **username_2**: As username_1 mentioned that is where rates come from. Someone has to publish order books so others can understand what currencies are selling for. Bitdango aggregates/combines market prices when it computes currency pair exchange rates, so at least you are getting the average, instead of a single price at one exchange, etc.  
> **username_3**: Here is my related JavaScript project for converting BTC to other currencies on the client side: https://github.com/miohtama/bitcoin-prices - you can change the market data backend with little trouble  

---

## 4 answers

### Answer by username_4 on 2013-12-20. Score: 3

It will never be accurate unless you know the preferred exchange for your user, because as you can see the prices are different for each exchange.
Go to this website <http://bitcoin-analytics.com>, and click on "Arbitrage", you will see the difference in exchange rates from multiple sources.

Your best bet is to ask the user to choose their exchange or if they have a preferred one, and use their API, which means you'll need to use multiple APIs for most popular exchanges, like mtgox.com, bitstamp.net, btc-e.com..etc, I would also consider which geographical area you are targeting, it would help you identify who are the ones you need to have.

Good luck.


---

### Answer by username_5 on 2013-12-23. Score: 2

I personally like what BitPay is doing. This is tied to their service, but it uses a rather ingenious spread of data from multiple exchanges. They use what is called the Bitcoin Best Bid (BBB). They pull in market data from several exchanges and create a giant table of all buy and sell orders.

> The BBB is calculated by simulating an auto-routing market sell order, across all exchanges, with zero commission fees.

For additional information see the link below:

<https://bitpay.com/bitcoin-exchange-rates>

The api is available here:

<https://bitpay.com/api/rates>

It is updated once a minute.

> **Comments:**
> **username_0**: Nice but I am looking for something for altcoins.  

---

### Answer by username_6 on 2013-12-18. Score: 1

The [Bitcoin Charts API](http://bitcoincharts.com/about/markets-api/) has current USD/BTC exchange rates sourced from MtGox.com, as well as historic trade data.

There is also the [Cryptsy API](https://www.cryptsy.com/pages/api) and [Vircurex API](https://vircurex.com/welcome/api?locale=en) for alternate cryptocurrencies. I'm not sure if these would fit your needs, but they are worth looking into.

> **Comments:**
> **username_1**: The rate depends on the exchange that the user wants to trade on.  Each exchange has different rates.  

---

### Answer by username_2 on 2014-01-04. Score: 0

[Bitdango](https://bitdango.com) has a [free API](https://bitdango.com/api) to access currency pair prices. To get the one you indicated (BTC/USD), simply use this JSON endpoint:

<https://bitdango.com/api/currencypairs/BTCUSD>

You also mentioned you want more currency pairs, Bitdango tracks all the major crypto currency pairs and provides exchange rates with all the major fiat currencies, etc. Here is the API to search currency pairs:

<https://bitdango.com/api/currencypairs>


---

