Historic and Real-time Indian Stock Market data from NSE (National Stock Exchange) and BSE (Bombay Stock Exchange) with CLI support.
- List all companies under NSE and BSE India along with their ISIN, Scrip Code etc.
- Fetch Real-Time NSE and BSE indice data like NIFTY50 Index and BSE Index
- Fetch Real-Time Quote (live price) for any Equity listed under NSE and BSE
- Sharewatch CLI. (Allows sharewatch to be used with any language)
Sharewatch requires Node.js v6.11.0+ to run.
$ npm install sharewatchconst NSE = require('sharewatch').NSE
let result = await NSE.equityList()OR if you want to use Promises
const NSE = require('sharewatch').NSE
NSE.equityList()
.then((result) => {
// use `result`
})
.catch((err) => {
// handle error
})const BSE = require('sharewatch').BSE
let result = await BSE.equityList()const NSE = require('sharewatch').NSE
let result = await NSE.indices()const BSE = require('sharewatch').BSE
let result = await BSE.indices()NSE quote requires the stock symbol which can be found in NSE equity list
const NSE = require('sharewatch').NSE
let result = await NSE.quote('INFY')BSE quote requires the stock scrip code which can be found in BSE equity list
const BSE = require('sharewatch').BSE
let result = await BSE.quote('500209')const BSE = require('sharewatch').BSE
let result = await BSE.quoteWithComparison('500209')const BSE = require('sharewatch').BSE
let result = await BSE.bhavcopy('2019-01-01')const NSE = require('sharewatch').NSE
let result = await NSE.bhavcopy('2019-01-01')$ sharewatch -p nse equity-list$ sharewatch -p bse equity-list$ sharewatch -p nse indices$ sharewatch -p bse indicesNSE quote requires the stock symbol which can be found in NSE equity list
$ sharewatch -p nse -c 'infy, bhel, ongc' quoteBSE quote requires the stock scrip code which can be found in BSE equity list
$ sharewatch -p bse -c '500209, 500209' quote$ sharewatch -p nse -d 2019-01-01 bhavcopy$ sharewatch -p bse -d 2019-01-01 bhavcopy