Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.71 KB

README.md

File metadata and controls

56 lines (44 loc) · 1.71 KB

btc

Generate a Coinbase API key. The key should be authorized to view all your wallets and have the permissions:

  • wallet:accounts:read
  • wallet:transactions:read

Save the client key and secret in ~/.profile:

export COINBASE_KEY=
export COINBASE_SECRET=

To run:

$ go get github.com/kryptokidz/btc
$ btc
    Holding Cost Basis     Amount          $        +/-          %
 ---------- ---------- ---------- ---------- ---------- ----------
        BCH      $0.00       0.00      $0.00     +$0.00        +0%
        BTC      $0.00       0.00      $0.00     +$0.00        +0%
        ETH      $0.00       0.00      $0.00     +$0.00        +0%
        LTC      $0.00       0.00      $0.00     +$0.00        +0%
 ---------- ---------- ---------- ---------- ---------- ----------
      Total      $0.00       0.00      $0.00     +$0.00        +0%

To include spot rates, use --spot:

$ btc --spot
  Spot Rate          $
 ---------- ----------
        BCH      $0.00
        BTC      $0.00
        ETH      $0.00
        LTC      $0.00

    Holding Cost Basis     Amount          $        +/-          %
 ---------- ---------- ---------- ---------- ---------- ----------
        BCH      $0.00       0.00      $0.00     +$0.00        +0%
        BTC      $0.00       0.00      $0.00     +$0.00        +0%
        ETH      $0.00       0.00      $0.00     +$0.00        +0%
        LTC      $0.00       0.00      $0.00     +$0.00        +0%
 ---------- ---------- ---------- ---------- ---------- ----------
      Total      $0.00       0.00      $0.00     +$0.00        +0%

Contributors