Skip to content

kryptokidz/btc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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