JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q58209F
  • License MIT

Node.js module to fetch stock halts from Nasdaq

Package Exports

  • nasdaq-halts
  • nasdaq-halts/app.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nasdaq-halts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node.js module to fetch stock halts from Nasdaq.

Installation

Install the package using npm:

npm install nasdaq-halts

After installed, import it into your project:

const nasdaq = require('nasdaq-halts');

Usage

Method checkHalt will output true or false depending on if an halt is in effect for a defined stock ticker symbol, for example:

const nasdaq = require('nasdaq-halts');
nasdaq.checkHalt('TSLA')
    .then((halted) => console.log(halted))
    .catch((err) => console.error(err));
});