Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lutra-labs/stock-exchange-symbol-info

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lutra-labs/stock-exchange-symbol-info

Fetch and aggregate up to date lists of stocks on the NYSE, NASDAQ and AMEX, and use it as an API.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

  • Vaishnav S Menon
  • Heavily modified from Joe McCann's original repository

Keywords

FAQs

Package last updated on 26 Feb 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc