Google Sheets script editor code for managing a cryptocurrency tracking spreadsheet
This is a (javascript-based) tool to aid in creating your own crypto tracking spreadsheet. It can automagically pull in current cryptocurrency rates, as well as your wallet balances. It requires the use of Google Sheets and its built-in script editor.
If you want a better understanding of how it works and have no programming experience, it’s never too late to learn. Take a free course at Codecademy and flex your brain 💪🎆. Programming can open doors for you, no matter your occupation.
https://www.codecademy.com/learn/introduction-to-javascript
Rates
sheet with currency dataCreate a new Google Sheets spreadsheet and name it something, or open an existing one
Create two new sheets called Rates
and Wallets
Click “Tools > Script editor…” on the menu bar, and name your script project something
Select all of the text in the right-side pane and delete it
Paste the contents of scripteditor.js into the right-side pane
Add in as many currencies that you want to track
Add triggers to your project (“Edit > Current project’s triggers…”). This is how your spreadsheet will update automatically.
Set up a new trigger
In the “Run” dropdown, choose “onOpen” and choose which triggers will refresh the data. We recommend using “Time-driven/Minutes/Every 30”, and “From spreadsheet/On open.”
You can manually execute the script to test it by clicking the Select function
, selecting onOpen
, and clicking the run button (looks like the play symbol)
Wallets
Sheet with Account BalancesNote: Currently supports NANO, ETH, BCH, BTC, DGB, LTC, and VTC. Update other wallet balances manually in your spreadsheet for the time being. Feel free to submit an issue for other currencies.
If you don’t have a Wallets
sheet, one will automatically be created for you
Scroll down to the WALLET BALANCE CONFIGURATION
section (around line 130)
Follow the instructions for each currency to add your address. You can change the value in getRange
to output the balance to a different cell in the Wallets
sheet.
Before configuration
After configuration
Global
will be automatically created for you, and populated with overall Market Cap Data.There are comments in the code for anything that’s not covered here. If you had to use these instructions, the safe bet is to not modify anything else.
solifugo has put together a guide on how to organize data from the Rates sheet.
This project is licensed under the GNU General Public License v3.0