Bitcoin Price Index (24h)

Last updated on Aug 22, 2014 at 06:54 BST. Based on the following values:

USD
BTC-e $494.00
Bitstamp $505.80
Bitfinex $505.07
LakeBTC $503.59
CNY
BTC China ¥3,078.29
OKCoin ¥3,072.00
Huobi ¥3,073.97

    USD
    -2.72%

    $502.11

    CNY
    -2.79%

    ¥3,074.75

    EUR

    €377.95

    GBP

    £302.79

    CoinDesk API

    CoinDesk Bitcoin Price Index API

    CoinDesk provides a simple API to make its Bitcoin Price Index (BPI) data programmatically available to others.

    You are free to use this API to include our data in any application or website as you see fit, as long as each page or app that uses includes the text “Powered by CoinDesk”, linking to our price page.

    We’d also appreciate if you could email us at [email protected] to let us know about your service and how you’re using the CoinDesk BPI.

    CoinDesk data is made available through a number of HTTP resources, and data is returned in JSON format.

    Please do not abuse our service.

    BPI real-time data

    On the CoinDesk website, we publish the BPI in USD, EUR, and GBP, calculated every minute, based on criteria as discussed on the CoinDesk BPI page.

    This same data can be retrieved using the endpoint:

    • http[s]://api.coindesk.com/v1/bpi/currentprice.json

    Sample JSON Response:

    {"time":{"updated":"Aug 22, 2014 05:54:00 UTC","updatedISO":"2014-08-22T05:54:00+00:00","updateduk":"Aug 22, 2014 at 06:54 BST"},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org","bpi":{"USD":{"code":"USD","symbol":"$","rate":"502.1125","description":"United States Dollar","rate_float":502.1125},"GBP":{"code":"GBP","symbol":"£","rate":"302.7864","description":"British Pound Sterling","rate_float":302.7864},"EUR":{"code":"EUR","symbol":"€","rate":"377.9511","description":"Euro","rate_float":377.9511}}}

    We also offer the BPI converted into in any of our supported currencies. This data can be accessed using the endpoint:

    • http[s]://api.coindesk.com/v1/bpi/currentprice/<CODE>.json

    Where <CODE> should be replaced by a valid ISO 4217 currency code as per our supported currency list.

    Sample Request

    http[s]://api.coindesk.com/v1/bpi/currentprice/CNY.json

    Sample JSON Response

    {"time":{"updated":"Sep 18, 2013 17:27:00 UTC","updatedISO":"2013-09-18T17:27:00+00:00"},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index. Non-USD currency data converted using hourly conversion rate from openexchangerates.org","bpi":{"USD":{"code":"USD","rate":"126.5235","description":"United States Dollar","rate_float":126.5235},"CNY":{"code":"CNY","rate":"775.0665","description":"Chinese Yuan","rate_float":"775.0665"}}}

    Historical BPI data

    We offer historical data from our Bitcoin Price Index through the following endpoint:

    • http[s]://api.coindesk.com/v1/bpi/historical/close.json

    By default, this will return the previous 31 days’ worth of data.

    This endpoint accepts the following optional time parameters to allow selection of date range for the returned data:

    • ?for=yesterday
      Specifying this will return a single value for the previous day.
    • ?start=YYYY-MM-DD&end=YYYY-MM-DD
      Allows data to be returned for the selected date range.  Must be listed as a pair of start and end parameters, and dates to be supplied in the date format specified above, e.g. 2013-09-01 for September 1st, 2013.

    Sample Request:

    http[s]://api.coindesk.com/v1/bpi/historical/close.json?start=2013-09-01&end=2013-09-05

    Sample JSON Response:

    {"bpi":{"2013-09-01":128.2597,"2013-09-02":127.3648,"2013-09-03":127.5915,"2013-09-04":120.5738,"2013-09-05":120.5333},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index. BPI value data returned as USD.","time":{"updated":"Sep 6, 2013 00:03:00 UTC","updatedISO":"2013-09-06T00:03:00+00:00"}}

    Feedback

    If you have any feedback or suggestions with regards to this API, please send them to [email protected].

    We’d love to hear how you’re using the CoinDesk BPI!