<p>bitcoincharts.com is one of the more popular ones:</p>

<p><a href="http://bitcoincharts.com/" rel="nofollow">http://bitcoincharts.com/</a></p>

CC BY-SA 3.0
2013-07-15T23:10:49.853Z
2013-07-15T23:10:49.853Z
Mikko Ohtamaa
<p>BitPay provides an exchange rate quote:</p>

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

CC BY-SA 3.0
2013-07-16T23:38:19.520Z
2013-07-16T23:38:19.520Z
Stephen Gornick
<p>I have written a Python program that looks at bitcoinchart's API and finds the median price. This might be useful if you wanted to automatically adjust prices in an online store.</p>

<pre><code>import urllib2
import json

def average(l):
    return sum(l)/float(len(l))
#From fraxel
def median(mylist):
    sorts = sorted(mylist)
    length = len(sorts)
    if not length % 2:
        return (sorts[length / 2] + sorts[length / 2 - 1]) / 2.0
    return sorts[length / 2]

currency = "USD"
url = "http://api.bitcoincharts.com/v1/markets.json"
result = urllib2.urlopen(url).read()
prices = json.loads(result)


def by_currency(symbol):
    def f(ticker):
        return ticker['currency'] == symbol
    return f
def by_volume(min_volume):
    def f(ticker):
        return ticker['currency_volume'] &gt; min_volume
    return f
def get_price(ticker):
    try:
        return average((ticker['ask'], ticker['bid']))
    except:
        pass
    print ticker
    raise Exception("Can't find price in ticker")

# Avoid prices in wrong currencies
prices = filter(by_currency(currency), prices)
# Exclude small exchanges
prices = filter(by_volume(100), prices)
prices = map(get_price, prices)


single_price = median(prices)
print single_price
</code></pre>

CC BY-SA 3.0
2013-07-16T00:43:55.237Z
i feel like the online bitcoin prices can be manipulated to an extent. what could be some other ways  besides checking the online exchanges?
Patoshi パトシ
CC BY-SA 3.0
2014-03-09T20:18:30.423Z
What language is this? Python? Please state it explicitely!
Joe Pineda
CC BY-SA 3.0
2013-07-15T23:29:14.840Z
2014-09-29T22:19:00.153Z
2014-09-29T22:19:00.153Z
Nick ODell
<p>You can place my bitcoin price table on your site:
<a href="http://coinrepublic.com/website-tools/" rel="nofollow">http://coinrepublic.com/website-tools/</a></p>

<p>David</p>

CC BY-SA 3.0
2013-07-20T07:26:10.887Z
2013-07-20T07:26:10.887Z
David
<p>I have a small business in doing repairs and I'm willing to take bitcoin, but i was wondering if there is a site that aggregates all the bitcoin exchange prices so I can get an idea of what price to charge in bitcoins to avoid the day to day volatility. Yes i know i can use bitpay, but I want to be able to just take bitcoin myself and come up with my own merchant rate that i choose and feel comfortable with.</p>

CC BY-SA 3.0
2013-07-16T23:37:58.750Z
As a merchant, won't the exchange rate you base your rate on be the exchange that you will be cashing out at?  i.e., would it matter what Mt. Gox's exchange rate is if you will be cashing out at BITSTAMP, for example?
Stephen Gornick
<exchange-rate><bitpay>
Is there some website that aggregates all the Bitcoin exchange prices so small businesses can find out the current market rate and react accordingly?
Patoshi パトシ
# Is there some website that aggregates all the Bitcoin exchange prices so small businesses can find out the current market rate and react accordingly?

(Asked by: username_0 on 2013-07-15)

I have a small business in doing repairs and I'm willing to take bitcoin, but i was wondering if there is a site that aggregates all the bitcoin exchange prices so I can get an idea of what price to charge in bitcoins to avoid the day to day volatility. Yes i know i can use bitpay, but I want to be able to just take bitcoin myself and come up with my own merchant rate that i choose and feel comfortable with.

**Tags:** exchange-rate, bitpay

> **Comments:**
> **username_1**: As a merchant, won't the exchange rate you base your rate on be the exchange that you will be cashing out at?  i.e., would it matter what Mt. Gox's exchange rate is if you will be cashing out at BITSTAMP, for example?  

---

## 4 answers

### Answer by username_2 on 2013-07-15. Score: 3

bitcoincharts.com is one of the more popular ones:

<http://bitcoincharts.com/>


---

### Answer by username_1 on 2013-07-16. Score: 1

BitPay provides an exchange rate quote:

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


---

### Answer by username_3 on 2013-07-15. Score: 0

I have written a Python program that looks at bitcoinchart's API and finds the median price. This might be useful if you wanted to automatically adjust prices in an online store.

```
import urllib2
import json

def average(l):
    return sum(l)/float(len(l))
#From fraxel
def median(mylist):
    sorts = sorted(mylist)
    length = len(sorts)
    if not length % 2:
        return (sorts[length / 2] + sorts[length / 2 - 1]) / 2.0
    return sorts[length / 2]

currency = "USD"
url = "http://api.bitcoincharts.com/v1/markets.json"
result = urllib2.urlopen(url).read()
prices = json.loads(result)

def by_currency(symbol):
    def f(ticker):
        return ticker['currency'] == symbol
    return f
def by_volume(min_volume):
    def f(ticker):
        return ticker['currency_volume'] > min_volume
    return f
def get_price(ticker):
    try:
        return average((ticker['ask'], ticker['bid']))
    except:
        pass
    print ticker
    raise Exception("Can't find price in ticker")

# Avoid prices in wrong currencies
prices = filter(by_currency(currency), prices)
# Exclude small exchanges
prices = filter(by_volume(100), prices)
prices = map(get_price, prices)

single_price = median(prices)
print single_price

```

> **Comments:**
> **username_0**: i feel like the online bitcoin prices can be manipulated to an extent. what could be some other ways  besides checking the online exchanges?  
> **username_4**: What language is this? Python? Please state it explicitely!  

---

### Answer by username_5 on 2013-07-20. Score: 0

You can place my bitcoin price table on your site:
<http://coinrepublic.com/website-tools/>

username_5


---

