Gathering detailed insights and metrics for nse-js
Gathering detailed insights and metrics for nse-js
Gathering detailed insights and metrics for nse-js
Gathering detailed insights and metrics for nse-js
npm install nse-js
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
19 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jul 07, 2025
Latest Version
0.0.9
Package Id
nse-js@0.0.9
Unpacked Size
27.49 kB
Size
6.48 kB
File Count
8
NPM Version
10.1.0
Node Version
20.9.0
Published on
Oct 26, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
nse-js is a Node.js library for fetching data from the National Stock Exchange (NSE) of India. It provides various methods to retrieve market data, circulars, option chains, corporate actions, and more.
[!IMPORTANT] This module is not yet ready for production use as it's not tested on production environment.
1npm install nse-js
All requests through NSE are rate limited or throttled to 3 requests per second. This allows making large number of requests without overloading the server or getting blocked.
1const { NSE, Extras } = require('nse-js'); 2const nse = new NSE(); 3const ex = new Extras("./");
status()
Get market status.
1nse.status().then(data => console.log(data));
circulars(deptCode, fromDate, toDate)
Get NSE circulars.
deptCode
(optional): Department code.fromDate
(optional): Start date.toDate
(optional): End date.1nse.circulars().then(data => console.log(data));
blockDeals()
Get block deals.
1nse.blockDeals().then(data => console.log(data));
fnoLots()
Get the lot size of FnO stocks.
1nse.fnoLots().then(data => console.log(data));
optionChain(symbol)
Get the option chain for a symbol.
symbol
: Symbol code.1nse.optionChain('nifty').then(data => console.log(data));
maxpain(optionChain, expiryDate)
Get the max pain strike price.
optionChain
: Option chain data.expiryDate
: Expiry date.1nse.maxpain(optionChain, new Date()).then(data => console.log(data));
compileOptionChain(symbol, expiryDate)
Compile the option chain for a symbol.
symbol
: Symbol code.expiryDate
: Expiry date.1nse.compileOptionChain('nifty', new Date()).then(data => console.log(data));
advanceDecline()
Get advance decline data.
1nse.advanceDecline().then(data => console.log(data));
holidays(type)
Get NSE holidays.
type
: Type of holiday (trading or clearing).1nse.holidays('trading').then(data => console.log(data));
equityMetaInfo(symbol)
Get equity meta info.
symbol
: Symbol code.1nse.equityMetaInfo('RELIANCE').then(data => console.log(data));
quote(symbol, type, section)
Get quote data.
symbol
: Symbol code.type
: Type of quote (equity or fno).section
: Section of quote (trade_info).1nse.quote('RELIANCE').then(data => console.log(data));
equityQuote(symbol)
Get equity quote data.
symbol
: Symbol code.1nse.equityQuote('RELIANCE').then(data => console.log(data));
gainers(data, count)
Get gainers data.
data
: Data object.count
: Number of gainers to return.1nse.gainers(data).then(data => console.log(data));
losers(data, count)
Get losers data.
data
: Data object.count
: Number of losers to return.1nse.losers(data).then(data => console.log(data));
listFnoStocks()
Get list of FNO stocks.
1nse.listFnoStocks().then(data => console.log(data));
listIndices()
Get list of indices.
1nse.listIndices().then(data => console.log(data));
listIndexStocks(index)
Get list of index stocks.
index
: Index name.1nse.listIndexStocks('NIFTY 50').then(data => console.log(data));
listEtf()
Get list of ETFs.
1nse.listEtf().then(data => console.log(data));
listSme()
Get list of SMEs.
1nse.listSme().then(data => console.log(data));
listSgb()
Get list of SGBs.
1nse.listSgb().then(data => console.log(data));
listCurrentIPO()
Get list of current IPOs.
1nse.listCurrentIPO().then(data => console.log(data));
listUpcomingIPO()
Get list of upcoming IPOs.
1nse.listUpcomingIPO().then(data => console.log(data));
listPastIPO(fromDate, toDate)
Get list of past IPOs.
fromDate
: Start date.toDate
: End date.1nse.listPastIPO(new Date('2023-01-01'), new Date('2023-12-31')).then(data => console.log(data));
actions(segment, symbol, fromDate, toDate)
Get corporate actions.
segment
: Segment name.symbol
: Symbol code.fromDate
: Start date.toDate
: End date.1nse.actions('equities', 'RELIANCE', new Date('2023-01-01'), new Date('2023-12-31')).then(data => console.log(data));
announcements(index, symbol, fno, fromDate, toDate)
Get corporate announcements.
index
: Index name.symbol
: Symbol code.fno
: FNO flag.fromDate
: Start date.toDate
: End date.1nse.announcements('equities', 'RELIANCE', false, new Date('2023-01-01'), new Date('2023-12-31')).then(data => console.log(data));
boardMeetings(index, symbol, fno, fromDate, toDate)
Get board meetings.
index
: Index name.symbol
: Symbol code.fno
: FNO flag.fromDate
: Start date.toDate
: End date.1nse.boardMeetings('equities', 'RELIANCE', false, new Date('2023-01-01'), new Date('2023-12-31')).then(data => console.log(data));
equityBhavcopy(date, folder)
Get equity bhavcopy.
date
: Date.folder
: Folder path.1ex.equityBhavcopy(new Date(), './downloads').then(data => console.log(data));
deliveryBhavcopy(date, folder)
Get delivery bhavcopy.
date
: Date.folder
: Folder path.1ex.deliveryBhavcopy(new Date(), './downloads').then(data => console.log(data));
fnoBhavcopy(date, folder)
Get FNO bhavcopy.
date
: Date.folder
: Folder path.1ex.fnoBhavcopy(new Date(), './downloads').then(data => console.log(data));
prBhavcopy(date, folder)
Get PR bhavcopy.
date
: Date.folder
: Folder path.1ex.prBhavcopy(new Date(), './downloads').then(data => console.log(data));
This project is licensed under the GPL v3 License.
This project is inspired by BennyThadikaran's python version of NSE API.
No vulnerabilities found.
No security vulnerabilities found.