docs/TechnicalApi.md in intrinio-sdk-5.6.1 vs docs/TechnicalApi.md in intrinio-sdk-5.6.3

- old
+ new

@@ -81,29 +81,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_adi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_adi: #{e}" -end +result = technical_api.get_security_price_technicals_adi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -173,30 +169,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 22, # Integer | The number of observations, per period, to calculate Average Daily Trading Volume - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 22, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_adtv(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_adtv: #{e}" -end +result = technical_api.get_security_price_technicals_adtv(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -267,30 +259,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to calculate Average Directional Index - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_adx(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_adx: #{e}" -end +result = technical_api.get_security_price_technicals_adx(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -361,31 +349,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - short_period: 5, # Integer | The number of observations, per period, to calculate short period Simple Moving Average of the Awesome Oscillator - long_period: 34, # Integer | The number of observations, per period, to calculate long period Simple Moving Average of the Awesome Oscillator - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + short_period: 5, + long_period: 34, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_ao(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_ao: #{e}" -end +result = technical_api.get_security_price_technicals_ao(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -457,30 +441,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to calculate Average True Range - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_atr(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_atr: #{e}" -end +result = technical_api.get_security_price_technicals_atr(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -551,32 +531,28 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Bollinger Bands - standard_deviations: 2.0, # Float | The number of standard deviations to calculate the upper and lower bands of the Bollinger Bands - price_key: "close", # String | The Stock Price field to use when calculating Bollinger Bands - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +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 } -begin - result = technical_api.get_security_price_technicals_bb(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_bb: #{e}" -end +result = technical_api.get_security_price_technicals_bb(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -649,31 +625,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Commodity Channel Index - constant: 0.015, # Float | The number of observations, per period, to calculate Commodity Channel Index - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 20, + constant: 0.015, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_cci(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_cci: #{e}" -end +result = technical_api.get_security_price_technicals_cci(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -745,30 +717,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Chaikin Money Flow - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 20, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_cmf(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_cmf: #{e}" -end +result = technical_api.get_security_price_technicals_cmf(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -839,31 +807,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Donchian Channel - price_key: "close", # String | The Stock Price field to use when calculating Donchian Channel - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 20, + price_key: "close", + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_dc(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_dc: #{e}" -end +result = technical_api.get_security_price_technicals_dc(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -935,31 +899,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Detrended Price Oscillator - price_key: "close", # String | The Stock Price field to use when calculating Detrended Price Oscillator - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 20, + price_key: "close", + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_dpo(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_dpo: #{e}" -end +result = technical_api.get_security_price_technicals_dpo(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1031,30 +991,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Ease of Movement - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 20, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_eom(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_eom: #{e}" -end +result = technical_api.get_security_price_technicals_eom(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1125,29 +1081,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_fi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_fi: #{e}" -end +result = technical_api.get_security_price_technicals_fi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1217,32 +1169,28 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - low_period: 9, # Integer | The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo - medium_period: 26, # 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 - high_period: 52, # Integer | The number of observations, per period, to calculate Senkou Span B (Leading Span B) of Ichimoku Kinko Hyo - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +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 } -begin - result = technical_api.get_security_price_technicals_ichimoku(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_ichimoku: #{e}" -end +result = technical_api.get_security_price_technicals_ichimoku(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1315,30 +1263,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 10, # Integer | The number of observations, per period, to calculate Kelter Channel - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 10, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_kc(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_kc: #{e}" -end +result = technical_api.get_security_price_technicals_kc(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1409,38 +1353,34 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - roc1: 10, # Integer | The number of observations, per period, to calculate the rate-of-change for RCMA1 - roc2: 15, # Integer | The number of observations, per period, to calculate the rate-of-change for RCMA2 - roc3: 20, # Integer | The number of observations, per period, to calculate the rate-of-change for RCMA3 - roc4: 30, # Integer | The number of observations, per period, to calculate the rate-of-change for RCMA4 - sma1: 10, # Integer | The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1 - sma2: 10, # Integer | The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2 - sma3: 10, # Integer | The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3 - sma4: 15, # Integer | The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4 - price_key: "close", # String | The Stock Price field to use when calculating Know Sure Thing - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +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 } -begin - result = technical_api.get_security_price_technicals_kst(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_kst: #{e}" -end +result = technical_api.get_security_price_technicals_kst(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1519,33 +1459,29 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - fast_period: 12, # Integer | The number of observations, per period, to calculate the fast moving Exponential Moving Average for Moving Average Convergence Divergence - slow_period: 26, # Integer | The number of observations, per period, to calculate the slow moving Exponential Moving Average for Moving Average Convergence Divergence - signal_period: 9, # Integer | The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence - price_key: "close", # String | The Stock Price field to use when calculating Moving Average Convergence Divergence - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +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 } -begin - result = technical_api.get_security_price_technicals_macd(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_macd: #{e}" -end +result = technical_api.get_security_price_technicals_macd(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1619,30 +1555,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to calculate Money Flow Index - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_mfi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_mfi: #{e}" -end +result = technical_api.get_security_price_technicals_mfi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1713,31 +1645,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - ema_period: 9, # Integer | The number of observations, per period, to calculate the single Exponential Moving Average and the Double Exponential Moving Average for Mass Index - sum_period: 25, # Integer | The number of observations, per period, to calculate the sum of the Exponetinal Moving Average Ratios for Mass Index - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + ema_period: 9, + sum_period: 25, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_mi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_mi: #{e}" -end +result = technical_api.get_security_price_technicals_mi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1809,29 +1737,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_nvi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_nvi: #{e}" -end +result = technical_api.get_security_price_technicals_nvi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1901,29 +1825,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_obv(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_obv: #{e}" -end +result = technical_api.get_security_price_technicals_obv(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -1993,30 +1913,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 10, # Integer | The number of observations, per period, to calculate On-balance Volume Mean - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 10, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_obv_mean(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_obv_mean: #{e}" -end +result = technical_api.get_security_price_technicals_obv_mean(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2087,31 +2003,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to calculate Relative Strength Index - price_key: "close", # String | The Stock Price field to use when calculating Relative Strength Index - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + price_key: "close", + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_rsi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_rsi: #{e}" -end +result = technical_api.get_security_price_technicals_rsi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2183,31 +2095,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 20, # Integer | The number of observations, per period, to calculate Simple Moving Average - price_key: "close", # String | The Stock Price field to use when calculating Simple Moving Average - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 20, + price_key: "close", + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_sma(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_sma: #{e}" -end +result = technical_api.get_security_price_technicals_sma(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2279,31 +2187,27 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to calculate %K of Stochastic Oscillator - signal_period: 3, # Integer | The number of observations, per period, to calculate the %D (the Simple Moving Average of %K) as a signal line for Stochastic Oscillator - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + signal_period: 3, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_sr(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_sr: #{e}" -end +result = technical_api.get_security_price_technicals_sr(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2375,30 +2279,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 15, # Integer | The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 15, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_trix(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_trix: #{e}" -end +result = technical_api.get_security_price_technicals_trix(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2469,32 +2369,28 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - low_period: 13, # Integer | The number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index - high_period: 25, # Integer | The number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index - price_key: "close", # String | The Stock Price field to use when calculating True Strength Index - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +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 } -begin - result = technical_api.get_security_price_technicals_tsi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_tsi: #{e}" -end +result = technical_api.get_security_price_technicals_tsi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2567,35 +2463,31 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - short_period: 7, # Integer | The number of observations, per period, to calculate the short period for Ultimate Oscillator - medium_period: 14, # Integer | The number of observations, per period, to calculate the medium period for Ultimate Oscillator - long_period: 28, # Integer | The number of observations, per period, to calculate the long period for Ultimate Oscillator - short_weight: 4.0, # Float | The weight of short Buying Pressure average for Ultimate Oscillator - medium_weight: 2.0, # Float | The weight of medium Buying Pressure average for Ultimate Oscillator - long_weight: 1.0, # Float | The weight of long Buying Pressure average for Ultimate Oscillator - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +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 } -begin - result = technical_api.get_security_price_technicals_uo(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_uo: #{e}" -end +result = technical_api.get_security_price_technicals_uo(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2671,30 +2563,26 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to calculate Vortex Indicator - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_vi(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_vi: #{e}" -end +result = technical_api.get_security_price_technicals_vi(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2765,29 +2653,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_vpt(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_vpt: #{e}" -end +result = technical_api.get_security_price_technicals_vpt(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2857,29 +2741,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Integer | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_vwap(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_vwap: #{e}" -end +result = technical_api.get_security_price_technicals_vwap(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION) @@ -2949,29 +2829,25 @@ 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" -identifier = "AAPL" # String | A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) - -opts = { - period: 14, # Integer | The number of observations, per period, to look-back when calculating Williams %R - start_date: "2018-01-01", # String | Return technical indicator values on or after the date - end_date: "2019-01-01", # String | Return technical indicator values on or before the date - page_size: 100, # Float | The number of results to return - next_page: nil # String | Gets the next page of data from a previous API call +opts = { + period: 14, + start_date: "2018-01-01", + end_date: "2019-01-01", + page_size: 100, + next_page: nil } -begin - result = technical_api.get_security_price_technicals_wr(identifier, opts) - pp result -rescue Intrinio::ApiError => e - puts "Exception when calling TechnicalApi->get_security_price_technicals_wr: #{e}" -end +result = technical_api.get_security_price_technicals_wr(identifier, opts) +pp result ``` [//]: # (END_CODE_EXAMPLE) [//]: # (START_DEFINITION)