1.0.0 • Published 3 years ago

tickers-halts v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

��# tickers-and-halts

Fetch all current trading halts and all listed stock tickers (NYSE, NASDAQ, AMEX).

Usage

npm i tickers-halts

Fetch all current trading halts:

const {getHaltedAll} = require('tickers-and-halts');
const halts = getHaltedAll().then(response => console.log(response));

Fetch only tickers halted today (currently halted and already resumed tickers):

const {getHaltedToday} = require('tickers-and-halts');
const halts = getHaltedToday().then(response => console.log(response));

Fetch only tickers halted today and not resumed yet:

const {getHaltedNow} = require('tickers-and-halts');
const halts = getHaltedNow().then(response => console.log(response));

Fetch an array of objects containing all listed tickers:

const {getTickers} = require('tickers-and-halts');
const tickers       = getTickers().then(response => console.log(response));
const tickersAmex   = getTickers('AMEX').then(response => console.log(response));
const tickersNyse   = getTickers('NYSE').then(response => console.log(response));
const tickersNasdaq = getTickers('NASDAQ').then(response => console.log(response));

Fetch all listed tickers and save it to txt file:

const {saveTickersToTxt} = require('tickers-and-halts');
const tickers = saveTickersToTxt().then(response => console.log(response));

Fetch all listed tickers and save it to csv file:

const {saveTickersToCsv} = require('tickers-and-halts');
const tickers = saveTickersToCsv().then(response => console.log(response));