24
votes

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.

10 Answers 10

16
votes

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
  • 2
    Awsome. I used this link to get data from 2009. bitcoincharts.com/t/… – ripper234 Sep 8 '11 at 9:44
  • Well, this turned out absolutely meaningless. Here is the ugly conversation script if anyone's interested: gist.github.com/1251429 – ripper234 Sep 29 '11 at 18:00
  • see my answer to get all trades as one big file – greg121 Oct 27 '14 at 8:58
  • 1
    The links in this answer have stopped working. – user5672 Jul 9 '15 at 20:31
5
votes

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/

4
votes

Try quandl! and search for "bitcoin"

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

2
votes

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

  • Thank you for your answer. Just updated it with the format. – Kare Apr 23 '17 at 20:21
  • Answer updated with JSON example – m1xolyd1an Apr 24 '17 at 1:30
  • I've merged the question into this one, this answer may require small edits to make it fit in :) – MeshCollider Jan 18 '18 at 23:02
2
votes

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

  • 1
    nice site, why not compress the csv with gzip? – xgdgsc Jan 27 '18 at 13:15
1
vote

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

  • A bit outdated. – MCCCS Feb 5 '18 at 13:12
1
vote

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!

  • 1
    Just realised I post a question as an answer - sorry! – Steef Gregor Jul 16 '13 at 8: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 8: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 9: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 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
vote

Yes, there are websites to do that.

  • 1
    This answer has been moved due to questions being merged, please double check it doesn't need any edits :) – MeshCollider Jan 18 '18 at 22:59
0
votes

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

  • Please disclose your affiliation or this will be deleted as spam :) – MeshCollider Jan 18 '18 at 23:02
0
votes

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.