Author

Topic: how to get history of bitcoin price data (Read 208 times)

legendary
Activity: 3472
Merit: 10611
December 10, 2018, 10:44:05 PM
#5
have you checked out TradingView.com yet?
it has good chart functionalities and supports data from multiple exchanges. and the charts are very good for everything you want to do specially TA.

of course it really depends on what you are trying to do. for example if it is a bot you are designing then go with the exchange APIs directly by visiting their website and reading how their API works.
jr. member
Activity: 1232
Merit: 1
December 10, 2018, 10:21:55 AM
#4
One can easily get anual chart price of bitcoin from Bitstamp, especially one can get easily from coinbase anual price chart. Find here: https://www.bitstamp.net/api/ticker/
jr. member
Activity: 336
Merit: 1
December 10, 2018, 09:49:05 AM
#3
coin.dance this website store most of the information of bitcoin and daily volume transactions and past history as well
newbie
Activity: 28
Merit: 0
December 10, 2018, 07:07:40 AM
#2
Bitstamp has live bitcoin data that are publicly available in JSON at this link. Do not try to access it more than 600 times in ten minutes or else they'll block your IP (plus, it's unnecessary anyway; read more here). The below is a C# approach to getting live data:

using (var WebClient = new System.Net.WebClient())
{
     var json = WebClient.DownloadString("https://www.bitstamp.net/api/ticker/");
     string value = Convert.ToString(json);
     // Parse/use from here
}
From here, you can parse the JSON and store it in a database (or with MongoDB insert it directly) and then access it.

For historic data (depending on the database - if that's how you approach it), do an insert from a flat file, which most databases allow you to use (for instance, with SQL Server you can do a BULK INSERT from a CSV file).
newbie
Activity: 42
Merit: 0
December 10, 2018, 06:13:10 AM
#1
I want to do my own bitcoin chart.

Would you know any reliable way to retrieve bitcoins historical price data? Is there any way to retrieve it using REST? I saw Bitfloor, which supports REST, but it is not returning any useful value, it has a "internal server error".

I saw also Bitcoincharts, but I think it's limited to 2000 data values.

Would you suggest me any framework or system to work about it?
Jump to: