The Ultimate Unofficial NEPSE API for real-time Nepal Stock Exchange data.
Project description
🚀 NEPSE API Pro - The Ultimate Unofficial Nepal Stock Exchange API
NEPSE API Pro is a high-performance, ultra-comprehensive unofficial API for the Nepal Stock Exchange (NEPSE). Designed for developers, traders, and financial analysts, it provides seamless access to real-time market data, historical records, and deep market insights.
🔥 Key Features
- ⚡ Real-time Data: Live stock prices, LTP, and market status.
- 📊 Full Market Coverage: Today's Price, Indices, Sub-Indices, and Floorsheet.
- 🏢 Company Insights: Complete lists of companies, securities, and detailed market depth.
- 🔝 Performance Tracking: Top Gainers, Losers, Turnover, Volume, and Transactions.
- 🛠️ Developer First: Standardized JSON responses, Swagger UI documentation, and easy integration.
- 🛡️ Advanced Scraping: Handles complex NEPSE authentication and WASM-based token parsing automatically.
🚀 Quick Start
1. Clone the Repository
git clone https://github.com/BalochLeader/NEPSE-API.git
cd NEPSE-API
2. Install Dependencies
pip install -r requirements.txt
3. Run the Server
python main.py
The API will be live at http://localhost:8080.
📖 API Documentation
Once the server is running, visit the interactive documentation at: 👉 http://localhost:8080/docs
📍 Popular Endpoints
| Category | Endpoint | Description |
|---|---|---|
| Market | GET /api/v1/market/status |
Check if market is OPEN/CLOSED |
| Market | GET /api/v1/market/today-price |
Full Today's Price sheet |
| Market | GET /api/v1/market/live |
Real-time live stock prices |
| Indices | GET /api/v1/indices |
All NEPSE Indices |
| Performers | GET /api/v1/top/gainers |
Top 10 Gaining stocks |
| Performers | GET /api/v1/top/turnover |
Stocks with highest turnover |
| Company | GET /api/v1/companies |
Complete list of listed companies |
| Advanced | GET /api/v1/market/depth/{symbol} |
Real-time Order Book / Market Depth |
🛠️ Technical Architecture
This API is built using FastAPI for its asynchronous capabilities and speed. It utilizes a custom scraping engine that:
- Authenticates with NEPSE's servers.
- Parses dynamic salts using a WebAssembly (WASM) module (
css.wasm). - Generates valid tokens to access protected data endpoints.
- Formats raw data into clean, developer-friendly JSON.
👨💻 Developer
Gunpark
- 📸 Instagram: @gunpark_xd
- 💻 GitHub: BalochLeader
📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
⚠️ Disclaimer
This is an unofficial API. It is not affiliated with, maintained by, or endorsed by the Nepal Stock Exchange (NEPSE). Use this data for informational and educational purposes only. For critical financial decisions, always refer to official NEPSE sources.
🏷️ SEO & Tags
NEPSE API Nepal Stock Exchange Nepal Share Market Live Stock Prices Nepal NEPSE Scraper Nepal Finance API Python NEPSE FastAPI Real-time Market Data Nepal Investors ShareSansar Alternative NEPSE Today Price API NEPSE Floorsheet API
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file api_nepse-2.1.0.tar.gz.
File metadata
- Download URL: api_nepse-2.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f38521448090f61d7ce4b4ef22dda23b284df49b05a0f88412ac1f76b6d6894
|
|
| MD5 |
9c122c66bdf96837d45ffcb7a629a376
|
|
| BLAKE2b-256 |
dec0369a8efee790baf5f90790ad88a25318a52ab23d4284c51a7eb9eeab9d45
|
File details
Details for the file api_nepse-2.1.0-py3-none-any.whl.
File metadata
- Download URL: api_nepse-2.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a6266673f91c0dec34cfdb1c5e406f81ae7dfb7ac183d0faaf10ee94a0f567
|
|
| MD5 |
40587c42ad748c986f19ef5d64ef0de1
|
|
| BLAKE2b-256 |
f064810d675719a91e28a940cbe32f46e7fed3b935912d1055dd6a4fe721b2af
|