Yakonche / rollercoin-profit-calculator

Calculator that allows you to determine which cryptocurrency is the most profitable to "mine" on the rollercoin.com website
https://rollercoin.com/?r=k2tlquen
MIT License
3 stars 0 forks source link

Addition of the choice of currency regardless of the selected language #4

Closed Yakonche closed 3 years ago

Yakonche commented 3 years ago

After selecting the language in which you want the program to be displayed, the program should display the list of all the available currencies, all in 2 columns, example :

Select a language [default - 1] : 1

_("\n Fiat Currencies :\n")
- AUD  : _("Australian Dollar")           ($)   | - BHD  : _("Bahraini Dinar")              (.د.ب)
- CAD  : _("Canadian Dollar")             ($)   | - INR  : _("Indian Rupee")                (₹)
- GBP  : _("British Pound Sterling")      (£)   | - SAR  : _("Saudi Riyal")                 (﷼)
- NZD  : _("New Zealand Dollar")          ($)   | - ZAR  : _("South African Rand")          (R)
- USD  : _("United States Dollar")        ($)   | - BMD  : _("Bermudian Dollar")            ($)
- ARS  : _("Argentine Peso")              ($)   | - CLP  : _("Chilean Peso")                ($)
- MXN  : _("Mexican Peso")                ($)   | - HKD  : _("Hong Kong Dollar")            (元)
- VEF  : _("Venezuelan Bolivar Fuerte")   (B$)  | - KWD  : _("Kuwaiti Dinar")               (د.ك)
- BRL  : _("Brazil Real")                 (R$)  | - MYR  : _("Malaysian Ringgit")           (RM)
- PHP  : _("Philippine Peso")             (₱)   | - SEK  | _("Swedish Krona")               (kr)
- RUB  : _("Russian Ruble")               (₽)   | - UAH  : _("Ukrainian Hryvnia")           (₴)
- CHF  : _("Swiss Franc")                 (CHF) | - XDR  : _("IMF Special Drawing Rights")  (SDR)
- PLN  : _("Polish Zloty")                (zł)  | - CZK  : _("Czech Koruna")                (Kč)
- TRY  : _("Turkish Lira")                (₺)   | - HUF  : _("Hungarian Forint")            (Ft)
- EUR  : _("Euro")                        (€)   | - LKR  : _("Sri Lankan Rupee")            ( ரூ
- NGN  : _("Nigerian Naira")              (₦)   | - PKR  : _("Pakistani Rupee")             (₨)
- SGD  : _("Singapore Dollar")            (S$)  | - BDT  : _("Bangladeshi Taka")            ( ৳ 
- DKK  : _("Danish Krone")                (kr.) | - ILS  : _("Israeli New Shekel")          (₪)
- MMK  : _("Burmese Kyat")                (K)   | - NOK  : _("Norwegian Krone")             (kr)
- THB  : _("Thai Baht")                   (฿)   | - VND  : _("Vietnamese đồng")             (₫/đ)
- KRW  : _("South Korean Won")            (₩)   | - IDR  : _("Indonesian Rupiah")           (Rp)
- JPY  : _("Japanese Yen")                (¥)   | - TWD  : _("New Taiwan Dollar")           (圓)
- CNY  : _("Chinese Yuan")                (¥)   |
_("\n Cryptocurrencies :\n")
- BTC  : Bitcoin                          (₿)   | - XLM  : Lumens                           (XLM)
- BNB  : Binance Coin                     (BNB) | - BCH  : Bitcoin Cash                     (Ƀ)
- LINK : Chainlink                        (LINK)| - YFI  : Yearn.finance                    (YFI)
- ETH  : Ether                            (Ξ)   | - XRP  : XRP                              (✕)
- EOS  : EOS                              (ε)   | - LTC  : Litecoin                         (Ł)
- DOT  : Polkadot                         (DOT) | - SATS : Satoshi (0,00000001 BTC)         (sat)
- BITS : Bits (100 satoshis)              (bits)|

Select a currency [default - USD] : EUR

We can see in the example that the selected currency is "EUR", and not "29" or "15", as is the case for the choice of languages. I think that it would be more practical / intuitive / ergonomic (in particular, because it would avoid seeing a list of numbers displayed before each line, which would force to re-edit each line of code to add spaces so that everything is correctly aligned)

There are also some characters (such as ₪) which cannot be displayed at the moment when the program is started, so we would have to find a way that would allow them to display correctly.

Yakonche commented 3 years ago

I add that, if, in the program, it is necessary to define a limit of the maximum number of characters for the currencies ("EUR", "USD", ect ..), it would be preferable to set it to 5 characters, and not 3 or 4, so that all currencies can be compatible, in case of future evolution of the API of coingecko.