Bitcoin Forum
May 25, 2024, 09:44:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Restful service that returns historical price data?  (Read 864 times)
coinsentry (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
June 21, 2014, 05:04:01 AM
 #1

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.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
June 21, 2014, 10:15:52 AM
 #2

Quote
http://api.bitcoincharts.com/v1/trades.csv?symbol=SYMBOL[&start=UNIXTIME]

returns CSV:

unixtime,price,amount

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

Im not really here, its just your imagination.
BitCoinDream
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
June 21, 2014, 06:20:43 PM
 #3

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.

coinsentry (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
June 25, 2014, 04:52:25 AM
 #4

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!