jamiew / crypto-price-data

Fetch crypto price data from Coingecko in a format suitable for use in a Google Spreadsheet (via `ImportJSON`)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crypto-price-data

Super basic shell scripts to download crypto price data from Coingecko

Transforms it into a format that is designed to work well with the Google Sheets ImportJSON appscript.

Usage

e.g. you could run it on a public-facing web server

./run.sh > /var/www/html/crypto-prices.json

Then in your Google Sheet, try something like:

=ImportJSON("https://yourwebsite.com/crypto-prices.json", "", "rawHeaders,noTruncate,noInherit")

which unfortunately ouputs things as two rows... you can combine them into a more usable 2-column layout with the TRANSPOSE() function

Could we fix this using a different structure for the JSON? it's a mystery

License

MIT

Pull requests welcome

About

Fetch crypto price data from Coingecko in a format suitable for use in a Google Spreadsheet (via `ImportJSON`)


Languages

Language:Shell 69.8%Language:JavaScript 30.2%