Socket
Socket
Sign inDemoInstall

nse-data

Package Overview
Dependencies
13
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nse-data

NSE (National Stock Exchange) - Stock & Indices Data API


Version published
Weekly downloads
11
increased by22.22%
Maintainers
1
Install size
2.52 MB
Created
Weekly downloads
 

Readme

Source

nse-data - NSE (National Stock Exchange) - Stock & Indices Data API

This package will help to get realtime & historical data from NSE

Installation

Install using 'npm'

npm install nse-data

or

Install using 'yarn'

yarn add nse-data

Usage

Import the nseData
import { nseData } from 'nse-data';
API Call
import { nseData } from 'nse-data';

nseData.marketStatus().then((value) => console.log);
Sample Response
{
  marketState: [
    {
      market: 'Capital Market',
      marketStatus: 'Closed',
      tradeDate: '21-Jun-2023',
      index: 'NIFTY 50',
      last: 18856.85,
      variation: 40.14999999999782,
      percentChange: 0.21,
      marketStatusMessage: 'Normal Market has Closed'
    },
    {
      market: 'Currency',
      marketStatus: 'Closed',
      tradeDate: '21-Jun-2023',
      index: '',
      last: '',
      variation: '',
      percentChange: '',
      marketStatusMessage: 'Market is Closed'
    },
    {
      market: 'Commodity',
      marketStatus: 'Closed',
      tradeDate: '21-Jun-2023',
      index: '',
      last: '',
      variation: '',
      percentChange: '',
      marketStatusMessage: 'Market is Closed'
    },
    {
      market: 'Debt',
      marketStatus: 'Closed',
      tradeDate: '21-Jun-2023',
      index: '',
      last: '',
      variation: '',
      percentChange: '',
      marketStatusMessage: 'Market is Closed'
    },
    {
      market: 'currencyfuture',
      marketStatus: 'Closed',
      tradeDate: '21-Jun-2023',
      index: '',
      last: '82.0150',
      variation: '',
      percentChange: '',
      marketStatusMessage: 'Market is Closed',
      expiryDate: '23-Jun-2023',
      underlying: 'USDINR',
      tradeDateFormatted: '21-Jun-2023'
    }
  ]
}

All APIs

  1. marketStatus
  2. searchSymbol
  3. equityHistory
  4. equityInfo
  5. equityOptionChain
  6. equityQuote
  7. indexDetails
  8. indexInfo
  9. indexList
  10. indexOptionChain

Keywords

FAQs

Last updated on 22 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc