Gathering detailed insights and metrics for stock-nse-india
Gathering detailed insights and metrics for stock-nse-india
Gathering detailed insights and metrics for stock-nse-india
Gathering detailed insights and metrics for stock-nse-india
npm install stock-nse-india
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (97.02%)
JavaScript (2.66%)
Dockerfile (0.32%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
164 Stars
72 Commits
71 Forks
7 Watchers
18 Branches
6 Contributors
Updated on Jul 14, 2025
Latest Version
1.2.1
Package Id
stock-nse-india@1.2.1
Unpacked Size
118.21 kB
Size
20.08 kB
File Count
29
NPM Version
6.14.16
Node Version
12.22.12
Published on
Mar 24, 2025
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
20
This package will help us to get equity/index details and historical data from National Stock Exchange of India.
Please refer Documentation here.
See the Examples here
Install using 'npm'
1npm i stock-nse-india
Install using 'yarn'
1yarn add stock-nse-india
1import { NseIndia } from "stock-nse-india"; 2const nseIndia = new NseIndia() 3// To get all symbols from NSE 4nseIndia.getAllStockSymbols().then(symbols => { 5console.log(symbols) 6}) 7 8// To get equity details for specific symbol 9nseIndia.getEquityDetails('IRCTC').then(details => { 10console.log(details) 11}) 12 13// To get equity historical data for specific symbol 14const range = { 15 start: new Date("2010-01-01"), 16 end: new Date("2021-03-20") 17} 18nseIndia.getEquityHistoricalData(symbol, range).then(data => { 19 console.log(data) 20})
getDataByEndpoint - Get data by NSE API endpoints. API Endpoints list
Clone the repo locally using below command
1git clone https://github.com/hi-imcodeman/stock-nse-india.git
Goto 'stock-nse-india' folder
1cd stock-nse-india
Then install packages using 'npm' or 'yarn'
1npm install
or
1yarn
Start the application using 'npm' or 'yarn'
1npm start
or
1yarn start
Then open the URL http://localhost:3000 in browser.
For API service documentation please hit http://localhost:3000/api-docs
We can use this package in CLI.
Install for CLI
1npm i -g stock-nse-india
To get CLI help
1nseindia --help
To get market status
1nseindia
To get the current equity details of the NSE symbol
1nseindia equity IRCTC
To get the historical details of the NSE symbol
1nseindia historical IRCTC
To get the details of the indices
1nseindia index
To get the details of the specific index
1nseindia index "NIFTY AUTO"
Build and run the docker instance in local machine.
1docker build -t nseindia . && docker run --rm -d -p 3001:3001 nseindia:latest
1docker run --rm -d -p 3001:3001 imcodeman/nseindia
Open the browser and hit http://localhost:3001
For API service documentation please hit http://localhost:3001/api-docs
https://hub.docker.com/r/imcodeman/nseindia
Run the below command for testing and coverage.
1yarn test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 5/16 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More