Google Sheet's automatic creation with Google Apps Script (GAS) for a portfolio
This script create a google sheet with currencies balances extracted from differents broker as
- Binance
- Bittrex
- Cryptopia
- Kraken
- Kucoin
It also gives prices from Coinmarketcap
- Go to Google Drive and click New > Google Sheets
https://drive.google.com/drive/my-drive
-
Rename two first tab with "Market" and "Config"
-
In "Config" tab paste your API key and API secret in cells following next table
API | Key | Secret |
---|---|---|
Binance | B14 | B15 |
Bittrex | B6 | B7 |
Cryptopia | B18 | B19 |
Kraken | B2 | B3 |
Kucoin | B22 | B23 |
Poloniex |
-
Click Tools > Script editor... then copy and paste the contents of every .js files (see above) into the script editor and save. You need to create with File > New > Script file Create a new file jsSHA and copy the content from https://github.com/Caligatio/jsSHA/blob/master/src/sha.js
-
Return to the spreadsheet and refresh the page (Note: actually click the refresh button or select it from the menu; the keyboard shortcut is overriden on Google Sheets, at least in Google Chrome). A couple seconds after the page reloads you should see a "Crypto" menu at the top.
Cryptocurrency-Portfolio is an open source project. This project is still in progress. To support development, you can donate using Bitcoin, Ethereum, Litecoin or Dash.
- Bitcoin : 12syztqo8HsvmrXFMJovpPKk5p7GhuLDkX
- Ethereum : 0xdea14f3a96d88e34b31ba7d0eb11d5dd7b3818b8
- Litecoin : Lgoz4XUzUiQDAeZHKhNYVv4Yt4CkhB3dVx
- Dash : XyXSG76aEqjBfn1fcFqbv3ypbMFYHLhFgW
- Zcash : t1ghGhATN4foYCGdhHFeZE7vULdpWEuvp1N
MIT License
Copyright (c) August 2017 Emmanuel CHARETTE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.