Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get BTC prices on Google Sheets from Google Finance

I'm trying to get data from Google Finance in Google Sheets with this formula:

=GoogleFinance("CURRENCY:BTC")

But I'm getting this error:

GOOGLEFINANCE, the query for the symbol: 'CURRENCY:BTC' returned no data.

Although on Google Finance itself, I can get BTC prices:

https://www.google.com/finance?q=CURRENCY:BTC

with the same query strings.

How can I can fix this?

like image 418
Filipe Ferminiano Avatar asked Jul 13 '17 12:07

Filipe Ferminiano


People also ask

Can you track Bitcoin on Google Sheets?

With this Google Sheet, you can track your cryptocurrency purchases. And also, you can view a summary of your total assets with the Dollar Cost Average (DCA) for each cryptocurrency. In addition to that, you can get the present value of cryptocurrencies with a single click.

What crypto does Googlefinance support?

Bitcoin, ethereum, litecoin and bitcoin cash are displayed by default when clicking the crypto tab.


1 Answers

You need to have a from and to currency like this:

=GoogleFinance("CURRENCY:USDBTC")

For historic close price use:

=GoogleFinance("CURRENCY:USDBTC","close","07/07/2017")

If you want only the price returned use:

=iferror(index(GoogleFinance("CURRENCY:USDBTC","close","07/07/2017"),2,2))
like image 51
Ed Nelson Avatar answered Oct 08 '22 12:10

Ed Nelson