Skip to content

Console program that fetches currency rates, providing real-time data through the Nepal Rastra Bank's API

License

Notifications You must be signed in to change notification settings

shivajichalise/forex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nepal Rastra Bank Foreign Exchange Rates

Forex

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 😅.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Usage
  4. Example
  5. Self-Promotion

Prerequisites

Before you begin, make sure you have the cargo installed in your system.

Installation

To get started follow below steps:

  1. Clone this repository to your local machine:

    git clone git@github.com:shivajichalise/forex.git
    cd forex
  2. Build the program:

    cargo build
  3. Copy the program to a location in your $PATH:

    cp  target/debug/forex ~/usr/local/bin/forex

Usage

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

Example

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)

Self-Promotion

Star the repository on Github

Follow on Github

About

Console program that fetches currency rates, providing real-time data through the Nepal Rastra Bank's API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages