This repository contains Nepse stocks data scrapped daily from Official Nepse Site and saved as JSON files; which can be accessed via API calls.
/data/info
: Brief info on APIs/data/companies
: Listed companies on Nepse/data/date/{{YYYY-MM-DD}}
: Daily stocks data by date/data/date/latest
: Latest data by date/data/company/{{company-code}}
: Daily data by company code
{
"Name": "Nepse daily data API",
"lastUpdatedAt": "2022-02-25 13:11:21"
}
{
"NMBD2085": {
"name": "10 % NMB DEBENTURE 2085",
"cat": "Corporate Debenture"
},
"HBLD83": {
"name": "10% Himalayan Bank Debenture 2083",
"cat": "Corporate Debenture"
},
"LBLD86": {
"name": "10% Laxmi Bank Debenture 2086",
"cat": "Corporate Debenture"
},
"NBLD82": {
"name": "10% Nabil Debenture 2082",
"cat": "Corporate Debenture"
}
}
{
"metadata": {
"totalAmt": 4293864192,
"totalQty": 8490689,
"totalTrans": 65011
},
"data": [
{
"company": {
"code": "NBLD82",
"name": "10% Nabil Debenture 2082",
"cat": "Corporate Debenture"
},
"price": {
"max": 932.2,
"min": 932.2,
"close": 932.2,
"prevClose": 950.6,
"diff": -18.4
},
"numTrans": 1,
"tradedShares": 25,
"amount": 23305
}
]
}
Nepse operates Sunday to Thursday, from 11:00 AM - 3:00 PM. Each day last 7 days' data is scraped at 10:00 AM, 3:05 PM, and 12:00(midnight). Since Nepse's server crashes frequently, scraping last 7 days' data till today, multiple times a day, seems good approach.
- Split large JSON files into smaller chunks for lighter API response
- Improve landing page
- Samaya: friendly personal dashboard on browser's new tab
We are open to any kind of suggestions and improvements. Please feel free to contribute by any means possible π