Intrinio::TechnicalApi

All URIs are relative to https://api-v2.intrinio.com

Method HTTP request Description
get_security_price_technicals_adi GET /securities/identifier/prices/technicals/adi Accumulation/Distribution Index
get_security_price_technicals_adtv GET /securities/identifier/prices/technicals/adtv Average Daily Trading Volume
get_security_price_technicals_adx GET /securities/identifier/prices/technicals/adx Average Directional Index
get_security_price_technicals_ao GET /securities/identifier/prices/technicals/ao Awesome Oscillator
get_security_price_technicals_atr GET /securities/identifier/prices/technicals/atr Average True Range
get_security_price_technicals_bb GET /securities/identifier/prices/technicals/bb Bollinger Bands
get_security_price_technicals_cci GET /securities/identifier/prices/technicals/cci Commodity Channel Index
get_security_price_technicals_cmf GET /securities/identifier/prices/technicals/cmf Chaikin Money Flow
get_security_price_technicals_dc GET /securities/identifier/prices/technicals/dc Donchian Channel
get_security_price_technicals_dpo GET /securities/identifier/prices/technicals/dpo Detrended Price Oscillator
get_security_price_technicals_eom GET /securities/identifier/prices/technicals/eom Ease of Movement
get_security_price_technicals_fi GET /securities/identifier/prices/technicals/fi Force Index
get_security_price_technicals_ichimoku GET /securities/identifier/prices/technicals/ichimoku Ichimoku Kinko Hyo
get_security_price_technicals_kc GET /securities/identifier/prices/technicals/kc Keltner Channel
get_security_price_technicals_kst GET /securities/identifier/prices/technicals/kst Know Sure Thing
get_security_price_technicals_macd GET /securities/identifier/prices/technicals/macd Moving Average Convergence Divergence
get_security_price_technicals_mfi GET /securities/identifier/prices/technicals/mfi Money Flow Index
get_security_price_technicals_mi GET /securities/identifier/prices/technicals/mi Mass Index
get_security_price_technicals_nvi GET /securities/identifier/prices/technicals/nvi Negative Volume Index
get_security_price_technicals_obv GET /securities/identifier/prices/technicals/obv On-balance Volume
get_security_price_technicals_obv_mean GET /securities/identifier/prices/technicals/obv_mean On-balance Volume Mean
get_security_price_technicals_rsi GET /securities/identifier/prices/technicals/rsi Relative Strength Index
get_security_price_technicals_sma GET /securities/identifier/prices/technicals/sma Simple Moving Average
get_security_price_technicals_sr GET /securities/identifier/prices/technicals/sr Stochastic Oscillator
get_security_price_technicals_trix GET /securities/identifier/prices/technicals/trix Triple Exponential Average
get_security_price_technicals_tsi GET /securities/identifier/prices/technicals/tsi True Strength Index
get_security_price_technicals_uo GET /securities/identifier/prices/technicals/uo Ultimate Oscillator
get_security_price_technicals_vi GET /securities/identifier/prices/technicals/vi Vortex Indicator
get_security_price_technicals_vpt GET /securities/identifier/prices/technicals/vpt Volume-price Trend
get_security_price_technicals_vwap GET /securities/identifier/prices/technicals/vwap Volume Weighted Average Price
get_security_price_technicals_wr GET /securities/identifier/prices/technicals/wr Williams %R

get_security_price_technicals_adi

View Intrinio API Documentation

ApiResponseSecurityAccumulationDistributionIndex get_security_price_technicals_adi(identifier, opts)

Accumulation/Distribution Index

The Accumulation / Distribution Indicator is a volume-based technical indicator which uses the relationship between the stock`s price and volume flow to determine the underlying trend of a stock, up, down, or sideways trend of a stock.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_adi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityAccumulationDistributionIndex

get_security_price_technicals_adtv

View Intrinio API Documentation

ApiResponseSecurityAverageDailyTradingVolume get_security_price_technicals_adtv(identifier, opts)

Average Daily Trading Volume

Average Daily Trading Volume is the average number of shares traded over a given period, usually between 20 to 30 trading days.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 22,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_adtv(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Average Daily Trading Volume [optional] [default to 22]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityAverageDailyTradingVolume

get_security_price_technicals_adx

View Intrinio API Documentation

ApiResponseSecurityAverageDirectionalIndex get_security_price_technicals_adx(identifier, opts)

Average Directional Index

The Average Directional Index indicator is often used to identify decreasing or increasing price momentum for an underlying security, it is composed of a total of three indicators, the current trendline (adx), a positive directional indicator (di_pos), and a negative directional indicator (di_neg).

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_adx(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Average Directional Index [optional] [default to 14]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityAverageDirectionalIndex

get_security_price_technicals_ao

View Intrinio API Documentation

ApiResponseSecurityAwesomeOscillator get_security_price_technicals_ao(identifier, opts)

Awesome Oscillator

The Awesome Oscillator (ao) is a momentum indicator and is calculated by taking the difference between the latest 5 period simple moving average and the 34 period simple moving average. Rather than using the closing price like other indicators, the Awesome Oscillator uses the latest period`s midpoint value (period_high - period_low / 2). The Awesome Oscillator is useful in identifying and trading, zero-line crossovers, twin-peaks trading, and bullish/bearish saucers - Awesome Oscillator is often aggregated with additional technical indicators.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  short_period: 5,
  long_period: 34,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_ao(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
short_period Integer The number of observations, per period, to calculate short period Simple Moving Average of the Awesome Oscillator [optional] [default to 5]  
long_period Integer The number of observations, per period, to calculate long period Simple Moving Average of the Awesome Oscillator [optional] [default to 34]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityAwesomeOscillator

get_security_price_technicals_atr

View Intrinio API Documentation

ApiResponseSecurityAverageTrueRange get_security_price_technicals_atr(identifier, opts)

Average True Range

The Average True Range (ATR) is a non-directional market volatility indicator often used to generate stop-out or entry indications. An increasing or expanding ATR typically indicates higher volatility, and a decreasing ATR indicates sideways price action and lower volatility.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_atr(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Average True Range [optional] [default to 14]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityAverageTrueRange

get_security_price_technicals_bb

View Intrinio API Documentation

ApiResponseSecurityBollingerBands get_security_price_technicals_bb(identifier, opts)

Bollinger Bands

Bollinger Bands can be a useful technical analysis tool for generating oversold or overbought indicators. Bollinger Bands are composed of three lines, a simple moving average (middle band) and an upper and lower band – the upper and lower bands are typically 2 standard deviations +/- from a 20-day simple moving average, but can be modified. Traders typically consider an underlying security to be overbought as the underlying`s price moves towards the upper band and oversold as the underlying price moves towards the lower band.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  standard_deviations: 2.0,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_bb(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Bollinger Bands [optional] [default to 20]  
standard_deviations Float The number of standard deviations to calculate the upper and lower bands of the Bollinger Bands [optional] [default to 2.0]  
price_key String The Stock Price field to use when calculating Bollinger Bands [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityBollingerBands

get_security_price_technicals_cci

View Intrinio API Documentation

ApiResponseSecurityCommodityChannelIndex get_security_price_technicals_cci(identifier, opts)

Commodity Channel Index

The Commodity Channel Index (CCI) is a technical indicator used to generate buy and sell signals by indicating periods of strength and weakness in the market. CCI signals that fall below -100 are often perceived as weakness in the underlying price movement and CCI signals that rise above 100 indicate strength behind the underlying price movement.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  constant: 0.015,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_cci(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Commodity Channel Index [optional] [default to 20]  
constant Float The number of observations, per period, to calculate Commodity Channel Index [optional] [default to 0.015]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityCommodityChannelIndex

get_security_price_technicals_cmf

View Intrinio API Documentation

ApiResponseSecurityChaikinMoneyFlow get_security_price_technicals_cmf(identifier, opts)

Chaikin Money Flow

The Chaikin Money Flow (CMF) utilizes exponential moving averages as an indicator to monitor the flow of money and momentum. The CMF indicator oscillates around a midrange 0-line and ranges between 100 and -100.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_cmf(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Chaikin Money Flow [optional] [default to 20]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityChaikinMoneyFlow

get_security_price_technicals_dc

View Intrinio API Documentation

ApiResponseSecurityDonchianChannel get_security_price_technicals_dc(identifier, opts)

Donchian Channel

The Donchian Channel consists of an Upper Bound (upper_bound) and Lower Bound (lower_bound) that track the recent highs and lows and is often used to signal entry and exit points for a position. As the price of the underlying symbol increases the Upper Bound raises, if the price becomes range bound the Upper Bound will remain flat and if the price begins to decrease, the Upper Bound will fall (and vice-versa for the Lower Bound).

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_dc(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Donchian Channel [optional] [default to 20]  
price_key String The Stock Price field to use when calculating Donchian Channel [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityDonchianChannel

get_security_price_technicals_dpo

View Intrinio API Documentation

ApiResponseSecurityDetrendedPriceOscillator get_security_price_technicals_dpo(identifier, opts)

Detrended Price Oscillator

The Detrended Price Oscillator (DPO) signals the peaks and troughs of the underlying symbol’s price for a set period of time and is often used by traders to estimate future peaks and troughs using this as guidance to enter or exit a position.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_dpo(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Detrended Price Oscillator [optional] [default to 20]  
price_key String The Stock Price field to use when calculating Detrended Price Oscillator [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityDetrendedPriceOscillator

get_security_price_technicals_eom

View Intrinio API Documentation

ApiResponseSecurityEaseOfMovement get_security_price_technicals_eom(identifier, opts)

Ease of Movement

The Ease of Movement (EOM) is a volume based oscillator that fluctuates around a midrange 0-line into positive and negative values. Positive values indicate that the underlying symbols price is rising with relative ease and negative value indicates the underlying symbols price is failing with relative ease.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_eom(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Ease of Movement [optional] [default to 20]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityEaseOfMovement

get_security_price_technicals_fi

View Intrinio API Documentation

ApiResponseSecurityForceIndex get_security_price_technicals_fi(identifier, opts)

Force Index

The Force Index (FI) is an oscillator that takes into account the intensity of an underlying symbol`s price movement and its corresponding volume. It is used to confirm price breakouts and signal underlying trends.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_fi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityForceIndex

get_security_price_technicals_ichimoku

View Intrinio API Documentation

ApiResponseSecurityIchimokuKinkoHyo get_security_price_technicals_ichimoku(identifier, opts)

Ichimoku Kinko Hyo

The Ichimoku Kinko Hyo was designed to be an all-in-one trading indicator that could help traders determine momentum, support, and resistance.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  low_period: 9,
  medium_period: 26,
  high_period: 52,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_ichimoku(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
low_period Integer The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo [optional] [default to 9]  
medium_period Integer The number of observations, per period, to calculate Kijun Sen (Base Line), Senkou Span A (Leading Span A), and Chikou Span (Lagging Span) of Ichimoku Kinko Hyo [optional] [default to 26]  
high_period Integer The number of observations, per period, to calculate Senkou Span B (Leading Span B) of Ichimoku Kinko Hyo [optional] [default to 52]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityIchimokuKinkoHyo

get_security_price_technicals_kc

View Intrinio API Documentation

ApiResponseSecurityKeltnerChannel get_security_price_technicals_kc(identifier, opts)

Keltner Channel

The Keltner Channel is a volatility based signal, with upper, middle, and lower bands. It is often used at market open, when the largest moves tend to occur. In general, traders tend to buy if the price breaks up above the upper band or sell short if the price drops below the lower band.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 10,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_kc(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Kelter Channel [optional] [default to 10]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityKeltnerChannel

get_security_price_technicals_kst

View Intrinio API Documentation

ApiResponseSecurityKnowSureThing get_security_price_technicals_kst(identifier, opts)

Know Sure Thing

The Know Sure Thing indicator (KST) is a momentum based oscillator that is calculated by measuring the momentum of four separate price cycles. KST fluctuates above and below a zero line and is used to identify overbought and oversold conditions, and is often used with additional indicators to boost signal strength.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  roc1: 10,
  roc2: 15,
  roc3: 20,
  roc4: 30,
  sma1: 10,
  sma2: 10,
  sma3: 10,
  sma4: 15,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_kst(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
roc1 Integer The number of observations, per period, to calculate the rate-of-change for RCMA1 [optional] [default to 10]  
roc2 Integer The number of observations, per period, to calculate the rate-of-change for RCMA2 [optional] [default to 15]  
roc3 Integer The number of observations, per period, to calculate the rate-of-change for RCMA3 [optional] [default to 20]  
roc4 Integer The number of observations, per period, to calculate the rate-of-change for RCMA4 [optional] [default to 30]  
sma1 Integer The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1 [optional] [default to 10]  
sma2 Integer The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2 [optional] [default to 10]  
sma3 Integer The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3 [optional] [default to 10]  
sma4 Integer The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4 [optional] [default to 15]  
price_key String The Stock Price field to use when calculating Know Sure Thing [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityKnowSureThing

get_security_price_technicals_macd

View Intrinio API Documentation

ApiResponseSecurityMovingAverageConvergenceDivergence get_security_price_technicals_macd(identifier, opts)

Moving Average Convergence Divergence

Moving average convergence divergence (MACD) is a trend-following momentum oscillator that consists of three indicators: (1) a 12 period short-term exponential moving average (EMA) a 26 period long-term EMA and a 9 period EMA signal line. Traders using MACD often look for signal line crossovers, centerline crossovers, and EMA divergences to indicate the momentum and underlying trend of a security`s price.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  fast_period: 12,
  slow_period: 26,
  signal_period: 9,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_macd(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
fast_period Integer The number of observations, per period, to calculate the fast moving Exponential Moving Average for Moving Average Convergence Divergence [optional] [default to 12]  
slow_period Integer The number of observations, per period, to calculate the slow moving Exponential Moving Average for Moving Average Convergence Divergence [optional] [default to 26]  
signal_period Integer The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence [optional] [default to 9]  
price_key String The Stock Price field to use when calculating Moving Average Convergence Divergence [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityMovingAverageConvergenceDivergence

get_security_price_technicals_mfi

View Intrinio API Documentation

ApiResponseSecurityMoneyFlowIndex get_security_price_technicals_mfi(identifier, opts)

Money Flow Index

The Money Flow Index (MFI) is a technical oscillator that incorporates both price and volume, moving between 0 and 100. Traders often consider a MFI above 80 as overbought conditions and below 20 as oversold conditions.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_mfi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Money Flow Index [optional] [default to 14]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityMoneyFlowIndex

get_security_price_technicals_mi

View Intrinio API Documentation

ApiResponseSecurityMassIndex get_security_price_technicals_mi(identifier, opts)

Mass Index

The mass index (MI) is a technical indicator used by traders to predict trend reversals. A trend reversal signal is said to occur when the 25-day MI reaches 27.0 and then falls below 26.0.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  ema_period: 9,
  sum_period: 25,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_mi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
ema_period Integer The number of observations, per period, to calculate the single Exponential Moving Average and the Double Exponential Moving Average for Mass Index [optional] [default to 9]  
sum_period Integer The number of observations, per period, to calculate the sum of the Exponetinal Moving Average Ratios for Mass Index [optional] [default to 25]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityMassIndex

get_security_price_technicals_nvi

View Intrinio API Documentation

ApiResponseSecurityNegativeVolumeIndex get_security_price_technicals_nvi(identifier, opts)

Negative Volume Index

The negative volume index (NVI) is often referred to as the smart money indicator. It works by the assumption that smart money (institutional money) is at work when volume decreases and vice versa when volume increases. NVI starts at 1000 and increases in regard to the percentage price change when volume decreases over a 255-day EMA period. Traders often use this technical indicator when researching broder markets and indices.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_nvi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityNegativeVolumeIndex

get_security_price_technicals_obv

View Intrinio API Documentation

ApiResponseSecurityOnBalanceVolume get_security_price_technicals_obv(identifier, opts)

On-balance Volume

On-balance volume (OBV) is a leading momentum indicator that uses the increase/decrease flow in volume to predict upcoming stock price changes. When both OBV and a security`s price are making higher highs, it is presumed the upward trend is likely to continue and vice versa.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_obv(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityOnBalanceVolume

get_security_price_technicals_obv_mean

View Intrinio API Documentation

ApiResponseSecurityOnBalanceVolumeMean get_security_price_technicals_obv_mean(identifier, opts)

On-balance Volume Mean

On-balance volume mean (OBVM) is a leading momentum indicator that uses the increase/decrease flow in volume to predict upcoming stock price changes. The difference between OBV and OBVM is that OBVM takes the mean average of a provided period. When both OBVM and a security`s price are making higher highs, it is presumed the upward trend is likely to continue and vice versa.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 10,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_obv_mean(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate On-balance Volume Mean [optional] [default to 10]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityOnBalanceVolumeMean

get_security_price_technicals_rsi

View Intrinio API Documentation

ApiResponseSecurityRelativeStrengthIndex get_security_price_technicals_rsi(identifier, opts)

Relative Strength Index

Relative strength index (RSI) is a momentum oscillator that ranges between 0 and 100. Traders believe that an RSI value over 70 indicates that a security is overbought and an RSI under 30 indicates that a security is oversold.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_rsi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Relative Strength Index [optional] [default to 14]  
price_key String The Stock Price field to use when calculating Relative Strength Index [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityRelativeStrengthIndex

get_security_price_technicals_sma

View Intrinio API Documentation

ApiResponseSecuritySimpleMovingAverage get_security_price_technicals_sma(identifier, opts)

Simple Moving Average

A simple moving average (SMA) adds recent prices for a specified period and divides the total by that same number of periods. SMA is typically used to indicate whether a security is in an uptrend or downtrend and can also be combined with a long-term moving average to improve the signal`s abilities.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 20,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_sma(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Simple Moving Average [optional] [default to 20]  
price_key String The Stock Price field to use when calculating Simple Moving Average [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecuritySimpleMovingAverage

get_security_price_technicals_sr

View Intrinio API Documentation

ApiResponseSecurityStochasticOscillator get_security_price_technicals_sr(identifier, opts)

Stochastic Oscillator

The Stochastic Oscillator (SO) is a range-bound momentum indicator that ranges from 0 to 100 and follows the velocity of the momentum itself, not the underlying price or volume. When SO is above 80 it indicates that a security is trading at the high end of its period`s high-low range and vice versa if the reading is below 20.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  signal_period: 3,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_sr(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate %K of Stochastic Oscillator [optional] [default to 14]  
signal_period Integer The number of observations, per period, to calculate the %D (the Simple Moving Average of %K) as a signal line for Stochastic Oscillator [optional] [default to 3]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityStochasticOscillator

get_security_price_technicals_trix

View Intrinio API Documentation

ApiResponseSecurityTripleExponentialAverage get_security_price_technicals_trix(identifier, opts)

Triple Exponential Average

The Triple Exponential Average (TEA) is a momentum indicator used to identify when a security is oversold and overbought. By exponentially smoothing out the underlying security`s moving average, the TEA filters out insignificant price movements. A positive TEA is often believed to indicate momentum is increasing and a negative TEA indicates that momentum is decreasing.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 15,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_trix(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average [optional] [default to 15]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityTripleExponentialAverage

get_security_price_technicals_tsi

View Intrinio API Documentation

ApiResponseSecurityTrueStrengthIndex get_security_price_technicals_tsi(identifier, opts)

True Strength Index

The True Strength Index (TSI) is a momentum oscillator used to identify building trends and trend reversals, typically by signalling overbought and oversold conditions. TSI fluctuates between positive and negative values, and traders typically combine its signal with other momentum oscillators to increase its strength. When TSI crosses the signal line into positive territory it is presumed to be an entrance opportunity and vice versa when the TSI crosses into negative territory.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  low_period: 13,
  high_period: 25,
  price_key: "close",
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_tsi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
low_period Integer The number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index [optional] [default to 13]  
high_period Integer The number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index [optional] [default to 25]  
price_key String The Stock Price field to use when calculating True Strength Index [optional] [default to close]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityTrueStrengthIndex

get_security_price_technicals_uo

View Intrinio API Documentation

ApiResponseSecurityUltimateOscillator get_security_price_technicals_uo(identifier, opts)

Ultimate Oscillator

The Ultimate Oscillator (UO) is a range bound technical indicator that moves between 0 and 100 and is calculated with 3 timeframes, typically 7, 14, and 28 day periods. When UOs value is above 70 a security is categorized as overbought and when UOs value is below 30 a security is categorized as oversold.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  short_period: 7,
  medium_period: 14,
  long_period: 28,
  short_weight: 4.0,
  medium_weight: 2.0,
  long_weight: 1.0,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_uo(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
short_period Integer The number of observations, per period, to calculate the short period for Ultimate Oscillator [optional] [default to 7]  
medium_period Integer The number of observations, per period, to calculate the medium period for Ultimate Oscillator [optional] [default to 14]  
long_period Integer The number of observations, per period, to calculate the long period for Ultimate Oscillator [optional] [default to 28]  
short_weight Float The weight of short Buying Pressure average for Ultimate Oscillator [optional] [default to 4.0]  
medium_weight Float The weight of medium Buying Pressure average for Ultimate Oscillator [optional] [default to 2.0]  
long_weight Float The weight of long Buying Pressure average for Ultimate Oscillator [optional] [default to 1.0]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityUltimateOscillator

get_security_price_technicals_vi

View Intrinio API Documentation

ApiResponseSecurityVortexIndicator get_security_price_technicals_vi(identifier, opts)

Vortex Indicator

The Vortex Indicator (VI) is composed of an uptrend line (VI+) and a downtrend line (VI-). When VI+ crosses VI- from below it typically indicates an entry into a given security. When VI- crosses VI+ from below it typically triggers an exit and that the current trend is reversing course.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_vi(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to calculate Vortex Indicator [optional] [default to 14]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityVortexIndicator

get_security_price_technicals_vpt

View Intrinio API Documentation

ApiResponseSecurityVolumePriceTrend get_security_price_technicals_vpt(identifier, opts)

Volume-price Trend

The volume price trend (VPT) is a technical indicator that uses price & volume to determine whether a trend is established. Typically, when a security is trending upwards, there is more volume on positive days than negative ones, and as a result VPT should be increasing on these days as well. However, if VPT fails to increase past its previous high during an outbreak, this is suggested to indicate the rally is losing strength.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_vpt(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityVolumePriceTrend

get_security_price_technicals_vwap

View Intrinio API Documentation

ApiResponseSecurityVolumeWeightedAveragePrice get_security_price_technicals_vwap(identifier, opts)

Volume Weighted Average Price

Volume Weighted Average Price (VWAP) is a lagging technical indicator that is used in combination with a security`s price. When the underlying price rises above its VWAP, it is often interpreted as a bullish signal, and vice versa in the opposite direction.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_vwap(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Integer The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityVolumeWeightedAveragePrice

get_security_price_technicals_wr

View Intrinio API Documentation

ApiResponseSecurityWilliamsR get_security_price_technicals_wr(identifier, opts)

Williams %R

Williams %R is a momentum indicator used to determine overbought and oversold environments for a security and fluctuates between 0 and -100. When Williams %R is above -20 the security is considered to be overbought and when Williams %R is under -80 the security is considered to be oversold.

Example

# Load the gem
require 'intrinio-sdk'
require 'pp'

# Setup authorization
Intrinio.configure do |config|
  config.api_key['api_key'] = 'YOUR_API_KEY'
  config.allow_retries = true
end

technical_api = Intrinio::TechnicalApi.new
identifier = "AAPL"

opts = {
  period: 14,
  start_date: "2018-01-01",
  end_date: "2019-01-01",
  page_size: 100,
  next_page: nil
}

result = technical_api.get_security_price_technicals_wr(identifier, opts)
pp result

Parameters

Name Type Description Notes
identifier String A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)  
period Integer The number of observations, per period, to look-back when calculating Williams %R [optional] [default to 14]  
start_date String Return technical indicator values on or after the date [optional]  
end_date String Return technical indicator values on or before the date [optional]  
page_size Float The number of results to return [optional] [default to 100]  
next_page String Gets the next page of data from a previous API call [optional]  

Return type

ApiResponseSecurityWilliamsR