24

Where can I get a time series of (date, bitcoin price in USD)? BitcoinCharts no longer provide historic data, only the last 20,000 samples.

meshcollider
  • 11,815
  • 4
  • 25
  • 53
ripper234
  • 26,550
  • 30
  • 111
  • 246
  • 2
    Stephen Gornick has a very useful summary of the price history at https://docs.google.com/spreadsheet/ccc?key=0AmcTCtjBoRWUdHJuUE1mUkFxa3A0eHBDQkxZLVVFZmc#gid=0. – Meni Rosenfeld Apr 16 '12 at 09:35
  • Related: https://bitcoin.stackexchange.com/questions/22989/where-can-i-get-tick-by-tick-historical-btc-price-data – meshcollider Jan 18 '18 at 23:05

10 Answers10

16

EDIT: These links appear to no longer work


You can get it at Bitcoincharts:

http://bitcoincharts.com/t/trades.csv?symbol=SYMBOL[&start=UNIXTIME][&end=UNIXTIME]

It returns a CSV file with the format:unixtime,price,amount.

For example, you can use this link to get the MtGox prices since August:

http://bitcoincharts.com/t/trades.csv?symbol=mtgoxUSD&start=1312174800
nmat
  • 11,509
  • 14
  • 50
  • 78
5

You can download the whole historical data (every single trade) from the various exchanges as a single .csv file here:

http://api.bitcoincharts.com/v1/csv/

greg121
  • 181
  • 2
  • 4
4

Try quandl! and search for "bitcoin"

for example: http://www.quandl.com/BITCOIN-Bitcoin-Charts/MTGOXUSD-Bitcoin-Markets-mtgoxUSD

2

You didn't state what format you are looking for. Investing.com has a decent tool for this. I've used it for calculating long term gains/losses.

https://www.investing.com/currencies/btc-usd-historical-data

EDIT: Your updated question asked for JSON. I would use blockchain.info

https://api.blockchain.info/charts/market-price?format=json&timespan=all

Other timespan options:

&timespan=30days
&timespan=60days
&timespan=180days
&timespan=1year
&timespan=2years

m1xolyd1an
  • 5,636
  • 2
  • 14
  • 30
2

You might want to try http://www.cryptodatasets.com/ It has free raw(every trade by trade) data and sampled data from Bitfinex and HitBtc (non from MtGox since its not operating anymore).

P.S. it's my website

MegaHotel
  • 151
  • 1
  • 5
1

Bitcoincharts recently retricted the download for latest 20000 trades, it basically represents only two days of tick data.

Guys, if you have downloaded it before the restriction, would you mind sharing those past tick data? It would help me a lot. Thanks!

Update:

As promised, I'm sharing the way how I downloaded all historical trade-by-trade data from MtGox. Firstly, register at BigQuerry cloud database, at this time only download of 16k rows of data is enabled. Secondly go to bitbucket.org/nitrous/bq and download the software which automatize the data download. The whole database took approx one hour to download. Everything is free, no charges. Enjoy!

ripper234
  • 26,550
  • 30
  • 111
  • 246
Steef Gregor
  • 86
  • 1
  • 10
  • 1
    Just realised I post a question as an answer - sorry! – Steef Gregor Jul 16 '13 at 08:30
  • 1
    See Meni's comment above. I have unaccepted the accepted answer, because it's, as you say, no longer correct. I personally don't have historic price data, but perhaps you can post on bitcointalk.org and ask there. (please post here if you find it!) – ripper234 Jul 16 '13 at 08:40
  • 1
    Meni has only end-of-day data which is not sufficient. However, I will do as you suggested and ask on bitcointalk. If I find any, surely I will post it here for others! – Steef Gregor Jul 16 '13 at 09:06
  • 1
    As promised, I'm sharing the way how I downloaded all historical trade-by-trade data from MtGox. Firstly, register at BigQuerry cloud database, at this time only download of 16k rows of data is enabled. Secondly go to https://bitbucket.org/nitrous/bq and download the software which automatize the data download. The whole database took approx one hour to download. Everything is free, no charges. Enjoy! – Steef Gregor Jul 25 '13 at 12:16
  • Thanks! I updated your answer with the content of your comment. – ripper234 Jul 25 '13 at 15:05
1

This explains how to get a dump of past Mt Gox data and the Mt Gox API allows current data. Hope this helps!

1

Yes, there are websites to do that.

MCCCS
  • 10,206
  • 5
  • 27
  • 56
0

http://www.CryptoDataDownload.com is newer but has 28+ exchanges, ~550 pairs, 8+ ccy pairs, and daily/hourly/minute timeframes to download via csv format for free

cdd
  • 31
  • 1
0

You can get it from http://www.coinintraday.com . It offers many intraday data