cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
3.98k stars 311 forks source link

Support duplicate Symbols #176

Closed lyricnz closed 2 years ago

lyricnz commented 2 years ago

There are a couple of duplicate symbols. Eg

        "id": "tokamak-network",
        "symbol": "ton",
        "name": "Tokamak Network",

        "id": "ton-crystal",
        "symbol": "ton",
        "name": "TON Crystal",

cointop should support this. At the moment, due to recent change to hide "duplicate" coins #130 #138 , only the first/highest-rank coin is shown.

Related issue - duplicate symbol vs name, eg:

        "id": "dogecoin",
        "symbol": "doge",
        "name": "Dogecoin",

vs
        Buff Doge Coin (DOGECOIN)
lyricnz commented 2 years ago

With the fix in #222 cointop now supports duplicate (symbol) coins.

$ ./bin/cointop holdings
           name symbol     price        holdings        balance  24h%   %holdings
Tokamak Network TON         8.72              10           87.2 -6.59       92.48
TON Crystal     TON     0.354533              20           7.09 -0.81        7.52