A simple console program that taps into the Nepal Rastra Bank's Foreign Exchange Rates API, providing real-time data on currency buy and sell rates directly to the console. Say NO! to googling 1 USD to NPR every one and then 😅.
Before you begin, make sure you have the cargo installed in your system.
To get started follow below steps:
-
Clone this repository to your local machine:
git clone git@github.com:shivajichalise/forex.git cd forex
-
Build the program:
cargo build
-
Copy the program to a location in your $PATH:
cp target/debug/forex ~/usr/local/bin/forex
forex -f <iso3 currency code> -a <amount>
OR
forex --from <iso3 currency code> --amount <amount>
OR
forex --from <iso3 currency code> // by default amount is set to 1
forex -f usd
forex -f aud -a 50
Available currencies are:
- Indian Rupee (INR)
- U.S. Dollar (USD)
- European Euro (EUR)
- UK Pound Sterling (GBP)
- Swiss Franc (CHF)
- Australian Dollar (AUD)
- Canadian Dollar (CAD)
- Singapore Dollar (SGD)
- Japanese Yen (JPY)
- Chinese Yuan (CNY)
- Saudi Arabian Riyal (SAR)
- Qatari Riyal (QAR)
- Thai Baht (THB)
- UAE Dirham (AED)
- Malaysian Ringgit (MYR)
- South Korean Won (KRW)
- Swedish Kroner (SEK)
- Danish Kroner (DKK)
- Hong Kong Dollar (HKD)
- Kuwaity Dinar (KWD)
- Bahrain Dinar (BHD)
Star the repository on Github
Follow on Github