https://github.com/atomantic/gdax_stats
πΉβοΈReporting CLI Tool for Getting Liquid GDAX Balances
https://github.com/atomantic/gdax_stats
Last synced: 11 months ago
JSON representation
πΉβοΈReporting CLI Tool for Getting Liquid GDAX Balances
- Host: GitHub
- URL: https://github.com/atomantic/gdax_stats
- Owner: atomantic
- License: isc
- Created: 2017-10-24T14:00:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T15:27:10.000Z (almost 7 years ago)
- Last Synced: 2025-06-30T02:48:12.459Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
[Coinbase]: https://www.coinbase.com/join/antic
# GDAX Stats
is a tool for compiling the liquid value of a GDAX account and running reports for accounting against trade history using the GDAX API.
In order to use this tool, you will need to create an API key with "view" permissions (this is the only permission it needs): https://www.gdax.com/settings/api
If you don't yet have a GDAX trading account, you can sign up on [Coinbase][Coinbase], which uses the same account system as GDAX.
# Setup
* setup a [GDAX](https://www.gdax.com) account (Login with Coinbase)
* Get a [Coinbase GDAX][GDAX] API key/secret (view only, and restrict to your IP address)
* Set `GDAX_KEY`, `GDAX_SECRET`, `GDAX_PASS` as env vars
* Set external (offline wallet) numbers for `EXT_BTC`, `EXT_BCH`, `EXT_ETC`, `EXT_LTC`, `EXT_ETH`:
* e.g. `export EXT_BTC=1` (if you have 1 BTC in an offline wallet or another exchange you want to track)
* install Node.js (recommend using [NVM](https://github.com/creationix/nvm) at latest version: 10.0.0)
* Install: `npm i -g gdax_stats`
* Run: `gdax_stats balance` to see balances
```
β‘οΈ \[._.]/ - getting balances
π etcπ° NaN <- NaN -> π· NaN median: NaN price: 0
π ltcπ° 67.01 <- 0.01 -> π· 67.02 median: 67.02 price: 67
π bchπ° 644.21 <- 0.01 -> π· 644.22 median: 644.22 price: 644
π ethπ° 377.30 <- 0.01 -> π· 377.31 median: 377.31 price: 377
π btcπ° 6590.77 <- 0.01 -> π· 6590.78 median: 6590.77 price: 6590
offline holdings:
βββββββββββββββββββββββββ¬βββββββββββββββββββββββ¬βββββββββββββββββ-ββ¬βββββββββββββββββββββββ
β BTC@ $9254.00 = $0.00 β LTC@ $150.10 = $0.00 β ETH@ $674 = $0.00 β BCH@ $1379.79 = $0.0 β
βββββββββββββββββββββββββΌβββββββββββββββββββββββΌββββββββββββββββββββΌβββββββββββββββββββββββ€
β 0 β 0 β 0 β 0 β
βββββββββββββββββββββββββ΄βββββββββββββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββ-ββ
$USD values:
βββββββββββββββ¬βββββββββββββββββββ-----ββ¬ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ
β USD = $0.00 β BTC@ $9254 = $0.00 β LTC@ $150 = $0.00 β ETH@ $674 = $0.00 β BCH@ $1380 = $0.00 β
βββββββββββββββΌβββββββββββββ-βββ-----ββββΌββββββββββββββββββββββββββΌββββββββββββββββββββββββββΌβββββββββββββββ---------ββ€
β 0.00 / 0.00 β 0.00000000 / 0.00000000 β 0.00000000 / 0.00000000 β 0.00000000 / 0.00000000 β 0.00000000 / 0.00000000 β
βββββββββββββββ΄ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ
Crypto liquid values:
ββββββββββββββ¬βββββββββββββ¬βββββββββββββ¬βββββββββββββ¬βββββββββββββ
β liquid USD β liquid BTC β liquid LTC β liquid ETH β liquid BCH β
βββββββββββ-ββΌβββββββββ-βββΌβββββββββββββΌβββββββββββββΌβββββββββββββ€
β 0.00 β 0.00000000 β 0.00000000 β 0.00000000 β 0.00000000 β
ββββββββββββββ΄βββββββββββββ΄βββββββββββββ΄βββββββββββββ΄βββββββββββββ
Copy/Paste for Spreadsheet Tracking:
USD Holdings BTC Holdings LTC Holdings ETH Holdings BCH Holdings Liquid USD Liquid BTC Liquid LTC Liquid ETH Liquid BCH
0.00 0.00000000 0.00000000 0.00000000 0.00000000 0.00 0.00000000 0.00000000 0.00000000 0.00000000
```
## Author
Adam Eivy is a software architect by day and a drawing dad by night.
[follow him on the interwebs](http://adameivy.com)

[](https://www.coinbase.com/checkouts/62b15a45f11194f8555884e200024616)