npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gdax_stats

v4.2.0

Published

A CLI tool for getting current liquid Coinbase Pro (formerly GDAX) holdings reports.

Downloads

16

Readme

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, which uses the same account system as GDAX.

Setup

  • setup a GDAX 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 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

follow