Skip to content

About

A modern web application that provides real-time financial and commodity market information for Nepal.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

116 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Nepal Live Rates

License: MIT HTML5 CSS3 JavaScript Node.js Express Cloudflare Pages

Nepal Live Rates is a web platform for viewing the latest available foreign exchange, bullion, fuel, aviation fuel, LPG, and crude oil rates relevant to Nepal.

Live tracking for:

πŸ’±
Forex
πŸ₯‡
Gold
πŸ₯ˆ
Silver
β›½
Petrol
πŸ›’οΈ
Diesel
πŸ”₯
LPG
πŸͺ”
Kerosene
✈️
Aviation Fuel
πŸ“ˆ
Crude Oil

Live Website

https://nepal-live-rates.pages.dev/

Backend API: https://nepal-live-rates.onrender.com

The backend may take a few seconds to respond after being idle because it is hosted on Render's free tier.


Features

  • Latest available Forex Rates (Nepal Rastra Bank)
  • Live Gold Prices
  • Live Silver Prices
  • Petrol Rates by Area
  • Diesel Rates by Area
  • LPG Cylinder Prices
  • Kerosene Rates by Area
  • Aviation Fuel Rates (Jet A-1 & Duty Free)
  • Global Crude Oil Tracking (WTI & Brent)
  • Interactive Charts
  • Historical Trends (7-day)
  • Unit Calculators
  • Area & Market Selection
  • Currency Converter
  • Official NOC LPG Documents
  • Responsive Design
  • Manual rate refresh

Screenshots

Home (Forex) Market Cards
Forex home page Market cards
Forex dashboard with live NRB exchange rates Available market cards
Chart Sample Exchange Rate Cards
Trend chart Exchange rate cards
Trend chart sample for exchange rate Currency cards with rates
Gold Gold Rates
Gold page Gold rates
Interface of gold page Live gold rates with details
Converter
Unit converter
Unit converter for gold

The eighth screenshot is available in assets/screenshots/.


Tech Stack

Layer Technologies
Frontend HTML5, CSS3, Vanilla JavaScript, Chart.js
Backend Node.js, Express.js, Axios, Cheerio
Deployment Cloudflare Pages (frontend), Render (backend)
Data Sources Nepal Rastra Bank, FENEGOSIDA, Nepal Oil Corporation, Oil-Price.net

Project Structure

Nepal-Live-Rates/
β”œβ”€β”€ assets/
β”‚   └── screenshots/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ server.js
β”‚   β”œβ”€β”€ package.json
β”‚   └── routes/
β”‚       β”œβ”€β”€ forex.js
β”‚       β”œβ”€β”€ gold.js
β”‚       β”œβ”€β”€ silver.js
β”‚       β”œβ”€β”€ petrol.js
β”‚       β”œβ”€β”€ diesel.js
β”‚       β”œβ”€β”€ lpg.js
β”‚       β”œβ”€β”€ kerosene.js
β”‚       β”œβ”€β”€ aviation.js
β”‚       └── crude.js
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ assets/flags/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   β”œβ”€β”€ style.css
β”‚   β”‚   β”œβ”€β”€ responsive.css
β”‚   β”‚   β”œβ”€β”€ about.css
β”‚   β”‚   β”œβ”€β”€ petrol.css
β”‚   β”‚   β”œβ”€β”€ diesel.css
β”‚   β”‚   β”œβ”€β”€ lpg.css
β”‚   β”‚   β”œβ”€β”€ kerosene.css
β”‚   β”‚   β”œβ”€β”€ aviation.css
β”‚   β”‚   β”œβ”€β”€ crude.css
β”‚   β”‚   └── silver.css
β”‚   β”œβ”€β”€ js/
β”‚   β”‚   β”œβ”€β”€ script.js
β”‚   β”‚   β”œβ”€β”€ common.js
β”‚   β”‚   β”œβ”€β”€ gold.js
β”‚   β”‚   β”œβ”€β”€ silver.js
β”‚   β”‚   β”œβ”€β”€ petrol.js
β”‚   β”‚   β”œβ”€β”€ diesel.js
β”‚   β”‚   β”œβ”€β”€ lpg.js
β”‚   β”‚   β”œβ”€β”€ kerosene.js
β”‚   β”‚   β”œβ”€β”€ aviation.js
β”‚   β”‚   β”œβ”€β”€ crude.js
β”‚   β”‚   └── about.js
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ gold.html
β”‚   β”œβ”€β”€ silver.html
β”‚   β”œβ”€β”€ petrol.html
β”‚   β”œβ”€β”€ diesel.html
β”‚   β”œβ”€β”€ lpg.html
β”‚   β”œβ”€β”€ kerosene.html
β”‚   β”œβ”€β”€ aviation.html
β”‚   β”œβ”€β”€ crude.html
β”‚   β”œβ”€β”€ about.html
β”‚   β”œβ”€β”€ robots.txt
β”‚   └── sitemap.xml
β”œβ”€β”€ LICENSE
└── README.md

Data Freshness and Disclaimer

Rates are collected from external sources and may be delayed, unavailable, or changed when those sources update their websites or documents. The application is for informational purposes only. Verify important transactions with the original data source.

API Endpoints

Base URL: https://nepal-live-rates.onrender.com

Endpoint Description
GET /api/forex Live foreign exchange rates published by Nepal Rastra Bank (NRB).
GET /api/gold Current gold rates in tola and gram with daily change tracking.
GET /api/silver Current silver rates in tola and gram with daily change tracking.
GET /api/petrol Live petrol prices by area across Nepal (NOC).
GET /api/diesel Live diesel prices by area across Nepal (NOC).
GET /api/lpg Domestic LPG cylinder prices and official NOC document links.
GET /api/kerosene Live kerosene prices by area across Nepal (NOC).
GET /api/aviation Aviation fuel rates including Jet A-1 and duty-free by area.
GET /api/crude Global crude oil prices for WTI and Brent markets.

History endpoints such as /api/gold/history and /api/forex/history/:currency are also available for chart data. LPG document data is available from /api/lpg/documents.

API Example

curl https://nepal-live-rates.onrender.com/api/forex

Installation

Prerequisites

  • Node.js 18 or newer
  • npm
  • A static file server for the frontend

Clone Repository

git clone https://github.com/pradipNP/nepal-live-rates.git
cd nepal-live-rates

Install Backend Dependencies

cd backend
npm install

Start Backend Server

npm start

Local API: http://localhost:5001/api/forex

In a second terminal, from the repository root, serve the frontend with a static file server:

npx serve frontend

The frontend currently requests the deployed API URL. Running the local backend does not automatically change the API URL used by the frontend scripts.

Troubleshooting

  • If the deployed API is slow on the first request, wait a few seconds for the Render service to wake up.
  • If a rate is unavailable, the upstream source may be temporarily unavailable or may have changed its page or document format.
  • If the frontend cannot load data locally, check the browser console and confirm that the API endpoint is reachable.
  • The backend listens on the PORT environment variable when provided; otherwise it uses port 5001.

Contributing

Bug reports, source-data issues, and feature suggestions are welcome. For code changes, open an issue first for larger changes, then submit a pull request with a clear description and screenshots when the user interface is affected.


License

This project is licensed under the MIT License.


Author

Pradip Kumar Prajapati

GitHub: pradipNP


⭐ If you find this project useful, consider starring the repository.

About

A modern web application that provides real-time financial and commodity market information for Nepal.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages