4.9.0 • Published 1 year ago

crypto-watcher v4.9.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

crypto-watcher

Crypto Watcher is a privacy-oriented tool used to track ETH and token balances across multiple addresses and groups (ledgers).

All the data is stored locally in an AES256 encrypted database.

Installation

The crypto-watcher tool stores the configuration at <HOME_DIR>/.crypto-watcher/config.data by default.

Locally

git clone https://github.com/lbeder/crypto-watcher

cd crypto-watcher

yarn

Globally

npm install -g crypto-watcher

Or run with npx:

npx crypto-watcher

This will also allow you to run the crypto-watcher in the terminal.

Usage

General

crypto-watcher <command>

Commands:
  crypto-watcher show              Show the configuration
  crypto-watcher query             Query all addresses and tokens
  crypto-watcher change-password   Change the encryption password
  crypto-watcher export-config     Export the config to an external file. Note that the export is *not* encrypted
  crypto-watcher import-config     Import the config from an external file. Note that the import should not be *not*
                                   encrypted
  crypto-watcher add-addresses     Add an address or a list of space-separated addresses to a named ledger
  crypto-watcher remove-addresses  Remove an address or a list of space-separated addresses from a named ledger
  crypto-watcher remove-ledger     Remove an entire named ledger
  crypto-watcher add-token         Add a token to the config
  crypto-watcher remove-token      Remove a token from the config
  crypto-watcher add-asset         Add an asset to the config
  crypto-watcher update-asset      Update an asset in the config
  crypto-watcher remove-asset      Remove an assert from the config

Options:
      --help     Show help                                                                                     [boolean]
      --version  Show version number                                                                           [boolean]
      --url      Web3 provider's URL                                         [string] [default: "http://127.0.0.1:8545"]
  -v, --verbose  Verbose mode                                                                                  [boolean]
  -p, --price    Query prices using Coingecko                                                 [boolean] [default: false]

Query Amounts and Values

crypto-watcher query --help

Query all addresses and tokens

Options:
      --help                  Show help                                                                        [boolean]
      --version               Show version number                                                              [boolean]
      --url                   Web3 provider's URL                            [string] [default: "http://127.0.0.1:8545"]
  -p, --price                 Query prices using Coingecko                                    [boolean] [default: false]
  -v, --verbose               Verbose mode                                                                     [boolean]
  -e, --show-empty-addresses                                                                  [boolean] [default: false]
crypto-watcher show --help

Show the configuration

Options:
      --help     Show help                                                                                     [boolean]
      --version  Show version number                                                                           [boolean]
      --url      Web3 provider's URL                                         [string] [default: "http://127.0.0.1:8545"]
  -p, --price    Query prices using Coingecko                                                 [boolean] [default: false]

Show the Configuration

crypto-watcher show

Show the configuration

Options:
      --help     Show help                                                                                     [boolean]
      --version  Show version number                                                                           [boolean]
      --url      Web3 provider's URL                                         [string] [default: "http://127.0.0.1:8545"]
  -p, --price    Query prices using Coingecko                                                 [boolean] [default: false]

Example

Adding addresses

Let's start by adding the following addresses to the following named ledgers:

  • Binance:
    • 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8
    • 0xF977814e90dA44bFA03b6295A0616a897441aceC
  • Kraken:
    • 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf
crypto-watcher add-addresses --name "Binance" --addresses 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 0xF977814e90dA44bFA03b6295A0616a897441aceC --notes "Binance 7" "Binance 8"

? Enter password [hidden]

Added 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 to Binance (with a note: "Binance 7")
Added 0xF977814e90dA44bFA03b6295A0616a897441aceC to Binance (with a note: "Binance 8")
crypto-watcher add-addresses --name "Kraken" --addresses 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf

? Enter password [hidden]

Added 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf to Kraken
crypto-watcher add-addresses --name "Coinbase" --addresses 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 --notes "Coinbase 1"

? Enter password [hidden]

Added 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 to Coinbase (with a note: "Coinbase 1")

We can see that the configuration has been updated:

crypto-watcher show

? Enter password [hidden]

Configuration
‾‾‾‾‾‾‾‾‾‾‾‾‾
Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

As you can see, by default the known token list is empty, therefore querying the balances will only return Ether amounts:

crypto-watcher query

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────┐
│ Name │ Amount       │
├──────┼──────────────┤
│ ETH  │ 4,979,230.33 │
└──────┴──────────────┘

You can also provide the -v/--verbose flag to print verbose amounts for all addresses and ledgers:

crypto-watcher query -v

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬──────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH          │ Note       │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.36 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 1,202,147.48 │ Binance 8  │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,780,839.97 │            │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 234.52       │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│          │ Total                                      │ 4,979,230.33 │            │
├──────────┼────────────────────────────────────────────┼──────────────┼────────────┤
│          │                                            │ ETH          │            │
└──────────┴────────────────────────────────────────────┴──────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌──────────┬──────────────┐
│ Ledger   │ ETH          │
├──────────┼──────────────┤
│ Binance  │ 3,198,155.84 │
├──────────┼──────────────┤
│ Kraken   │ 1,780,839.97 │
├──────────┼──────────────┤
│ Coinbase │ 234.52       │
├──────────┼──────────────┤
│ Total    │ 4,979,230.33 │
├──────────┼──────────────┤
│          │ ETH          │
└──────────┴──────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────┐
│ Name │ Amount       │
├──────┼──────────────┤
│ ETH  │ 4,979,230.33 │
└──────┴──────────────┘

Let's add the USDT, USDC, DAI, and LINK tokens and try again:

crypto-watcher add-token --symbol USDT --address 0xdAC17F958D2ee523a2206206994597C13D831ec7 --decimals 6

? Enter password [hidden]

Added USDT at 0xdAC17F958D2ee523a2206206994597C13D831ec7 with 6 decimals
crypto-watcher add-token --symbol USDC --address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 --decimals 6

? Enter password [hidden]

Added USDC at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 with 6 decimals
crypto-watcher add-token --symbol DAI --address 0x6B175474E89094C44Da98b954EedeAC495271d0F

? Enter password [hidden]

Added DAI at 0x6B175474E89094C44Da98b954EedeAC495271d0F with 18 decimals
crypto-watcher add-token --symbol LINK --address 0x514910771AF9Ca656af840dff83E8264EcF986CA

? Enter password [hidden]

Added LINK at 0x514910771AF9Ca656af840dff83E8264EcF986CA with 18 decimals

You can check and verify that the tokens are now part of the configuration:

crypto-watcher show

? Enter password [hidden]

Configuration
‾‾‾‾‾‾‾‾‾‾‾‾‾
Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

Tokens
‾‾‾‾‾‾
┌────────┬────────────────────────────────────────────┬──────────┐
│ Symbol │ Address                                    │ Decimals │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDT   │ 0xdAC17F958D2ee523a2206206994597C13D831ec7 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDC   │ 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ DAI    │ 0x6B175474E89094C44Da98b954EedeAC495271d0F │ 18       │
├────────┼────────────────────────────────────────────┼──────────┤
│ LINK   │ 0x514910771AF9Ca656af840dff83E8264EcF986CA │ 18       │
└────────┴────────────────────────────────────────────┴──────────┘

Let's query the balances again:

crypto-watcher query

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬──────────────┐
│ Name │ Amount       │
├──────┼──────────────┤
│ ETH  │ 4,979,230.33 │
├──────┼──────────────┤
│ USDT │ 262.29       │
├──────┼──────────────┤
│ USDC │ 490.99       │
├──────┼──────────────┤
│ DAI  │ 292,409      │
├──────┼──────────────┤
│ LINK │ 64,500,000   │
└──────┴──────────────┘

Let's query again with the -v/--verbose flag:

crypto-watcher query -v

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬──────────────┬────────┬────────┬─────────┬────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH          │ USDT   │ USDC   │ DAI     │ LINK       │ Note       │
├──────────┼────────────────────────────────────────────┼──────────────┼────────┼────────┼─────────┼────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.36 │ 161    │ 0      │ 0       │ 5,000,000  │ Binance 7  │
├──────────┼────────────────────────────────────────────┼──────────────┼────────┼────────┼─────────┼────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 1,202,147.48 │ 0      │ 0      │ 0       │ 50,000,000 │ Binance 8  │
├──────────┼────────────────────────────────────────────┼──────────────┼────────┼────────┼─────────┼────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,780,839.97 │ 100    │ 0      │ 292,409 │ 9,500,000  │            │
├──────────┼────────────────────────────────────────────┼──────────────┼────────┼────────┼─────────┼────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 235.79       │ 1.29   │ 490.99 │ 0       │ 0          │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼──────────────┼────────┼────────┼─────────┼────────────┼────────────┤
│          │ Total                                      │ 4,979,231.6  │ 262.29 │ 490.99 │ 292,409 │ 64,500,000 │            │
├──────────┼────────────────────────────────────────────┼──────────────┼────────┼────────┼─────────┼────────────┼────────────┤
│          │                                            │ ETH          │ USDT   │ USDC   │ DAI     │ LINK       │            │
└──────────┴────────────────────────────────────────────┴──────────────┴────────┴────────┴─────────┴────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌──────────┬──────────────┬────────┬────────┬─────────┬────────────┐
│ Ledger   │ ETH          │ USDT   │ USDC   │ DAI     │ LINK       │
├──────────┼──────────────┼────────┼────────┼─────────┼────────────┤
│ Binance  │ 3,198,155.84 │ 161    │ 0      │ 0       │ 55,000,000 │
├──────────┼──────────────┼────────┼────────┼─────────┼────────────┤
│ Kraken   │ 1,780,839.97 │ 100    │ 0      │ 292,409 │ 9,500,000  │
├──────────┼──────────────┼────────┼────────┼─────────┼────────────┤
│ Coinbase │ 235.79       │ 1.29   │ 490.99 │ 0       │ 0          │
├──────────┼──────────────┼────────┼────────┼─────────┼────────────┤
│ Total    │ 4,979,231.6  │ 262.29 │ 490.99 │ 292,409 │ 64,500,000 │
├──────────┼──────────────┼────────┼────────┼─────────┼────────────┤
│          │ ETH          │ USDT   │ USDC   │ DAI     │ LINK       │
└──────────┴──────────────┴────────┴────────┴─────────┴────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬─────────────┐
│ Name │ Amount      │
├──────┼─────────────┤
│ ETH  │ 4,979,231.6 │
├──────┼─────────────┤
│ USDT │ 262.29      │
├──────┼─────────────┤
│ USDC │ 490.99      │
├──────┼─────────────┤
│ DAI  │ 292,409     │
├──────┼─────────────┤
│ LINK │ 64,500,000  │
└──────┴─────────────┘

If you are interested in querying the $ value of the balances, you can pass the optional -p/--price flag which will query the balances using https://www.coingecko.com/(CoinGecko API):

crypto-watcher query -p

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌────────┬───────────┐
│ Symbol │ Price     │
├────────┼───────────┤
│ ETH    │ $1,974.65 │
├────────┼───────────┤
│ USDT   │ $1.002    │
├────────┼───────────┤
│ USDC   │ $1        │
├────────┼───────────┤
│ DAI    │ $1.001    │
├────────┼───────────┤
│ LINK   │ $7.94     │
└────────┴───────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬─────────────┬────────────────────┬──────────────────┐
│ Name │ Amount      │ Value              │ % of Total Value │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ ETH  │ 4,979,231.6 │ $9,832,239,683.61  │ 95.0465          │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ USDT │ 262.29      │ $262.81            │ 0.00000254058    │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ USDC │ 490.99      │ $490.99            │ 0.00000474631    │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ DAI  │ 292,409     │ $292,701.41        │ 0.00282949       │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ LINK │ 64,500,000  │ $512,130,000       │ 4.95067          │
├──────┼─────────────┼────────────────────┼──────────────────┤
│      │ Total Value │ $10,344,663,138.83 │                  │
└──────┴─────────────┴────────────────────┴──────────────────┘

You can also combine both the -p/--price and the -v/--verbose flags for the full output with an aggregated total $ values and holding percentages:

crypto-watcher query -v -p

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌────────┬───────────┐
│ Symbol │ Price     │
├────────┼───────────┤
│ ETH    │ $1,974.65 │
├────────┼───────────┤
│ USDT   │ $1.002    │
├────────┼───────────┤
│ USDC   │ $1        │
├────────┼───────────┤
│ DAI    │ $1.001    │
├────────┼───────────┤
│ LINK   │ $7.94     │
└────────┴───────────┘

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬───────────────────┬─────────┬─────────┬─────────────┬──────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │ Note       │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.36      │ 161     │ 0       │ 0           │ 5,000,000    │ Binance 7  │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 1,202,147.48      │ 0       │ 0       │ 0           │ 50,000,000   │ Binance 8  │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,780,839.97      │ 100     │ 0       │ 292,409     │ 9,500,000    │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 235.79            │ 1.29    │ 490.99  │ 0           │ 0            │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │ Total                                      │ 4,979,231.6       │ 262.29  │ 490.99  │ 292,409     │ 64,500,000   │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │                                            │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │ Total Value                                │ $9,832,239,683.61 │ $262.81 │ $490.99 │ $292,701.41 │ $512,130,000 │            │
└──────────┴────────────────────────────────────────────┴───────────────────┴─────────┴─────────┴─────────────┴──────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌─────────────┬───────────────────┬─────────┬─────────┬─────────────┬──────────────┐
│ Ledger      │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Binance     │ 3,198,155.84      │ 161     │ 0       │ 0           │ 55,000,000   │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Kraken      │ 1,780,839.97      │ 100     │ 0       │ 292,409     │ 9,500,000    │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Coinbase    │ 235.79            │ 1.29    │ 490.99  │ 0           │ 0            │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Total       │ 4,979,231.6       │ 262.29  │ 490.99  │ 292,409     │ 64,500,000   │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│             │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Total Value │ $9,832,239,683.61 │ $262.81 │ $490.99 │ $292,701.41 │ $512,130,000 │
└─────────────┴───────────────────┴─────────┴─────────┴─────────────┴──────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌──────┬─────────────┬────────────────────┬──────────────────┐
│ Name │ Amount      │ Value              │ % of Total Value │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ ETH  │ 4,979,231.6 │ $9,832,239,683.61  │ 95.0465          │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ USDT │ 262.29      │ $262.81            │ 0.00000254058    │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ USDC │ 490.99      │ $490.99            │ 0.00000474631    │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ DAI  │ 292,409     │ $292,701.41        │ 0.00282949       │
├──────┼─────────────┼────────────────────┼──────────────────┤
│ LINK │ 64,500,000  │ $512,130,000       │ 4.95067          │
├──────┼─────────────┼────────────────────┼──────────────────┤
│      │ Total Value │ $10,344,663,138.83 │                  │
└──────┴─────────────┴────────────────────┴──────────────────┘

In addition to ETH and token amounts, you can also add static assets, by specifying their name, quantity, and unit prices. For example:

crypto-watcher add-asset --name Gold --quantity 100 --unit-price 2018.25

? Enter password [hidden]

Added 100 units of Gold at the price of 2018.25 USD per unit
crypto-watcher add-asset --name "Real Estate" --quantity 1 --unit-price 1000000

? Enter password [hidden]

Added 1 units of Real Estate at the price of 1000000 USD per unit

You can check and verify that the assets are now part of the configuration:

crypto-watcher show

? Enter password [hidden]

Configuration
‾‾‾‾‾‾‾‾‾‾‾‾‾
Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

Tokens
‾‾‾‾‾‾
┌────────┬────────────────────────────────────────────┬──────────┐
│ Symbol │ Address                                    │ Decimals │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDT   │ 0xdAC17F958D2ee523a2206206994597C13D831ec7 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDC   │ 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ DAI    │ 0x6B175474E89094C44Da98b954EedeAC495271d0F │ 18       │
├────────┼────────────────────────────────────────────┼──────────┤
│ LINK   │ 0x514910771AF9Ca656af840dff83E8264EcF986CA │ 18       │
└────────┴────────────────────────────────────────────┴──────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┐
│ Name        │ Quantity │ Price      │
├─────────────┼──────────┼────────────┤
│ Gold        │ 100      │ $2,018.25  │
├─────────────┼──────────┼────────────┤
│ Real Estate │ 1        │ $1,000,000 │
└─────────────┴──────────┴────────────┘

You can also see that asset amounts are aggregated as well:

crypto-watcher query -p -v

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌─────────────┬────────────┐
│ Symbol      │ Price      │
├─────────────┼────────────┤
│ ETH         │ $1,974.65  │
├─────────────┼────────────┤
│ USDT        │ $1.002     │
├─────────────┼────────────┤
│ USDC        │ $1         │
├─────────────┼────────────┤
│ DAI         │ $1.001     │
├─────────────┼────────────┤
│ LINK        │ $7.94      │
├─────────────┼────────────┤
│ Gold        │ $2,018.25  │
├─────────────┼────────────┤
│ Real Estate │ $1,000,000 │
└─────────────┴────────────┘

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬───────────────────┬─────────┬─────────┬─────────────┬──────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │ Note       │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.36      │ 161     │ 0       │ 0           │ 5,000,000    │ Binance 7  │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 1,202,147.48      │ 0       │ 0       │ 0           │ 50,000,000   │ Binance 8  │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,780,839.97      │ 100     │ 0       │ 292,409     │ 9,500,000    │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 235.79            │ 1.29    │ 490.99  │ 0           │ 0            │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │ Total                                      │ 4,979,231.6       │ 262.29  │ 490.99  │ 292,409     │ 64,500,000   │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │                                            │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │ Total Value                                │ $9,832,239,683.61 │ $262.81 │ $490.99 │ $292,701.41 │ $512,130,000 │            │
└──────────┴────────────────────────────────────────────┴───────────────────┴─────────┴─────────┴─────────────┴──────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌─────────────┬───────────────────┬─────────┬─────────┬─────────────┬──────────────┐
│ Ledger      │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Binance     │ 3,198,155.84      │ 161     │ 0       │ 0           │ 55,000,000   │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Kraken      │ 1,780,839.97      │ 100     │ 0       │ 292,409     │ 9,500,000    │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Coinbase    │ 235.79            │ 1.29    │ 490.99  │ 0           │ 0            │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Total       │ 4,979,231.6       │ 262.29  │ 490.99  │ 292,409     │ 64,500,000   │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│             │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Total Value │ $9,832,239,683.61 │ $262.81 │ $490.99 │ $292,701.41 │ $512,130,000 │
└─────────────┴───────────────────┴─────────┴─────────┴─────────────┴──────────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┬────────────┐
│ Name        │ Quantity │ Price      │ Value      │
├─────────────┼──────────┼────────────┼────────────┤
│ Gold        │ 100      │ $2,018.25  │ $201,825   │
├─────────────┼──────────┼────────────┼────────────┤
│ Real Estate │ 1        │ $1,000,000 │ $1,000,000 │
└─────────────┴──────────┴────────────┴────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌─────────────┬─────────────┬────────────────────┬──────────────────┐
│ Name        │ Amount      │ Value              │ % of Total Value │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ ETH         │ 4,979,231.6 │ $9,832,239,683.61  │ 95.0355          │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ USDT        │ 262.29      │ $262.81            │ 0.00000254029    │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ USDC        │ 490.99      │ $490.99            │ 0.00000474576    │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ DAI         │ 292,409     │ $292,701.41        │ 0.00282916       │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ LINK        │ 64,500,000  │ $512,130,000       │ 4.95009          │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ Gold        │ 100         │ $201,825           │ 0.00195078       │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│ Real Estate │ 1           │ $1,000,000         │ 0.00966570       │
├─────────────┼─────────────┼────────────────────┼──────────────────┤
│             │ Total Value │ $10,345,864,963.83 │                  │
└─────────────┴─────────────┴────────────────────┴──────────────────┘

You can also add assets priced in tokens. Please note that the token should have been added via the add-token command:

crypto-watcher add-asset --name CDP --quantity 123 --unit-price 1 --symbol ETH

? Enter password [hidden]

Added 123 units of CDP at the price of 1 ETH per unit
crypto-watcher add-asset --name wUSDC --quantity 1000 --unit-price 2 --symbol USDC

? Enter password [hidden]

Added 1000 units of wUSDC at the price of 2 USDC per unit

You can check and verify that the new assets are now part of the configuration:

crypto-watcher show

? Enter password [hidden]

Configuration
‾‾‾‾‾‾‾‾‾‾‾‾‾
Ledgers
‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬────────────┐
│ Ledger   │ Address                                    │ Note       │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ Binance 7  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ Binance 8  │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │            │
├──────────┼────────────────────────────────────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ Coinbase 1 │
└──────────┴────────────────────────────────────────────┴────────────┘

Tokens
‾‾‾‾‾‾
┌────────┬────────────────────────────────────────────┬──────────┐
│ Symbol │ Address                                    │ Decimals │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDT   │ 0xdAC17F958D2ee523a2206206994597C13D831ec7 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ USDC   │ 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 │ 6        │
├────────┼────────────────────────────────────────────┼──────────┤
│ DAI    │ 0x6B175474E89094C44Da98b954EedeAC495271d0F │ 18       │
├────────┼────────────────────────────────────────────┼──────────┤
│ LINK   │ 0x514910771AF9Ca656af840dff83E8264EcF986CA │ 18       │
└────────┴────────────────────────────────────────────┴──────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┐
│ Name        │ Quantity │ Price      │
├─────────────┼──────────┼────────────┤
│ Gold        │ 100      │ $2,018.25  │
├─────────────┼──────────┼────────────┤
│ Real Estate │ 1        │ $1,000,000 │
├─────────────┼──────────┼────────────┤
│ CDP         │ 123      │ 1 ETH      │
├─────────────┼──────────┼────────────┤
│ wUSDC       │ 1,000    │ 2 USDC     │
└─────────────┴──────────┴────────────┘

You can also see that asset amounts are aggregated as well:

crypto-watcher query -p -v

? Enter password [hidden]

Finished | ████████████████████████████████████████ 100% | ETA: 0s | 4/4

Prices
‾‾‾‾‾‾
┌─────────────┬────────────┐
│ Symbol      │ Price      │
├─────────────┼────────────┤
│ ETH         │ $1,974.65  │
├─────────────┼────────────┤
│ USDT        │ $1.002     │
├─────────────┼────────────┤
│ USDC        │ $1         │
├─────────────┼────────────┤
│ DAI         │ $1.001     │
├─────────────┼────────────┤
│ LINK        │ $7.94      │
├─────────────┼────────────┤
│ Gold        │ $2,018.25  │
├─────────────┼────────────┤
│ Real Estate │ $1,000,000 │
├─────────────┼────────────┤
│ CDP         │ $1,974.65  │
├─────────────┼────────────┤
│ wUSDC       │ $2         │
└─────────────┴────────────┘

Addresses
‾‾‾‾‾‾‾‾‾
┌──────────┬────────────────────────────────────────────┬───────────────────┬─────────┬─────────┬─────────────┬──────────────┬────────────┐
│ Ledger   │ Address                                    │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │ Note       │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Binance  │ 0xBE0eB53F46cd790Cd13851d5EFf43D12404d33E8 │ 1,996,008.36      │ 161     │ 0       │ 0           │ 5,000,000    │ Binance 7  │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Binance  │ 0xF977814e90dA44bFA03b6295A0616a897441aceC │ 1,202,147.48      │ 0       │ 0       │ 0           │ 50,000,000   │ Binance 8  │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Kraken   │ 0xDA9dfA130Df4dE4673b89022EE50ff26f6EA73Cf │ 1,780,839.97      │ 100     │ 0       │ 292,409     │ 9,500,000    │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│ Coinbase │ 0x71660c4005BA85c37ccec55d0C4493E66Fe775d3 │ 237.17            │ 1.29    │ 490.99  │ 0           │ 0            │ Coinbase 1 │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │ Total                                      │ 4,979,232.99      │ 262.29  │ 490.99  │ 292,409     │ 64,500,000   │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │                                            │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │            │
├──────────┼────────────────────────────────────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┼────────────┤
│          │ Total Value                                │ $9,832,242,415.45 │ $262.81 │ $490.99 │ $292,701.41 │ $512,130,000 │            │
└──────────┴────────────────────────────────────────────┴───────────────────┴─────────┴─────────┴─────────────┴──────────────┴────────────┘

Ledgers
‾‾‾‾‾‾‾
┌─────────────┬───────────────────┬─────────┬─────────┬─────────────┬──────────────┐
│ Ledger      │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Binance     │ 3,198,155.84      │ 161     │ 0       │ 0           │ 55,000,000   │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Kraken      │ 1,780,839.97      │ 100     │ 0       │ 292,409     │ 9,500,000    │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Coinbase    │ 237.17            │ 1.29    │ 490.99  │ 0           │ 0            │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Total       │ 4,979,232.99      │ 262.29  │ 490.99  │ 292,409     │ 64,500,000   │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│             │ ETH               │ USDT    │ USDC    │ DAI         │ LINK         │
├─────────────┼───────────────────┼─────────┼─────────┼─────────────┼──────────────┤
│ Total Value │ $9,832,242,415.45 │ $262.81 │ $490.99 │ $292,701.41 │ $512,130,000 │
└─────────────┴───────────────────┴─────────┴─────────┴─────────────┴──────────────┘

Assets
‾‾‾‾‾‾
┌─────────────┬──────────┬────────────┬─────────────┐
│ Name        │ Quantity │ Price      │ Value       │
├─────────────┼──────────┼────────────┼─────────────┤
│ Gold        │ 100      │ $2,018.25  │ $201,825    │
├─────────────┼──────────┼────────────┼─────────────┤
│ Real Estate │ 1        │ $1,000,000 │ $1,000,000  │
├─────────────┼──────────┼────────────┼─────────────┤
│ CDP         │ 123      │ 1 ETH      │ $242,881.95 │
├─────────────┼──────────┼────────────┼─────────────┤
│ wUSDC       │ 1,000    │ 2 USDC     │ $2,000      │
└─────────────┴──────────┴────────────┴─────────────┘

Total Amounts
‾‾‾‾‾‾‾‾‾‾‾‾‾
┌─────────────┬──────────────┬────────────────────┬──────────────────┐
│ Name        │ Amount       │ Value              │ % of Total Value │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ ETH         │ 4,979,232.99 │ $9,832,242,415.45  │ 95.0332          │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ USDT        │ 262.29       │ $262.81            │ 0.00000254023    │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ USDC        │ 490.99       │ $490.99            │ 0.00000474565    │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ DAI         │ 292,409      │ $292,701.41        │ 0.00282910       │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ LINK        │ 64,500,000   │ $512,130,000       │ 4.94998          │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ Gold        │ 100          │ $201,825           │ 0.00195073       │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ Real Estate │ 1            │ $1,000,000         │ 0.00966547       │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ CDP         │ 123          │ $242,881.95        │ 0.00234757       │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│ wUSDC       │ 1,000        │ $2,000             │ 0.0000193309     │
├─────────────┼──────────────┼────────────────────┼──────────────────┤
│             │ Total Value  │ $10,346,112,577.61 │                  │
└─────────────┴──────────────┴────────────────────┴──────────────────┘