- 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.
Further documentation can be found here: https://www.alphavantage.co/documentation/
Kind: global class
- AlphaVantage
- new AlphaVantage(apiKey)
- .sectorPerformance() ⇒
Promise
- .timeSeriesIntraday(symbol, interval) ⇒
Promise.<Array>
- .timeSeriesDaily(symbol, compact, adjusted) ⇒
Promise.<Array>
- .timeSeriesWeekly(symbol, adjusted) ⇒
Promise.<Array>
- .timeSeriesMonthly(symbol, adjusted) ⇒
Promise.<Array>
- .search(keyword) ⇒
Promise.<Array>
- .sma(symbol, interval, timePeriod, seriesType, seriesType, seriesType) ⇒
Promise.<Array>
- .ema(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .wma(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .dema(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .dema(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .tema(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .trima(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .kama(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .mama(symbol, interval, timePeriod, seriesType, fastLimit, slowLimit) ⇒
Promise.<Array>
- .t3(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .macd(symbol, interval, timePeriod, seriesType, fastPeriod, slowPeriod, signalPeriod) ⇒
Promise.<Array>
- .macd(symbol, interval, timePeriod, seriesType, fastPeriod, slowPeriod, signalPeriod, fastMaType, slowMaType, signalMaType) ⇒
Promise.<Array>
- .stoch(symbol, interval, timePeriod, seriesType, fastKPeriod, slowKPeriod, slowDPeriod, slowKmaType, slowDmaType) ⇒
Promise.<Array>
- .stochf(symbol, interval, timePeriod, seriesType, fastKPeriod, fastDPeriod, fastDmaType) ⇒
Promise.<Array>
- .rsi(symbol, interval, timePeriod, seriesType) ⇒
Promise.<Array>
- .stochRSI(symbol, interval, timePeriod, seriesType, fastKPeriod, fastDPeriod, fastDmaType) ⇒
Promise.<Array>
- .bbands(symbol, interval, timePeriod, seriesType, nbdevup, nbdevdn, matype) ⇒
Promise.<Array>
- .minus_di(symbol, interval, timePeriod) ⇒
Promise.<Array>
- .plus_di(symbol, interval, timePeriod) ⇒
Promise.<Array>
- .adx(symbol, interval, timePeriod) ⇒
Promise.<Array>
Creates a new AlphaVantage instance.
Param | Type | Description |
---|---|---|
apiKey | String |
The free API key retrieved from |
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
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
How long each quote should represent: 1min, 5min, 15min, 30min, 60min |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
compact | Boolean |
If true, this will return the last 100 data points. If false, it will return up to 20 years of historical data. |
adjusted | Boolean |
If true, prices will be adjusted for split/dividend events. |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
adjusted | Boolean |
If true, prices will be adjusted for split/dividend events. |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
adjusted | Boolean |
If true, prices will be adjusted for split/dividend events. |
Returns an array of matches for the search keyword.
Kind: instance method of AlphaVantage
Author: Nicklas Laine Overgaard https://github.com/nover
Param | Type | Description |
---|---|---|
keyword | String |
The 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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
seriesType | String |
What to base the SMA on: open, high, low, close |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
fastLimit | Number |
|
slowLimit | Number |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What 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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
fastPeriod | Number | Null |
|
slowPeriod | Number | Null |
|
signalPeriod | Number | 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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
fastPeriod | Number | Null |
|
slowPeriod | Number | Null |
|
signalPeriod | Number | Null |
|
fastMaType | Number | Null |
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). |
slowMaType | Number | Null |
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). |
signalMaType | Number | Null |
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.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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
fastKPeriod | Number | Null |
|
slowKPeriod | Number | Null |
|
slowDPeriod | Number | Null |
|
slowKmaType | Number | Null |
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). |
slowDmaType | Number | Null |
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.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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
fastKPeriod | Number | Null |
|
fastDPeriod | Number | Null |
|
fastDmaType | Number | Null |
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). |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What 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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
seriesType | String |
What to base the SMA on: open, high, low, close |
fastKPeriod | Number | Null |
|
fastDPeriod | Number | Null |
|
fastDmaType | Number | Null |
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.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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time interval between two consecutive data points in the time series. The following values are supported: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each BBANDS value. Positive integers are accepted (e.g., time_period=60, time_period=200) |
seriesType | String |
The desired price type in the time series. Four types are supported: close, open, high, low |
nbdevup | Number | Null |
The standard deviation multiplier of the upper band. Positive integers are accepted. By default, nbdevup=2. |
nbdevdn | Number | Null |
The standard deviation multiplier of the lower band. Positive integers are accepted. By default, nbdevdn=2. |
matype | Number | Null |
Moving 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). |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each moving average value. Positive integers are accepted. |
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
Param | Type | Description |
---|---|---|
symbol | String |
|
interval | String |
Time between two data points in the series: 1min, 5min, 15min, 30min, 60min, daily, weekly, monthly |
timePeriod | Number |
Number of data points used to calculate each ADX value. Positive integers are accepted |
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>
- .getQuote(symbol) ⇒
Promise.<Quote>
- .getBatchQuotes(symbolArray) ⇒
Promise.<Array.<Quote>>
- .getCompanyDetails(symbol) ⇒
Promise.<Object>
- .getDividends(symbol) ⇒
Promise.<Object>
- .getEarnings(symbol) ⇒
Promise.<Object>
- .getFinancials(symbol) ⇒
Promise.<Object>
- .getStats(symbol) ⇒
Promise.<Object>
- .getLogo(symbol) ⇒
Promise.<String>
- .getNews(symbol) ⇒
Promise.<Array.<News>>
- .getPeers(symbol) ⇒
Promise.<Array.<String>>
- .getSplits(symbol) ⇒
Promise.<Object>
- .getVolumeByVenue(symbol) ⇒
Promise.<Array.<String>>
- .getAllSymbols() ⇒
Promise.<Array.<Object>>
- .getMarket() ⇒
Returns a market object.
Kind: static method of IEX
Author: Colin Gillingham https://github.com/Gillinghammer
Returns a quote object for the given symbol.
Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
symbol | String |
Returns an array of quote objects for the given symbols.
Kind: static method of IEX
Author: Torrey Leonard https://github.com/Ladinn
Param | Type | Description |
---|---|---|
symbolArray | Array.<String> |
An array of symbols to query |
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
Param | Type |
---|---|
symbol | String |
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
Param | Type |
---|---|
symbol | String |
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
Param | Type |
---|---|
symbol | String |
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
Param | Type |
---|---|
symbol | String |
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
Param | Type |
---|---|
symbol | 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
Param | Type |
---|---|
symbol | String |
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
Param | Type |
---|---|
symbol | 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
Param | Type |
---|---|
symbol | String |
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
Param | Type |
---|---|
symbol | 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
Param | Type |
---|---|
symbol | String |
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
For use with the Nasdaq's public data repository.
Kind: global class
- Nasdaq
- .getListings() ⇒
Promise.<Array.<Object>>
- .getTraded() ⇒
Promise.<Array.<Object>>
- .getOtherListings() ⇒
Promise.<Array.<Object>>
- .getOTCListings() ⇒
Promise.<Array.<Object>>
- .getByName(string) ⇒
Promise.<Array.<Object>>
- .getETFs() ⇒
Promise.<Array.<String>>
- .getListings() ⇒
Returns an array of objects with details on Nasdaq listed equities.
Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn
Returns an array of objects with details on Nasdaq traded equities.
Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn
Returns an array of objects with details on other equities.
Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn
Returns an array of objects with details on OTC traded equities.
Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn
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
Param | Type |
---|---|
string | String |
Returns an array of symbols that represent exchange traded funds.
Kind: static method of Nasdaq
Author: Torrey Leonard https://github.com/Ladinn
Represents an individual news article. Static functions retrieve News objects.
Kind: global class
- News
- new News(object)
- instance
- .getArticle() ⇒
Promise.<String>
- .getTitle() ⇒
String
- .getDescription() ⇒
String
- .getDate() ⇒
Date
- .getSource() ⇒
String
- .getAuthor() ⇒
String
- .getURL() ⇒
String
- .getArticle() ⇒
- static
- .getFromYahoo(symbol) ⇒
Promise.<Array>
- .getAll(apiKey, object)
- .getHeadlines(apiKey, object)
- .getFromYahoo(symbol) ⇒
Creates a new News instance.
Param |
---|
object |
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
Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn
Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn
Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn
Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn
Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn
Kind: instance method of News
Author: Torrey Leonard https://github.com/Ladinn
Returns an array of News objects for the given symbol.
Kind: static method of News
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
symbol | String |
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
Param | Type | Description |
---|---|---|
apiKey | String |
Your News API key, found for free here: https://newsapi.org/register |
object | Object |
Further documentation can be found here: https://newsapi.org/docs/endpoints/everything |
Properties
Name | Type | Description |
---|---|---|
q | String |
Keywords or phrases to search for. |
sources | String |
A comma-separated string of identifiers (maximum 20) for the news sources or blogs you want headlines from. |
domains | String |
A comma-separated string of domains (eg bbc.co.uk, techcrunch.com, engadget.com) to restrict the search to. |
from | Date |
A date and optional time for the oldest article allowed. |
to | Date |
A date and optional time for the newest article allowed. |
language | String |
Possible options: 'ar,' 'de,' 'en,' 'es,' 'fr,' 'he,' 'it,' 'nl,' 'no,' 'pt,' 'ru,' 'se,' 'ud,' 'zh' |
sortBy | String |
Possible options: 'relevancy,' 'popularity,' 'publishedAt' |
pageSize | Number |
The number of results to return per page. 20 is the default, 100 is the maximum. |
page | Number |
Use this to page through the results. |
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
Param | Type | Description |
---|---|---|
apiKey | String |
Your News API key, found for free here: https://newsapi.org/register |
object | Object |
Further documentation can be found here: https://newsapi.org/docs/endpoints/top-headlines |
Properties
Name | Type | Description |
---|---|---|
q | String |
Keywords or phrases to search for. |
category | String |
Possible options: 'business,' 'entertainment,' 'general,' 'health,' 'science,' 'sports,' 'technology' (Cannot be mixed with sources parameter) |
country | String |
The 2-letter ISO 3166-1 code of the country you want to get headlines for. (Cannot be mixed with sources parameter) |
sources | String |
A comma-separated string of identifiers (maximum 20) for the news sources or blogs you want headlines from. (Cannot be mixed with country parameter) |
pageSize | Number |
The number of results to return per page. 20 is the default, 100 is the maximum. |
page | Number |
Use this to page through the results. |
Find and filter securities based on certain criteria.
Kind: global class
- Query
- .search(string) ⇒
Promise.<Array>
- .getTopGainers(count) ⇒
Promise.<Array>
- .getTopLosers(count) ⇒
Promise.<Array>
- .getHighestVolume(count) ⇒
Promise.<Array>
- .getHighestOpenInterest(count) ⇒
Promise.<Array>
- .getTopETFs(count) ⇒
Promise.<Array>
- .getSimilar(symbol) ⇒
Promise.<Array>
- .getTrendingSymbols(count) ⇒
Promise.<Array>
- .getEarnings(days) ⇒
Promise.<Array>
- .getEarningsBySymbol(symbol) ⇒
Promise.<Object>
- .search(string) ⇒
Searches for a given symbol based on the given string.
Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn
Param | Type | Description |
---|---|---|
string | String |
Search query. |
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
Param | Type |
---|---|
count | Number |
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
Param | Type |
---|---|
count | Number |
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
Param | Type |
---|---|
count | Number |
Returns an array of quotes for options with the highest open interest.
Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
count | Number |
Returns an array of quotes for the most actively traded ETFs.
Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
count | Number |
Returns an array of equities similar to the one given.
Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
symbol | String |
Returns an array of 'x' amount of trending symbols on Yahoo Finance.
Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
count | Number |
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
Param | Type |
---|---|
days | Number |
Returns an object containing this company's past and future earnings data.
Kind: static method of Query
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
symbol | String |
Kind: global class
Author: Torrey Leonard https://github.com/Ladinn
Properties
Name | Type | Description |
---|---|---|
iex | Boolean |
Whether to include real time IEX data in stream |
iexType | String |
Which endpoint to use for IEX stream (tops, last, hist, deep, book, etc. See: https://iextrading.com/developer/docs/#iex-market-data) |
news | Boolean |
Whether to include news headlines in the stream. |
allHeadlines | Boolean |
If true, all U.S. business headlines will be sent in the stream. If false, only news pertaining to the given symbols will be outputted. |
newsApiKey | String |
If 'includeNews' is yes, this should be your API key from https://newsapi.org/register. |
Creates a new Stream class.
Param | Type |
---|---|
symbols | Array |
options | Object | Null |
Start the streaming class.
Kind: instance method of Stream
Author: Torrey Leonard https://github.com/Ladinn
Stop the streaming class.
Kind: instance method of Stream
Author: Torrey Leonard https://github.com/Ladinn
Author: Wyatt Calandro https://github.com/wclandro
An extension of the Node.js EventEmitter that sends Quote and News objects as they arrive.
Kind: event emitted by Stream
Used to interact with the Yahoo Finance API.
Kind: global class
- Yahoo
- .getQuotes
- .getOptionsChain(symbol) ⇒
Promise.<OptionsChain>
Kind: static class of Yahoo
Author: Torrey Leonard https://github.com/Ladinn
Returns an array of Quote objects from Yahoo Finance.
Param | Type | Description |
---|---|---|
symbol | String |
|
range | String |
How far back to retrieve data: [1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max] |
interval | String |
How long each quote should represent: [1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo] |
extended | Boolean |
Whether to include data from extended trading hours. |
Returns a new OptionsChain object with data from Yahoo Finance.
Kind: static method of Yahoo
Author: Torrey Leonard https://github.com/Ladinn
Param | Type |
---|---|
symbol | String |