Bitcoin Forum

Economy => Service Discussion => Topic started by: coinsentry on June 21, 2014, 05:04:01 AM



Title: Restful service that returns historical price data?
Post by: coinsentry on June 21, 2014, 05:04:01 AM
I'm looking for some kind of API service (like blockr.io) that will return the price of BTC (for any exchange, but preferably Bitstamp or something) at a point in the past.

So I could do something like:

http://some.api.com/get_price?date=[timestamp]

and it would return the price as it was on that timestamp. All the API's that I've been able to find will only return the current price.


Title: Re: Restful service that returns historical price data?
Post by: shorena on June 21, 2014, 10:15:52 AM
Quote
http://api.bitcoincharts.com/v1/trades.csv?symbol=SYMBOL[&start=UNIXTIME]

returns CSV:

unixtime,price,amount

http://bitcoincharts.com/about/markets-api/


Title: Re: Restful service that returns historical price data?
Post by: BitCoinDream on June 21, 2014, 06:20:43 PM
I'm looking for some kind of API service (like blockr.io) that will return the price of BTC (for any exchange, but preferably Bitstamp or something) at a point in the past.

So I could do something like:

http://some.api.com/get_price?date=[timestamp]

and it would return the price as it was on that timestamp. All the API's that I've been able to find will only return the current price.

I think this is what u r looking for...

https://blockchain.info/tobtc?currency=USD&value=600

p.s. Change the currency code and value as per your requirement.


Title: Re: Restful service that returns historical price data?
Post by: coinsentry on June 25, 2014, 04:52:25 AM
Quote
http://api.bitcoincharts.com/v1/trades.csv?symbol=SYMBOL[&start=UNIXTIME]

returns CSV:

unixtime,price,amount

http://bitcoincharts.com/about/markets-api/
This doesn't seem to work at all. I change the timestamp, but it seems to ignore that value and only give m the current price...

At any rate, I made this last weekend since I couldn't find anything else... https://github.com/priestc/HistoricalCryptoPrices