1.2.0 ā€¢ Published 4 years ago

@lutra-labs/stock-exchange-symbol-info v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Stock Exchange Symbols

šŸ“ˆ Fetch and get details of symbols from nasdaq, nyse and amex.

Usage

API

The API is exported as a module. You can access it normally using require as:

const {build, all, symbol} = require('@lutra-labs/stock-exchange-symbol-info');

Note that all the API methods return promises (They are async functions)!

APIParameters ExpectedDescription
build-Pull data from NASDAQ and store them for later use
all-Return all the available data as an object of shape: {headers: {...data about the shape of symbol data}, dict: {symbol: {...data}, ...}}
symbolsymbol - ticker symbol to get data forReturns data for the particular symbol

At the time of publishing, the headers look like:

{
    "symbol":"Symbol",
    "name":"Name",
    "lastsale":"Last Sale",
    "netchange":"Net Change",
    "pctchange":"% Change",
    "marketCap":"Market Cap",
    "country":"Country",
    "ipoyear":"IPO Year",
    "volume":"Volume",
    "sector":"Sector",
    "industry":"Industry",
    "url":"Url"
}

Initializing the Stock Data

You can either initialize the stock data manually or through an API. 1. Manual Method: Run the build script from bin using node ./bin/build.js or using npm build. 2. API: await on the build API method.s

LICENSE

MIT

Authors

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago