Google Sheets – Get Cryptocurrency Prices at Specific Times

bitcoinformulasgoogle sheetsgoogle-finance

I have an assortment of cryptocurrency transactions over time. Various currency pairs at various prices. I need to figure out what the price of those currencies was, in Bitcoin, at the time that I purchased them.

The manual solution is to look up a historical price chart of each pair (ETH/BTC, LTC/BTC, XRP/BTC, etc.) at the moment of purchase and record that. But needless to say, this is an extremely time consuming and tedious process.

I have the date & time of each purchase, along with the currency purchased and the amount, in a spreadsheet already. I would like to be able to fetch the final data I need from an API of some sort directly in my sheet.

I've gotten something similar using

https://blockchain.info/frombtc?value=100000000&currency=USD&time=1468858800000&textual=false&nosavecurrency=true 

but it only returns the value of BTC in USD. I need to get the value of other currencies in BTC.

I have made some dummy data available here.

Best Answer

this concludes historical Bitcoin value relative to history records

  • if you want to go full-pro-mode try CRYPTOFINANCE

=CRYPTOFINANCE(C8&"/BTC", "price", B8) * D8

0