DATA.md

April 9, 2020 · View on GitHub

Classes

AlphaVantage

Further documentation can be found here: https://www.alphavantage.co/documentation/

IEX

Used to interact with the IEX api. See the official documentation for more: https://iextrading.com/developer/docs/#last

Nasdaq

For use with the Nasdaq's public data repository.

News

Represents an individual news article. Static functions retrieve News objects.

Query

Find and filter securities based on certain criteria.

Stream
Yahoo

Used to interact with the Yahoo Finance API.

AlphaVantage

Further documentation can be found here: https://www.alphavantage.co/documentation/

Kind: global class

new AlphaVantage(apiKey)

Creates a new AlphaVantage instance.

ParamTypeDescription
apiKeyStringThe free API key retrieved from

alphaVantage.sectorPerformance() ⇒ Promise

Returns an array of objects showing historical and real time S&P sector performance.

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

alphaVantage.timeSeriesIntraday(symbol, interval) ⇒ Promise.<Array>

Returns an array of quotes for the equity specified, updated in real time.

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringHow long each quote should represent: 1min, 5min, 15min, 30min, 60min

alphaVantage.timeSeriesDaily(symbol, compact, adjusted) ⇒ Promise.<Array>

Returns an array of quotes for the equity specified, covering up to 20 years of historical data.

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
compactBooleanIf true, this will return the last 100 data points. If false, it will return up to 20 years of historical data.
adjustedBooleanIf true, prices will be adjusted for split/dividend events.

alphaVantage.timeSeriesWeekly(symbol, adjusted) ⇒ Promise.<Array>

Returns an array of quotes for the equity specified, covering up to 20 years of historical data.

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
adjustedBooleanIf true, prices will be adjusted for split/dividend events.

alphaVantage.timeSeriesMonthly(symbol, adjusted) ⇒ Promise.<Array>

Returns an array of quotes for the equity specified, covering up to 20 years of historical data.

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
adjustedBooleanIf true, prices will be adjusted for split/dividend events.

alphaVantage.search(keyword) ⇒ Promise.<Array>

Returns an array of matches for the search keyword.

Kind: instance method of AlphaVantage
Author: Nicklas Laine Overgaard https://github.com/nover

ParamTypeDescription
keywordStringThe search keyword(s), e.g Microsoft or Apple

alphaVantage.sma(symbol, interval, timePeriod, seriesType, seriesType, seriesType) ⇒ Promise.<Array>

Returns an array of simple moving averages for the equity specified. https://www.investopedia.com/articles/technical/052201.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
seriesTypeStringWhat to base the SMA on: open, high, low, close
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.ema(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of exponential moving averages for the equity specified. https://www.investopedia.com/terms/e/ema.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.wma(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of weighted moving averages for the equity specified. https://www.investopedia.com/articles/technical/060401.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.dema(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of double exponential moving averages for the equity specified. http://www.investopedia.com/articles/trading/10/double-exponential-moving-average.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.dema(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of double exponential moving averages for the equity specified. http://www.investopedia.com/articles/trading/10/double-exponential-moving-average.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.tema(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of triple exponential moving averages for the equity specified. https://www.investopedia.com/terms/t/triple-exponential-moving-average.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.trima(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of triangular moving averages for the equity specified. http://www.fmlabs.com/reference/default.htm?url=TriangularMA.htm

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.kama(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of Kaufman adaptive moving averages for the equity specified. http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:kaufman_s_adaptive_moving_average

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.mama(symbol, interval, timePeriod, seriesType, fastLimit, slowLimit) ⇒ Promise.<Array>

Returns an array of MESA adaptive moving averages for the equity specified. http://www.binarytribune.com/forex-trading-indicators/ehlers-mesa-adaptive-moving-average

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
fastLimitNumber
slowLimitNumber

alphaVantage.t3(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of T3 values for the equity specified. http://www.fmlabs.com/reference/default.htm?url=T3.htm

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.macd(symbol, interval, timePeriod, seriesType, fastPeriod, slowPeriod, signalPeriod) ⇒ Promise.<Array>

Returns an array of moving average convergence / divergence values for the equity specified. http://www.investopedia.com/articles/forex/05/macddiverge.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
fastPeriodNumber | Null
slowPeriodNumber | Null
signalPeriodNumber | Null

alphaVantage.macd(symbol, interval, timePeriod, seriesType, fastPeriod, slowPeriod, signalPeriod, fastMaType, slowMaType, signalMaType) ⇒ Promise.<Array>

Returns an array of moving average convergence / divergence values with controllable moving average type for the equity specified. http://www.investopedia.com/articles/forex/05/macddiverge.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
fastPeriodNumber | Null
slowPeriodNumber | Null
signalPeriodNumber | Null
fastMaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).
slowMaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).
signalMaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

alphaVantage.stoch(symbol, interval, timePeriod, seriesType, fastKPeriod, slowKPeriod, slowDPeriod, slowKmaType, slowDmaType) ⇒ Promise.<Array>

Returns an array of stochastic oscillators for the equity specified. http://www.investopedia.com/university/indicator_oscillator/ind_osc8.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
fastKPeriodNumber | Null
slowKPeriodNumber | Null
slowDPeriodNumber | Null
slowKmaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).
slowDmaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

alphaVantage.stochf(symbol, interval, timePeriod, seriesType, fastKPeriod, fastDPeriod, fastDmaType) ⇒ Promise.<Array>

Returns an array of stochastic fast oscillators for the equity specified. http://www.investopedia.com/university/indicator_oscillator/ind_osc8.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
fastKPeriodNumber | Null
fastDPeriodNumber | Null
fastDmaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

alphaVantage.rsi(symbol, interval, timePeriod, seriesType) ⇒ Promise.<Array>

Returns an array of relative strength index values for the equity specified. http://www.investopedia.com/articles/technical/071601.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close

alphaVantage.stochRSI(symbol, interval, timePeriod, seriesType, fastKPeriod, fastDPeriod, fastDmaType) ⇒ Promise.<Array>

Returns an array of stochastic relative strength index values for the equity specified. http://www.fmlabs.com/reference/default.htm?url=StochRSI.htm

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.
seriesTypeStringWhat to base the SMA on: open, high, low, close
fastKPeriodNumber | Null
fastDPeriodNumber | Null
fastDmaTypeNumber | NullIntegers 0 - 8 are accepted with the following mappings: 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

alphaVantage.bbands(symbol, interval, timePeriod, seriesType, nbdevup, nbdevdn, matype) ⇒ Promise.<Array>

Returns an array of bollinger bands for the equity specified. https://www.investopedia.com/articles/technical/04/030304.asp

Kind: instance method of AlphaVantage
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolString
intervalStringTime interval between two consecutive data points in the time series. The following values are supported: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each BBANDS value. Positive integers are accepted (e.g., time_period=60, time_period=200)
seriesTypeStringThe desired price type in the time series. Four types are supported: close, open, high, low
nbdevupNumber | NullThe standard deviation multiplier of the upper band. Positive integers are accepted. By default, nbdevup=2.
nbdevdnNumber | NullThe standard deviation multiplier of the lower band. Positive integers are accepted. By default, nbdevdn=2.
matypeNumber | NullMoving average type of the time series. By default, matype=0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

alphaVantage.minus_di(symbol, interval, timePeriod) ⇒ Promise.<Array>

This API returns the minus directional indicator (MINUS_DI) values http://www.investopedia.com/articles/technical/02/050602.asp

Kind: instance method of AlphaVantage
Author: Colin Gillingham https://github.com/Gillinghammer

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.

alphaVantage.plus_di(symbol, interval, timePeriod) ⇒ Promise.<Array>

This API returns the plus directional indicator (PLUS_DI) values http://www.investopedia.com/articles/technical/02/050602.asp

Kind: instance method of AlphaVantage
Author: Colin Gillingham https://github.com/Gillinghammer

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each moving average value. Positive integers are accepted.

alphaVantage.adx(symbol, interval, timePeriod) ⇒ Promise.<Array>

This API returns the average directional movement index (ADX) values http://www.investopedia.com/articles/trading/07/adx-trend-indicator.as

Kind: instance method of AlphaVantage
Author: Colin Gillingham https://github.com/Gillinghammer

ParamTypeDescription
symbolString
intervalStringTime between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly
timePeriodNumberNumber of data points used to calculate each ADX value. Positive integers are accepted

IEX

Used to interact with the IEX api. See the official documentation for more: https://iextrading.com/developer/docs/#last

Kind: global class

IEX.getMarket() ⇒ Promise.<Market>

Returns a market object.

Kind: static method of IEX
Author: Colin Gillingham https://github.com/Gillinghammer

IEX.getQuote(symbol) ⇒ Promise.<Quote>

Returns a quote object for the given symbol.

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getBatchQuotes(symbolArray) ⇒ Promise.<Array.<Quote>>

Returns an array of quote objects for the given symbols.

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
symbolArrayArray.<String>An array of symbols to query

IEX.getCompanyDetails(symbol) ⇒ Promise.<Object>

Returns an object containing data on the given company. https://iextrading.com/developer/docs/#company

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getDividends(symbol) ⇒ Promise.<Object>

Returns an object containing data on dividends issued by the given company. https://iextrading.com/developer/docs/#dividends

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getEarnings(symbol) ⇒ Promise.<Object>

Returns an object containing data on the four most recent earnings reports by the given company. https://iextrading.com/developer/docs/#earnings

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getFinancials(symbol) ⇒ Promise.<Object>

Returns an object containing data on the given company's income statement, balance sheet, and cash flow from the four most recent reported quarters. https://iextrading.com/developer/docs/#financials

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getStats(symbol) ⇒ Promise.<Object>

Returns an object containing data on the given company's market cap, beta, 52-week high & low, change, short intereste, dividend rate, float, EBITDA, cash, and more. https://iextrading.com/developer/docs/#key-stats

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getLogo(symbol) ⇒ Promise.<String>

Returns a string containing a URL endpoint with the given company's logo. https://iextrading.com/developer/docs/#logo

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getNews(symbol) ⇒ Promise.<Array.<News>>

Returns an array of news objects for the given symbol. https://iextrading.com/developer/docs/#logo

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getPeers(symbol) ⇒ Promise.<Array.<String>>

Returns an array of peer tickers as defined by IEX. https://iextrading.com/developer/docs/#peers

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getSplits(symbol) ⇒ Promise.<Object>

Returns an object containing data on stock splits issued by the given company. https://iextrading.com/developer/docs/#dividends

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getVolumeByVenue(symbol) ⇒ Promise.<Array.<String>>

This returns 15 minute delayed and 30 day average consolidated volume percentage of a stock, by market. This call will always return 13 values, and will be sorted in ascending order by current day trading volume percentage. https://iextrading.com/developer/docs/#volume-by-venue

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

IEX.getAllSymbols() ⇒ Promise.<Array.<Object>>

Returns an array of symbols IEX supports for trading. https://iextrading.com/developer/docs/#symbols

Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn

Nasdaq

For use with the Nasdaq's public data repository.

Kind: global class

Nasdaq.getListings() ⇒ Promise.<Array.<Object>>

Returns an array of objects with details on Nasdaq listed equities.

Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn

Nasdaq.getTraded() ⇒ Promise.<Array.<Object>>

Returns an array of objects with details on Nasdaq traded equities.

Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn

Nasdaq.getOtherListings() ⇒ Promise.<Array.<Object>>

Returns an array of objects with details on other equities.

Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn

Nasdaq.getOTCListings() ⇒ Promise.<Array.<Object>>

Returns an array of objects with details on OTC traded equities.

Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn

Nasdaq.getByName(string) ⇒ Promise.<Array.<Object>>

Returns an array of objects with details on equities whose name matchs the given filter.

Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn

ParamType
stringString

Nasdaq.getETFs() ⇒ Promise.<Array.<String>>

Returns an array of symbols that represent exchange traded funds.

Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn

News

Represents an individual news article. Static functions retrieve News objects.

Kind: global class

new News(object)

Creates a new News instance.

Param
object

news.getArticle() ⇒ Promise.<String>

Using the URL provided for the news article, this will return the contents of that page.

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

news.getTitle() ⇒ String

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

news.getDescription() ⇒ String

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

news.getDate() ⇒ Date

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

news.getSource() ⇒ String

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

news.getAuthor() ⇒ String

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

news.getURL() ⇒ String

Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn

News.getFromYahoo(symbol) ⇒ Promise.<Array>

Returns an array of News objects for the given symbol.

Kind: static method of News
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

News.getAll(apiKey, object)

Search through millions of articles from over 30,000 large and small news sources and blogs. This includes breaking news as well as lesser articles. Returns an array of News objects for the given symbol from News API.

Kind: static method of News
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
apiKeyStringYour News API key, found for free here: https://newsapi.org/register
objectObjectFurther documentation can be found here: https://newsapi.org/docs/endpoints/everything

Properties

NameTypeDescription
qStringKeywords or phrases to search for.
sourcesStringA comma-separated string of identifiers (maximum 20) for the news sources or blogs you want headlines from.
domainsStringA comma-separated string of domains (eg bbc.co.uk, techcrunch.com, engadget.com) to restrict the search to.
fromDateA date and optional time for the oldest article allowed.
toDateA date and optional time for the newest article allowed.
languageStringPossible options: 'ar,' 'de,' 'en,' 'es,' 'fr,' 'he,' 'it,' 'nl,' 'no,' 'pt,' 'ru,' 'se,' 'ud,' 'zh'
sortByStringPossible options: 'relevancy,' 'popularity,' 'publishedAt'
pageSizeNumberThe number of results to return per page. 20 is the default, 100 is the maximum.
pageNumberUse this to page through the results.

News.getHeadlines(apiKey, object)

This endpoint provides live top and breaking headlines for a country, specific category in a country, single source, or multiple sources. You can also search with keywords. Articles are sorted by the earliest date published first. Returns an array of News objects for the given symbol from News API.

Kind: static method of News
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
apiKeyStringYour News API key, found for free here: https://newsapi.org/register
objectObjectFurther documentation can be found here: https://newsapi.org/docs/endpoints/top-headlines

Properties

NameTypeDescription
qStringKeywords or phrases to search for.
categoryStringPossible options: 'business,' 'entertainment,' 'general,' 'health,' 'science,' 'sports,' 'technology' (Cannot be mixed with sources parameter)
countryStringThe 2-letter ISO 3166-1 code of the country you want to get headlines for. (Cannot be mixed with sources parameter)
sourcesStringA comma-separated string of identifiers (maximum 20) for the news sources or blogs you want headlines from. (Cannot be mixed with country parameter)
pageSizeNumberThe number of results to return per page. 20 is the default, 100 is the maximum.
pageNumberUse this to page through the results.

Query

Find and filter securities based on certain criteria.

Kind: global class

Query.search(string) ⇒ Promise.<Array>

Searches for a given symbol based on the given string.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamTypeDescription
stringStringSearch query.

Query.getTopGainers(count) ⇒ Promise.<Array>

Returns an array of quotes for the best performing 'x' amount of stocks.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
countNumber

Query.getTopLosers(count) ⇒ Promise.<Array>

Returns an array of quotes for the worst performing 'x' amount of stocks.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
countNumber

Query.getHighestVolume(count) ⇒ Promise.<Array>

Returns an array of quotes for 'x' amount of stocks with the highest volume today.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
countNumber

Query.getHighestOpenInterest(count) ⇒ Promise.<Array>

Returns an array of quotes for options with the highest open interest.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
countNumber

Query.getTopETFs(count) ⇒ Promise.<Array>

Returns an array of quotes for the most actively traded ETFs.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
countNumber

Query.getSimilar(symbol) ⇒ Promise.<Array>

Returns an array of equities similar to the one given.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

Query.getTrendingSymbols(count) ⇒ Promise.<Array>

Returns an array of 'x' amount of trending symbols on Yahoo Finance.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
countNumber

Query.getEarnings(days) ⇒ Promise.<Array>

Returns an array of objects with information on companies that are reporting earnings within 'x' number of days, along with estimates and call URLs.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
daysNumber

Query.getEarningsBySymbol(symbol) ⇒ Promise.<Object>

Returns an object containing this company's past and future earnings data.

Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString

Stream

Kind: global class
Author: Torrey Leonard https://github.com/Ladinn
Properties

NameTypeDescription
iexBooleanWhether to include real time IEX data in stream
iexTypeStringWhich endpoint to use for IEX stream (tops, last, hist, deep, book, etc. See: https://iextrading.com/developer/docs/#iex-market-data)
newsBooleanWhether to include news headlines in the stream.
allHeadlinesBooleanIf true, all U.S. business headlines will be sent in the stream. If false, only news pertaining to the given symbols will be outputted.
newsApiKeyStringIf 'includeNews' is yes, this should be your API key from https://newsapi.org/register.

new Stream(symbols, options)

Creates a new Stream class.

ParamType
symbolsArray
optionsObject | Null

stream.start()

Start the streaming class.

Kind: instance method of Stream
Author: Torrey Leonard https://github.com/Ladinn

stream.stop()

Stop the streaming class.

Kind: instance method of Stream
Author: Torrey Leonard https://github.com/Ladinn
Author: Wyatt Calandro https://github.com/wclandro

"iex"

An extension of the Node.js EventEmitter that sends Quote and News objects as they arrive.

Kind: event emitted by Stream

Yahoo

Used to interact with the Yahoo Finance API.

Kind: global class

Yahoo.getQuotes

Kind: static class of Yahoo
Author: Torrey Leonard https://github.com/Ladinn

new Yahoo.getQuotes(symbol, range, interval, extended)

Returns an array of Quote objects from Yahoo Finance.

ParamTypeDescription
symbolString
rangeStringHow far back to retrieve data: [1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max]
intervalStringHow long each quote should represent: [1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo]
extendedBooleanWhether to include data from extended trading hours.

Yahoo.getOptionsChain(symbol) ⇒ Promise.<OptionsChain>

Returns a new OptionsChain object with data from Yahoo Finance.

Kind: static method of Yahoo
Author: Torrey Leonard https://github.com/Ladinn

ParamType
symbolString