intrinio-sdk 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +168 -2
  3. data/docs/AccumulationDistributionIndexTechnicalValue.md +9 -0
  4. data/docs/ApiResponseCryptoBook.md +12 -0
  5. data/docs/ApiResponseCryptoBookAsks.md +11 -0
  6. data/docs/ApiResponseCryptoBookBids.md +11 -0
  7. data/docs/ApiResponseCryptoCurrencies.md +8 -0
  8. data/docs/ApiResponseCryptoExchanges.md +8 -0
  9. data/docs/ApiResponseCryptoPairs.md +9 -0
  10. data/docs/ApiResponseCryptoPrices.md +12 -0
  11. data/docs/ApiResponseCryptoSnapshot.md +10 -0
  12. data/docs/ApiResponseCryptoStats.md +8 -0
  13. data/docs/ApiResponseOptionPrices.md +10 -0
  14. data/docs/ApiResponseOptions.md +9 -0
  15. data/docs/ApiResponseOptionsChain.md +8 -0
  16. data/docs/ApiResponseOptionsExpirations.md +8 -0
  17. data/docs/ApiResponseSecurityAccumulationDistributionIndex.md +11 -0
  18. data/docs/ApiResponseSecurityAverageDailyTradingVolume.md +11 -0
  19. data/docs/ApiResponseSecurityAverageDirectionalIndex.md +11 -0
  20. data/docs/ApiResponseSecurityAverageTrueRange.md +11 -0
  21. data/docs/ApiResponseSecurityAwesomeOscillator.md +11 -0
  22. data/docs/ApiResponseSecurityBollingerBands.md +11 -0
  23. data/docs/ApiResponseSecurityChaikinMoneyFlow.md +11 -0
  24. data/docs/ApiResponseSecurityCommodityChannelIndex.md +11 -0
  25. data/docs/ApiResponseSecurityDetrendedPriceOscillator.md +11 -0
  26. data/docs/ApiResponseSecurityDonchianChannel.md +11 -0
  27. data/docs/ApiResponseSecurityEaseOfMovement.md +11 -0
  28. data/docs/ApiResponseSecurityForceIndex.md +11 -0
  29. data/docs/ApiResponseSecurityIchimokuKinkoHyo.md +11 -0
  30. data/docs/ApiResponseSecurityKeltnerChannel.md +11 -0
  31. data/docs/ApiResponseSecurityKnowSureThing.md +11 -0
  32. data/docs/ApiResponseSecurityMassIndex.md +11 -0
  33. data/docs/ApiResponseSecurityMoneyFlowIndex.md +11 -0
  34. data/docs/ApiResponseSecurityMovingAverageConvergenceDivergence.md +11 -0
  35. data/docs/ApiResponseSecurityNegativeVolumeIndex.md +11 -0
  36. data/docs/ApiResponseSecurityOnBalanceVolume.md +11 -0
  37. data/docs/ApiResponseSecurityOnBalanceVolumeMean.md +11 -0
  38. data/docs/ApiResponseSecurityRelativeStrengthIndex.md +11 -0
  39. data/docs/ApiResponseSecuritySimpleMovingAverage.md +11 -0
  40. data/docs/ApiResponseSecurityStochasticOscillator.md +11 -0
  41. data/docs/ApiResponseSecurityTripleExponentialAverage.md +11 -0
  42. data/docs/ApiResponseSecurityTrueStrengthIndex.md +11 -0
  43. data/docs/ApiResponseSecurityUltimateOscillator.md +11 -0
  44. data/docs/ApiResponseSecurityVolumePriceTrend.md +11 -0
  45. data/docs/ApiResponseSecurityVolumeWeightedAveragePrice.md +11 -0
  46. data/docs/ApiResponseSecurityVortexIndicator.md +11 -0
  47. data/docs/ApiResponseSecurityWilliamsR.md +11 -0
  48. data/docs/AverageDailyTradingVolumeTechnicalValue.md +9 -0
  49. data/docs/AverageDirectionalIndexTechnicalValue.md +11 -0
  50. data/docs/AverageTrueRangeTechnicalValue.md +9 -0
  51. data/docs/AwesomeOscillatorTechnicalValue.md +9 -0
  52. data/docs/BollingerBandsTechnicalValue.md +11 -0
  53. data/docs/ChaikinMoneyFlowTechnicalValue.md +9 -0
  54. data/docs/CommodityChannelIndexTechnicalValue.md +9 -0
  55. data/docs/CompanyApi.md +15 -15
  56. data/docs/CryptoApi.md +433 -0
  57. data/docs/CryptoAsk.md +9 -0
  58. data/docs/CryptoBid.md +9 -0
  59. data/docs/CryptoBookEntry.md +9 -0
  60. data/docs/CryptoCurrency.md +12 -0
  61. data/docs/CryptoExchange.md +13 -0
  62. data/docs/CryptoExchangeSummary.md +9 -0
  63. data/docs/CryptoPair.md +15 -0
  64. data/docs/CryptoPairSummary.md +9 -0
  65. data/docs/CryptoPrice.md +13 -0
  66. data/docs/CryptoSnapshot.md +22 -0
  67. data/docs/CryptoStat.md +15 -0
  68. data/docs/DataPointApi.md +10 -10
  69. data/docs/DetrendedPriceOscillatorTechnicalValue.md +9 -0
  70. data/docs/DonchianChannelTechnicalValue.md +10 -0
  71. data/docs/EaseOfMovementTechnicalValue.md +9 -0
  72. data/docs/ForceIndexTechnicalValue.md +9 -0
  73. data/docs/FundamentalsApi.md +4 -4
  74. data/docs/HistoricalDataApi.md +7 -5
  75. data/docs/IchimokuKinkoHyoTechnicalValue.md +13 -0
  76. data/docs/KeltnerChannelTechnicalValue.md +11 -0
  77. data/docs/KnowSureThingTechnicalValue.md +9 -0
  78. data/docs/MassIndexTechnicalValue.md +9 -0
  79. data/docs/MoneyFlowIndexTechnicalValue.md +9 -0
  80. data/docs/MovingAverageConvergenceDivergenceTechnicalValue.md +11 -0
  81. data/docs/NegativeVolumeIndexTechnicalValue.md +9 -0
  82. data/docs/OnBalanceVolumeMeanTechnicalValue.md +9 -0
  83. data/docs/OnBalanceVolumeTechnicalValue.md +9 -0
  84. data/docs/Option.md +13 -0
  85. data/docs/OptionChain.md +9 -0
  86. data/docs/OptionPrice.md +21 -0
  87. data/docs/OptionsApi.md +225 -0
  88. data/docs/RelativeStrengthIndexTechnicalValue.md +9 -0
  89. data/docs/ReportedFinancial.md +1 -0
  90. data/docs/ReportedFinancialDimension.md +9 -0
  91. data/docs/Security.md +1 -0
  92. data/docs/SecurityApi.md +1717 -22
  93. data/docs/SimpleMovingAverageTechnicalValue.md +9 -0
  94. data/docs/StochasticOscillatorTechnicalValue.md +10 -0
  95. data/docs/StockExchangeApi.md +6 -6
  96. data/docs/TechnicalApi.md +1701 -0
  97. data/docs/TechnicalIndicator.md +9 -0
  98. data/docs/TripleExponentialAverageTechnicalValue.md +9 -0
  99. data/docs/TrueStrengthIndexTechnicalValue.md +9 -0
  100. data/docs/UltimateOscillatorTechnicalValue.md +9 -0
  101. data/docs/VolumePriceTrendTechnicalValue.md +9 -0
  102. data/docs/VolumeWeightedAveragePriceValue.md +9 -0
  103. data/docs/VortexIndicatorTechnicalValue.md +10 -0
  104. data/docs/WilliamsRTechnicalValue.md +9 -0
  105. data/intrinio-sdk.gemspec +1 -1
  106. data/lib/intrinio-sdk.rb +95 -1
  107. data/lib/intrinio-sdk/api/company_api.rb +19 -19
  108. data/lib/intrinio-sdk/api/crypto_api.rb +560 -0
  109. data/lib/intrinio-sdk/api/data_point_api.rb +13 -13
  110. data/lib/intrinio-sdk/api/data_tag_api.rb +1 -1
  111. data/lib/intrinio-sdk/api/filing_api.rb +1 -1
  112. data/lib/intrinio-sdk/api/forex_api.rb +1 -1
  113. data/lib/intrinio-sdk/api/fundamentals_api.rb +5 -5
  114. data/lib/intrinio-sdk/api/historical_data_api.rb +13 -7
  115. data/lib/intrinio-sdk/api/index_api.rb +1 -1
  116. data/lib/intrinio-sdk/api/municipality_api.rb +1 -1
  117. data/lib/intrinio-sdk/api/options_api.rb +325 -0
  118. data/lib/intrinio-sdk/api/security_api.rb +2472 -21
  119. data/lib/intrinio-sdk/api/stock_exchange_api.rb +3 -3
  120. data/lib/intrinio-sdk/api/technical_api.rb +2474 -0
  121. data/lib/intrinio-sdk/api_client.rb +1 -1
  122. data/lib/intrinio-sdk/api_error.rb +1 -1
  123. data/lib/intrinio-sdk/configuration.rb +1 -1
  124. data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +199 -0
  125. data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
  126. data/lib/intrinio-sdk/models/api_response_companies_search.rb +1 -1
  127. data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
  128. data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
  129. data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
  130. data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
  131. data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
  132. data/lib/intrinio-sdk/models/api_response_crypto_book.rb +231 -0
  133. data/lib/intrinio-sdk/models/api_response_crypto_book_asks.rb +219 -0
  134. data/lib/intrinio-sdk/models/api_response_crypto_book_bids.rb +219 -0
  135. data/lib/intrinio-sdk/models/api_response_crypto_currencies.rb +191 -0
  136. data/lib/intrinio-sdk/models/api_response_crypto_exchanges.rb +191 -0
  137. data/lib/intrinio-sdk/models/api_response_crypto_pairs.rb +201 -0
  138. data/lib/intrinio-sdk/models/api_response_crypto_prices.rb +229 -0
  139. data/lib/intrinio-sdk/models/api_response_crypto_snapshot.rb +206 -0
  140. data/lib/intrinio-sdk/models/api_response_crypto_stats.rb +191 -0
  141. data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
  142. data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +1 -1
  143. data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
  144. data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
  145. data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +1 -1
  146. data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
  147. data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
  148. data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
  149. data/lib/intrinio-sdk/models/api_response_forex_currencies.rb +1 -1
  150. data/lib/intrinio-sdk/models/api_response_forex_pairs.rb +1 -1
  151. data/lib/intrinio-sdk/models/api_response_forex_prices.rb +1 -1
  152. data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
  153. data/lib/intrinio-sdk/models/api_response_municipalities.rb +1 -1
  154. data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +1 -1
  155. data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
  156. data/lib/intrinio-sdk/models/api_response_option_prices.rb +210 -0
  157. data/lib/intrinio-sdk/models/api_response_options.rb +201 -0
  158. data/lib/intrinio-sdk/models/api_response_options_chain.rb +191 -0
  159. data/lib/intrinio-sdk/models/api_response_options_expirations.rb +191 -0
  160. data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
  161. data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
  162. data/lib/intrinio-sdk/models/api_response_securities_search.rb +1 -1
  163. data/lib/intrinio-sdk/models/api_response_security_accumulation_distribution_index.rb +220 -0
  164. data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +220 -0
  165. data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +220 -0
  166. data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +220 -0
  167. data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +220 -0
  168. data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +220 -0
  169. data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +220 -0
  170. data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +220 -0
  171. data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +220 -0
  172. data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +220 -0
  173. data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +220 -0
  174. data/lib/intrinio-sdk/models/api_response_security_force_index.rb +220 -0
  175. data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
  176. data/lib/intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo.rb +220 -0
  177. data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +1 -1
  178. data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +220 -0
  179. data/lib/intrinio-sdk/models/api_response_security_know_sure_thing.rb +220 -0
  180. data/lib/intrinio-sdk/models/api_response_security_mass_index.rb +220 -0
  181. data/lib/intrinio-sdk/models/api_response_security_money_flow_index.rb +220 -0
  182. data/lib/intrinio-sdk/models/api_response_security_moving_average_convergence_divergence.rb +220 -0
  183. data/lib/intrinio-sdk/models/api_response_security_negative_volume_index.rb +220 -0
  184. data/lib/intrinio-sdk/models/api_response_security_on_balance_volume.rb +220 -0
  185. data/lib/intrinio-sdk/models/api_response_security_on_balance_volume_mean.rb +220 -0
  186. data/lib/intrinio-sdk/models/api_response_security_relative_strength_index.rb +220 -0
  187. data/lib/intrinio-sdk/models/api_response_security_simple_moving_average.rb +220 -0
  188. data/lib/intrinio-sdk/models/api_response_security_stochastic_oscillator.rb +220 -0
  189. data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
  190. data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
  191. data/lib/intrinio-sdk/models/api_response_security_triple_exponential_average.rb +220 -0
  192. data/lib/intrinio-sdk/models/api_response_security_true_strength_index.rb +220 -0
  193. data/lib/intrinio-sdk/models/api_response_security_ultimate_oscillator.rb +220 -0
  194. data/lib/intrinio-sdk/models/api_response_security_volume_price_trend.rb +220 -0
  195. data/lib/intrinio-sdk/models/api_response_security_volume_weighted_average_price.rb +220 -0
  196. data/lib/intrinio-sdk/models/api_response_security_vortex_indicator.rb +220 -0
  197. data/lib/intrinio-sdk/models/api_response_security_williams_r.rb +220 -0
  198. data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
  199. data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
  200. data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +1 -1
  201. data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
  202. data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
  203. data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
  204. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
  205. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
  206. data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
  207. data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
  208. data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
  209. data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +1 -1
  210. data/lib/intrinio-sdk/models/average_daily_trading_volume_technical_value.rb +199 -0
  211. data/lib/intrinio-sdk/models/average_directional_index_technical_value.rb +219 -0
  212. data/lib/intrinio-sdk/models/average_true_range_technical_value.rb +199 -0
  213. data/lib/intrinio-sdk/models/awesome_oscillator_technical_value.rb +199 -0
  214. data/lib/intrinio-sdk/models/bollinger_bands_technical_value.rb +219 -0
  215. data/lib/intrinio-sdk/models/chaikin_money_flow_technical_value.rb +199 -0
  216. data/lib/intrinio-sdk/models/commodity_channel_index_technical_value.rb +199 -0
  217. data/lib/intrinio-sdk/models/company.rb +1 -1
  218. data/lib/intrinio-sdk/models/company_filing.rb +1 -1
  219. data/lib/intrinio-sdk/models/company_news.rb +1 -1
  220. data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
  221. data/lib/intrinio-sdk/models/company_summary.rb +1 -1
  222. data/lib/intrinio-sdk/models/crypto_ask.rb +199 -0
  223. data/lib/intrinio-sdk/models/crypto_bid.rb +199 -0
  224. data/lib/intrinio-sdk/models/crypto_book_entry.rb +199 -0
  225. data/lib/intrinio-sdk/models/crypto_currency.rb +229 -0
  226. data/lib/intrinio-sdk/models/crypto_exchange.rb +239 -0
  227. data/lib/intrinio-sdk/models/crypto_exchange_summary.rb +199 -0
  228. data/lib/intrinio-sdk/models/crypto_pair.rb +259 -0
  229. data/lib/intrinio-sdk/models/crypto_pair_summary.rb +199 -0
  230. data/lib/intrinio-sdk/models/crypto_price.rb +239 -0
  231. data/lib/intrinio-sdk/models/crypto_snapshot.rb +329 -0
  232. data/lib/intrinio-sdk/models/crypto_stat.rb +259 -0
  233. data/lib/intrinio-sdk/models/data_tag.rb +1 -1
  234. data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
  235. data/lib/intrinio-sdk/models/detrended_price_oscillator_technical_value.rb +199 -0
  236. data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
  237. data/lib/intrinio-sdk/models/donchian_channel_technical_value.rb +209 -0
  238. data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
  239. data/lib/intrinio-sdk/models/ease_of_movement_technical_value.rb +199 -0
  240. data/lib/intrinio-sdk/models/economic_index.rb +1 -1
  241. data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
  242. data/lib/intrinio-sdk/models/filing.rb +1 -1
  243. data/lib/intrinio-sdk/models/filing_note.rb +1 -1
  244. data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
  245. data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
  246. data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
  247. data/lib/intrinio-sdk/models/force_index_technical_value.rb +199 -0
  248. data/lib/intrinio-sdk/models/forex_currency.rb +1 -1
  249. data/lib/intrinio-sdk/models/forex_pair.rb +1 -1
  250. data/lib/intrinio-sdk/models/forex_price.rb +1 -1
  251. data/lib/intrinio-sdk/models/fundamental.rb +1 -1
  252. data/lib/intrinio-sdk/models/fundamental_summary.rb +1 -1
  253. data/lib/intrinio-sdk/models/historical_data.rb +1 -1
  254. data/lib/intrinio-sdk/models/ichimoku_kinko_hyo_technical_value.rb +239 -0
  255. data/lib/intrinio-sdk/models/intraday_stock_price.rb +1 -1
  256. data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +219 -0
  257. data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +199 -0
  258. data/lib/intrinio-sdk/models/mass_index_technical_value.rb +199 -0
  259. data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +199 -0
  260. data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +219 -0
  261. data/lib/intrinio-sdk/models/municipality.rb +1 -1
  262. data/lib/intrinio-sdk/models/municipality_financial.rb +1 -1
  263. data/lib/intrinio-sdk/models/negative_volume_index_technical_value.rb +199 -0
  264. data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +199 -0
  265. data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +199 -0
  266. data/lib/intrinio-sdk/models/option.rb +239 -0
  267. data/lib/intrinio-sdk/models/option_chain.rb +197 -0
  268. data/lib/intrinio-sdk/models/option_price.rb +319 -0
  269. data/lib/intrinio-sdk/models/realtime_stock_price.rb +1 -1
  270. data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
  271. data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +199 -0
  272. data/lib/intrinio-sdk/models/reported_financial.rb +18 -6
  273. data/lib/intrinio-sdk/models/reported_financial_dimension.rb +199 -0
  274. data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
  275. data/lib/intrinio-sdk/models/security.rb +15 -5
  276. data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
  277. data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
  278. data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
  279. data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
  280. data/lib/intrinio-sdk/models/security_summary.rb +1 -1
  281. data/lib/intrinio-sdk/models/sic_index.rb +1 -1
  282. data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +199 -0
  283. data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
  284. data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +209 -0
  285. data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
  286. data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
  287. data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
  288. data/lib/intrinio-sdk/models/stock_price.rb +1 -1
  289. data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
  290. data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
  291. data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
  292. data/lib/intrinio-sdk/models/technical_indicator.rb +199 -0
  293. data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +199 -0
  294. data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +199 -0
  295. data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +199 -0
  296. data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +199 -0
  297. data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +199 -0
  298. data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +209 -0
  299. data/lib/intrinio-sdk/models/williams_r_technical_value.rb +199 -0
  300. data/lib/intrinio-sdk/version.rb +2 -2
  301. data/spec/api/company_api_spec.rb +9 -9
  302. data/spec/api/crypto_api_spec.rb +166 -0
  303. data/spec/api/data_point_api_spec.rb +6 -6
  304. data/spec/api/fundamentals_api_spec.rb +2 -2
  305. data/spec/api/historical_data_api_spec.rb +4 -3
  306. data/spec/api/options_api_spec.rb +105 -0
  307. data/spec/api/security_api_spec.rb +562 -10
  308. data/spec/api/stock_exchange_api_spec.rb +1 -1
  309. data/spec/api/technical_api_spec.rb +587 -0
  310. data/spec/models/accumulation_distribution_index_technical_value_spec.rb +48 -0
  311. data/spec/models/api_response_crypto_book_asks_spec.rb +60 -0
  312. data/spec/models/api_response_crypto_book_bids_spec.rb +60 -0
  313. data/spec/models/api_response_crypto_book_spec.rb +66 -0
  314. data/spec/models/api_response_crypto_currencies_spec.rb +42 -0
  315. data/spec/models/api_response_crypto_exchanges_spec.rb +42 -0
  316. data/spec/models/api_response_crypto_pairs_spec.rb +48 -0
  317. data/spec/models/api_response_crypto_prices_spec.rb +66 -0
  318. data/spec/models/api_response_crypto_snapshot_spec.rb +54 -0
  319. data/spec/models/api_response_crypto_stats_spec.rb +42 -0
  320. data/spec/models/api_response_option_prices_spec.rb +54 -0
  321. data/spec/models/api_response_options_chain_spec.rb +42 -0
  322. data/spec/models/api_response_options_expirations_spec.rb +42 -0
  323. data/spec/models/api_response_options_spec.rb +48 -0
  324. data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +60 -0
  325. data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +60 -0
  326. data/spec/models/api_response_security_average_directional_index_spec.rb +60 -0
  327. data/spec/models/api_response_security_average_true_range_spec.rb +60 -0
  328. data/spec/models/api_response_security_awesome_oscillator_spec.rb +60 -0
  329. data/spec/models/api_response_security_bollinger_bands_spec.rb +60 -0
  330. data/spec/models/api_response_security_chaikin_money_flow_spec.rb +60 -0
  331. data/spec/models/api_response_security_commodity_channel_index_spec.rb +60 -0
  332. data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +60 -0
  333. data/spec/models/api_response_security_donchian_channel_spec.rb +60 -0
  334. data/spec/models/api_response_security_ease_of_movement_spec.rb +60 -0
  335. data/spec/models/api_response_security_force_index_spec.rb +60 -0
  336. data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +60 -0
  337. data/spec/models/api_response_security_keltner_channel_spec.rb +60 -0
  338. data/spec/models/api_response_security_know_sure_thing_spec.rb +60 -0
  339. data/spec/models/api_response_security_mass_index_spec.rb +60 -0
  340. data/spec/models/api_response_security_money_flow_index_spec.rb +60 -0
  341. data/spec/models/api_response_security_moving_average_convergence_divergence_spec.rb +60 -0
  342. data/spec/models/api_response_security_negative_volume_index_spec.rb +60 -0
  343. data/spec/models/api_response_security_on_balance_volume_mean_spec.rb +60 -0
  344. data/spec/models/api_response_security_on_balance_volume_spec.rb +60 -0
  345. data/spec/models/api_response_security_relative_strength_index_spec.rb +60 -0
  346. data/spec/models/api_response_security_simple_moving_average_spec.rb +60 -0
  347. data/spec/models/api_response_security_stochastic_oscillator_spec.rb +60 -0
  348. data/spec/models/api_response_security_triple_exponential_average_spec.rb +60 -0
  349. data/spec/models/api_response_security_true_strength_index_spec.rb +60 -0
  350. data/spec/models/api_response_security_ultimate_oscillator_spec.rb +60 -0
  351. data/spec/models/api_response_security_volume_price_trend_spec.rb +60 -0
  352. data/spec/models/api_response_security_volume_weighted_average_price_spec.rb +60 -0
  353. data/spec/models/api_response_security_vortex_indicator_spec.rb +60 -0
  354. data/spec/models/api_response_security_williams_r_spec.rb +60 -0
  355. data/spec/models/average_daily_trading_volume_technical_value_spec.rb +48 -0
  356. data/spec/models/average_directional_index_technical_value_spec.rb +60 -0
  357. data/spec/models/average_true_range_technical_value_spec.rb +48 -0
  358. data/spec/models/awesome_oscillator_technical_value_spec.rb +48 -0
  359. data/spec/models/bollinger_bands_technical_value_spec.rb +60 -0
  360. data/spec/models/chaikin_money_flow_technical_value_spec.rb +48 -0
  361. data/spec/models/commodity_channel_index_technical_value_spec.rb +48 -0
  362. data/spec/models/crypto_ask_spec.rb +48 -0
  363. data/spec/models/crypto_bid_spec.rb +48 -0
  364. data/spec/models/crypto_book_entry_spec.rb +48 -0
  365. data/spec/models/crypto_currency_spec.rb +66 -0
  366. data/spec/models/crypto_exchange_spec.rb +72 -0
  367. data/spec/models/crypto_exchange_summary_spec.rb +48 -0
  368. data/spec/models/crypto_pair_spec.rb +84 -0
  369. data/spec/models/crypto_pair_summary_spec.rb +48 -0
  370. data/spec/models/crypto_price_spec.rb +72 -0
  371. data/spec/models/crypto_snapshot_spec.rb +126 -0
  372. data/spec/models/crypto_stat_spec.rb +84 -0
  373. data/spec/models/detrended_price_oscillator_technical_value_spec.rb +48 -0
  374. data/spec/models/donchian_channel_technical_value_spec.rb +54 -0
  375. data/spec/models/ease_of_movement_technical_value_spec.rb +48 -0
  376. data/spec/models/force_index_technical_value_spec.rb +48 -0
  377. data/spec/models/ichimoku_kinko_hyo_technical_value_spec.rb +72 -0
  378. data/spec/models/keltner_channel_technical_value_spec.rb +60 -0
  379. data/spec/models/know_sure_thing_technical_value_spec.rb +48 -0
  380. data/spec/models/mass_index_technical_value_spec.rb +48 -0
  381. data/spec/models/money_flow_index_technical_value_spec.rb +48 -0
  382. data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +60 -0
  383. data/spec/models/negative_volume_index_technical_value_spec.rb +48 -0
  384. data/spec/models/on_balance_volume_mean_technical_value_spec.rb +48 -0
  385. data/spec/models/on_balance_volume_technical_value_spec.rb +48 -0
  386. data/spec/models/option_chain_spec.rb +48 -0
  387. data/spec/models/option_price_spec.rb +120 -0
  388. data/spec/models/option_spec.rb +72 -0
  389. data/spec/models/relative_strength_index_technical_value_spec.rb +48 -0
  390. data/spec/models/reported_financial_dimension_spec.rb +48 -0
  391. data/spec/models/reported_financial_spec.rb +6 -0
  392. data/spec/models/security_spec.rb +6 -0
  393. data/spec/models/simple_moving_average_technical_value_spec.rb +48 -0
  394. data/spec/models/stochastic_oscillator_technical_value_spec.rb +54 -0
  395. data/spec/models/technical_indicator_spec.rb +48 -0
  396. data/spec/models/triple_exponential_average_technical_value_spec.rb +48 -0
  397. data/spec/models/true_strength_index_technical_value_spec.rb +48 -0
  398. data/spec/models/ultimate_oscillator_technical_value_spec.rb +48 -0
  399. data/spec/models/volume_price_trend_technical_value_spec.rb +48 -0
  400. data/spec/models/volume_weighted_average_price_value_spec.rb +48 -0
  401. data/spec/models/vortex_indicator_technical_value_spec.rb +54 -0
  402. data/spec/models/williams_r_technical_value_spec.rb +48 -0
  403. metadata +378 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
5
5
 
6
- OpenAPI spec version: 2.2.0
6
+ OpenAPI spec version: 2.5.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -21,7 +21,7 @@ module Intrinio
21
21
  end
22
22
 
23
23
  # All Securities
24
- #
24
+ # Returns all Securities to which you have access.
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Float] :page_size The number of results to return (default to 100)
27
27
  # @option opts [String] :next_page Gets the next page of data from a previous API call
@@ -32,7 +32,7 @@ module Intrinio
32
32
  end
33
33
 
34
34
  # All Securities
35
- #
35
+ # Returns all Securities to which you have access.
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Float] :page_size The number of results to return
38
38
  # @option opts [String] :next_page Gets the next page of data from a previous API call
@@ -131,9 +131,9 @@ module Intrinio
131
131
  end
132
132
 
133
133
  # Data Point (Number) for Security
134
- # Returns a numeric value for the given `tag` for the Security with the given `identifier`
135
- # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
136
- # @param tag An Intrinio data tag ID or code-name
134
+ # $$v2_security_data_point_number_description$$
135
+ # @param identifier $$v2_security_data_point_identifier_description$$
136
+ # @param tag $$v2_security_data_point_item_description$$
137
137
  # @param [Hash] opts the optional parameters
138
138
  # @return [Float]
139
139
  def get_security_data_point_number(identifier, tag, opts = {})
@@ -142,9 +142,9 @@ module Intrinio
142
142
  end
143
143
 
144
144
  # Data Point (Number) for Security
145
- # Returns a numeric value for the given `tag` for the Security with the given `identifier`
146
- # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
147
- # @param tag An Intrinio data tag ID or code-name
145
+ # $$v2_security_data_point_number_description$$
146
+ # @param identifier $$v2_security_data_point_identifier_description$$
147
+ # @param tag $$v2_security_data_point_item_description$$
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
150
150
  def get_security_data_point_number_with_http_info(identifier, tag, opts = {})
@@ -190,8 +190,8 @@ module Intrinio
190
190
  end
191
191
 
192
192
  # Data Point (Text) for Security
193
- # Returns a text value for the given `tag` for the Security with the given `identifier`
194
- # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
193
+ # $$v2_security_data_point_text_description$$
194
+ # @param identifier $$v2_security_data_point_identifier_description$$
195
195
  # @param tag An Intrinio data tag ID or code-name
196
196
  # @param [Hash] opts the optional parameters
197
197
  # @return [String]
@@ -201,8 +201,8 @@ module Intrinio
201
201
  end
202
202
 
203
203
  # Data Point (Text) for Security
204
- # Returns a text value for the given &#x60;tag&#x60; for the Security with the given &#x60;identifier&#x60;
205
- # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
204
+ # $$v2_security_data_point_text_description$$
205
+ # @param identifier $$v2_security_data_point_identifier_description$$
206
206
  # @param tag An Intrinio data tag ID or code-name
207
207
  # @param [Hash] opts the optional parameters
208
208
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
@@ -249,9 +249,9 @@ module Intrinio
249
249
  end
250
250
 
251
251
  # Historical Data for Security
252
- # Returns historical values for the given `tag` and the Security with the given `identifier`
253
- # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
254
- # @param tag An Intrinio data tag ID or code-name
252
+ # $$v2_security_historical_data_description$$
253
+ # @param identifier $$v2_security_historical_data_identifier_description$$
254
+ # @param tag $$v2_security_data_point_item_description$$
255
255
  # @param [Hash] opts the optional parameters
256
256
  # @option opts [String] :frequency Return historical data in the given frequency (default to daily)
257
257
  # @option opts [String] :type Filter by type, when applicable
@@ -267,9 +267,9 @@ module Intrinio
267
267
  end
268
268
 
269
269
  # Historical Data for Security
270
- # Returns historical values for the given &#x60;tag&#x60; and the Security with the given &#x60;identifier&#x60;
271
- # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
272
- # @param tag An Intrinio data tag ID or code-name
270
+ # $$v2_security_historical_data_description$$
271
+ # @param identifier $$v2_security_historical_data_identifier_description$$
272
+ # @param tag $$v2_security_data_point_item_description$$
273
273
  # @param [Hash] opts the optional parameters
274
274
  # @option opts [String] :frequency Return historical data in the given frequency
275
275
  # @option opts [String] :type Filter by type, when applicable
@@ -339,7 +339,7 @@ module Intrinio
339
339
  end
340
340
 
341
341
  # Intraday Stock Prices for Security
342
- # Return intraday stock prices for the Security with the given `identifier`
342
+ # $$v2_security_intraday_prices_description$$
343
343
  # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
344
344
  # @param [Hash] opts the optional parameters
345
345
  # @option opts [String] :source Return intraday prices from the specified data source
@@ -354,7 +354,7 @@ module Intrinio
354
354
  end
355
355
 
356
356
  # Intraday Stock Prices for Security
357
- # Return intraday stock prices for the Security with the given &#x60;identifier&#x60;
357
+ # $$v2_security_intraday_prices_description$$
358
358
  # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
359
359
  # @param [Hash] opts the optional parameters
360
360
  # @option opts [String] :source Return intraday prices from the specified data source
@@ -515,6 +515,2457 @@ module Intrinio
515
515
  return data, status_code, headers
516
516
  end
517
517
 
518
+ # Accumulation/Distribution Index
519
+ # Returns the Accumulation/Distribution Index values of Stock Prices for the Security with the given `identifier`
520
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
521
+ # @param [Hash] opts the optional parameters
522
+ # @option opts [String] :start_date Return technical indicator values on or after the date
523
+ # @option opts [String] :end_date Return technical indicator values on or before the date
524
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
525
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
526
+ # @return [ApiResponseSecurityAccumulationDistributionIndex]
527
+ def get_security_price_technicals_adi(identifier, opts = {})
528
+ data, _status_code, _headers = get_security_price_technicals_adi_with_http_info(identifier, opts)
529
+ return data
530
+ end
531
+
532
+ # Accumulation/Distribution Index
533
+ # Returns the Accumulation/Distribution Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
534
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
535
+ # @param [Hash] opts the optional parameters
536
+ # @option opts [String] :start_date Return technical indicator values on or after the date
537
+ # @option opts [String] :end_date Return technical indicator values on or before the date
538
+ # @option opts [Integer] :page_size The number of results to return
539
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
540
+ # @return [Array<(ApiResponseSecurityAccumulationDistributionIndex, Fixnum, Hash)>] ApiResponseSecurityAccumulationDistributionIndex data, response status code and response headers
541
+ def get_security_price_technicals_adi_with_http_info(identifier, opts = {})
542
+ if @api_client.config.debugging
543
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_adi ..."
544
+ end
545
+ # verify the required parameter 'identifier' is set
546
+ if @api_client.config.client_side_validation && identifier.nil?
547
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_adi"
548
+ end
549
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
550
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_adi, must be smaller than or equal to 10000.'
551
+ end
552
+
553
+ # resource path
554
+ local_var_path = "/securities/{identifier}/prices/technicals/adi".sub('{' + 'identifier' + '}', identifier.to_s)
555
+
556
+ # query parameters
557
+ query_params = {}
558
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
559
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
560
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
561
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
562
+
563
+ # header parameters
564
+ header_params = {}
565
+ # HTTP header 'Accept' (if needed)
566
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
567
+
568
+ # form parameters
569
+ form_params = {}
570
+
571
+ # http body (model)
572
+ post_body = nil
573
+ auth_names = ['ApiKeyAuth']
574
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
575
+ :header_params => header_params,
576
+ :query_params => query_params,
577
+ :form_params => form_params,
578
+ :body => post_body,
579
+ :auth_names => auth_names,
580
+ :return_type => 'ApiResponseSecurityAccumulationDistributionIndex')
581
+ if @api_client.config.debugging
582
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_adi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
583
+ end
584
+ return data, status_code, headers
585
+ end
586
+
587
+ # Average Daily Trading Volume
588
+ # Returns the Average Daily Trading Volume values of Stock Prices for the Security with the given `identifier`
589
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Daily Trading Volume (default to 22)
592
+ # @option opts [String] :start_date Return technical indicator values on or after the date
593
+ # @option opts [String] :end_date Return technical indicator values on or before the date
594
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
595
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
596
+ # @return [ApiResponseSecurityAverageDailyTradingVolume]
597
+ def get_security_price_technicals_adtv(identifier, opts = {})
598
+ data, _status_code, _headers = get_security_price_technicals_adtv_with_http_info(identifier, opts)
599
+ return data
600
+ end
601
+
602
+ # Average Daily Trading Volume
603
+ # Returns the Average Daily Trading Volume values of Stock Prices for the Security with the given &#x60;identifier&#x60;
604
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
605
+ # @param [Hash] opts the optional parameters
606
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Daily Trading Volume
607
+ # @option opts [String] :start_date Return technical indicator values on or after the date
608
+ # @option opts [String] :end_date Return technical indicator values on or before the date
609
+ # @option opts [Integer] :page_size The number of results to return
610
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
611
+ # @return [Array<(ApiResponseSecurityAverageDailyTradingVolume, Fixnum, Hash)>] ApiResponseSecurityAverageDailyTradingVolume data, response status code and response headers
612
+ def get_security_price_technicals_adtv_with_http_info(identifier, opts = {})
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_adtv ..."
615
+ end
616
+ # verify the required parameter 'identifier' is set
617
+ if @api_client.config.client_side_validation && identifier.nil?
618
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_adtv"
619
+ end
620
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
621
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_adtv, must be greater than or equal to 5.'
622
+ end
623
+
624
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
625
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_adtv, must be smaller than or equal to 10000.'
626
+ end
627
+
628
+ # resource path
629
+ local_var_path = "/securities/{identifier}/prices/technicals/adtv".sub('{' + 'identifier' + '}', identifier.to_s)
630
+
631
+ # query parameters
632
+ query_params = {}
633
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
634
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
635
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
636
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
637
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
638
+
639
+ # header parameters
640
+ header_params = {}
641
+ # HTTP header 'Accept' (if needed)
642
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
643
+
644
+ # form parameters
645
+ form_params = {}
646
+
647
+ # http body (model)
648
+ post_body = nil
649
+ auth_names = ['ApiKeyAuth']
650
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
651
+ :header_params => header_params,
652
+ :query_params => query_params,
653
+ :form_params => form_params,
654
+ :body => post_body,
655
+ :auth_names => auth_names,
656
+ :return_type => 'ApiResponseSecurityAverageDailyTradingVolume')
657
+ if @api_client.config.debugging
658
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_adtv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
659
+ end
660
+ return data, status_code, headers
661
+ end
662
+
663
+ # Average Directional Index
664
+ # Returns the Average Directional Index values of Stock Prices for the Security with the given `identifier`
665
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
666
+ # @param [Hash] opts the optional parameters
667
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Directional Index (default to 14)
668
+ # @option opts [String] :start_date Return technical indicator values on or after the date
669
+ # @option opts [String] :end_date Return technical indicator values on or before the date
670
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
671
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
672
+ # @return [ApiResponseSecurityAverageDirectionalIndex]
673
+ def get_security_price_technicals_adx(identifier, opts = {})
674
+ data, _status_code, _headers = get_security_price_technicals_adx_with_http_info(identifier, opts)
675
+ return data
676
+ end
677
+
678
+ # Average Directional Index
679
+ # Returns the Average Directional Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
680
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
681
+ # @param [Hash] opts the optional parameters
682
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Directional Index
683
+ # @option opts [String] :start_date Return technical indicator values on or after the date
684
+ # @option opts [String] :end_date Return technical indicator values on or before the date
685
+ # @option opts [Integer] :page_size The number of results to return
686
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
687
+ # @return [Array<(ApiResponseSecurityAverageDirectionalIndex, Fixnum, Hash)>] ApiResponseSecurityAverageDirectionalIndex data, response status code and response headers
688
+ def get_security_price_technicals_adx_with_http_info(identifier, opts = {})
689
+ if @api_client.config.debugging
690
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_adx ..."
691
+ end
692
+ # verify the required parameter 'identifier' is set
693
+ if @api_client.config.client_side_validation && identifier.nil?
694
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_adx"
695
+ end
696
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 3
697
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_adx, must be greater than or equal to 3.'
698
+ end
699
+
700
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
701
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_adx, must be smaller than or equal to 10000.'
702
+ end
703
+
704
+ # resource path
705
+ local_var_path = "/securities/{identifier}/prices/technicals/adx".sub('{' + 'identifier' + '}', identifier.to_s)
706
+
707
+ # query parameters
708
+ query_params = {}
709
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
710
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
711
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
712
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
713
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
714
+
715
+ # header parameters
716
+ header_params = {}
717
+ # HTTP header 'Accept' (if needed)
718
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
719
+
720
+ # form parameters
721
+ form_params = {}
722
+
723
+ # http body (model)
724
+ post_body = nil
725
+ auth_names = ['ApiKeyAuth']
726
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
727
+ :header_params => header_params,
728
+ :query_params => query_params,
729
+ :form_params => form_params,
730
+ :body => post_body,
731
+ :auth_names => auth_names,
732
+ :return_type => 'ApiResponseSecurityAverageDirectionalIndex')
733
+ if @api_client.config.debugging
734
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_adx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
735
+ end
736
+ return data, status_code, headers
737
+ end
738
+
739
+ # Awesome Oscillator
740
+ # Returns the Awesome Oscillator values of Stock Prices for the Security with the given `identifier`
741
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
742
+ # @param [Hash] opts the optional parameters
743
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate short period Simple Moving Average of the Awesome Oscillator (default to 5)
744
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate long period Simple Moving Average of the Awesome Oscillator (default to 34)
745
+ # @option opts [String] :start_date Return technical indicator values on or after the date
746
+ # @option opts [String] :end_date Return technical indicator values on or before the date
747
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
748
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
749
+ # @return [ApiResponseSecurityAwesomeOscillator]
750
+ def get_security_price_technicals_ao(identifier, opts = {})
751
+ data, _status_code, _headers = get_security_price_technicals_ao_with_http_info(identifier, opts)
752
+ return data
753
+ end
754
+
755
+ # Awesome Oscillator
756
+ # Returns the Awesome Oscillator values of Stock Prices for the Security with the given &#x60;identifier&#x60;
757
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
758
+ # @param [Hash] opts the optional parameters
759
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate short period Simple Moving Average of the Awesome Oscillator
760
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate long period Simple Moving Average of the Awesome Oscillator
761
+ # @option opts [String] :start_date Return technical indicator values on or after the date
762
+ # @option opts [String] :end_date Return technical indicator values on or before the date
763
+ # @option opts [Integer] :page_size The number of results to return
764
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
765
+ # @return [Array<(ApiResponseSecurityAwesomeOscillator, Fixnum, Hash)>] ApiResponseSecurityAwesomeOscillator data, response status code and response headers
766
+ def get_security_price_technicals_ao_with_http_info(identifier, opts = {})
767
+ if @api_client.config.debugging
768
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_ao ..."
769
+ end
770
+ # verify the required parameter 'identifier' is set
771
+ if @api_client.config.client_side_validation && identifier.nil?
772
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_ao"
773
+ end
774
+ if @api_client.config.client_side_validation && !opts[:'long_period'].nil? && opts[:'long_period'] < 5
775
+ fail ArgumentError, 'invalid value for "opts[:"long_period"]" when calling SecurityApi.get_security_price_technicals_ao, must be greater than or equal to 5.'
776
+ end
777
+
778
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
779
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_ao, must be smaller than or equal to 10000.'
780
+ end
781
+
782
+ # resource path
783
+ local_var_path = "/securities/{identifier}/prices/technicals/ao".sub('{' + 'identifier' + '}', identifier.to_s)
784
+
785
+ # query parameters
786
+ query_params = {}
787
+ query_params[:'short_period'] = opts[:'short_period'] if !opts[:'short_period'].nil?
788
+ query_params[:'long_period'] = opts[:'long_period'] if !opts[:'long_period'].nil?
789
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
790
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
791
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
792
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
793
+
794
+ # header parameters
795
+ header_params = {}
796
+ # HTTP header 'Accept' (if needed)
797
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
798
+
799
+ # form parameters
800
+ form_params = {}
801
+
802
+ # http body (model)
803
+ post_body = nil
804
+ auth_names = ['ApiKeyAuth']
805
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
806
+ :header_params => header_params,
807
+ :query_params => query_params,
808
+ :form_params => form_params,
809
+ :body => post_body,
810
+ :auth_names => auth_names,
811
+ :return_type => 'ApiResponseSecurityAwesomeOscillator')
812
+ if @api_client.config.debugging
813
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_ao\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
814
+ end
815
+ return data, status_code, headers
816
+ end
817
+
818
+ # Average True Range
819
+ # Returns the Average True Range values of Stock Prices for the Security with the given `identifier`
820
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
821
+ # @param [Hash] opts the optional parameters
822
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average True Range (default to 14)
823
+ # @option opts [String] :start_date Return technical indicator values on or after the date
824
+ # @option opts [String] :end_date Return technical indicator values on or before the date
825
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
826
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
827
+ # @return [ApiResponseSecurityAverageTrueRange]
828
+ def get_security_price_technicals_atr(identifier, opts = {})
829
+ data, _status_code, _headers = get_security_price_technicals_atr_with_http_info(identifier, opts)
830
+ return data
831
+ end
832
+
833
+ # Average True Range
834
+ # Returns the Average True Range values of Stock Prices for the Security with the given &#x60;identifier&#x60;
835
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
836
+ # @param [Hash] opts the optional parameters
837
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average True Range
838
+ # @option opts [String] :start_date Return technical indicator values on or after the date
839
+ # @option opts [String] :end_date Return technical indicator values on or before the date
840
+ # @option opts [Integer] :page_size The number of results to return
841
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
842
+ # @return [Array<(ApiResponseSecurityAverageTrueRange, Fixnum, Hash)>] ApiResponseSecurityAverageTrueRange data, response status code and response headers
843
+ def get_security_price_technicals_atr_with_http_info(identifier, opts = {})
844
+ if @api_client.config.debugging
845
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_atr ..."
846
+ end
847
+ # verify the required parameter 'identifier' is set
848
+ if @api_client.config.client_side_validation && identifier.nil?
849
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_atr"
850
+ end
851
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
852
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_atr, must be greater than or equal to 4.'
853
+ end
854
+
855
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
856
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_atr, must be smaller than or equal to 10000.'
857
+ end
858
+
859
+ # resource path
860
+ local_var_path = "/securities/{identifier}/prices/technicals/atr".sub('{' + 'identifier' + '}', identifier.to_s)
861
+
862
+ # query parameters
863
+ query_params = {}
864
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
865
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
866
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
867
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
868
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
869
+
870
+ # header parameters
871
+ header_params = {}
872
+ # HTTP header 'Accept' (if needed)
873
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
874
+
875
+ # form parameters
876
+ form_params = {}
877
+
878
+ # http body (model)
879
+ post_body = nil
880
+ auth_names = ['ApiKeyAuth']
881
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
882
+ :header_params => header_params,
883
+ :query_params => query_params,
884
+ :form_params => form_params,
885
+ :body => post_body,
886
+ :auth_names => auth_names,
887
+ :return_type => 'ApiResponseSecurityAverageTrueRange')
888
+ if @api_client.config.debugging
889
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_atr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
890
+ end
891
+ return data, status_code, headers
892
+ end
893
+
894
+ # Bollinger Bands
895
+ # Returns the Bollinger Bands values of Stock Prices for the Security with the given `identifier`
896
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
897
+ # @param [Hash] opts the optional parameters
898
+ # @option opts [Integer] :period The number of observations, per period, to calculate Bollinger Bands (default to 20)
899
+ # @option opts [Float] :standard_deviations The number of standard deviations to calculate the upper and lower bands of the Bollinger Bands (default to 2.0)
900
+ # @option opts [String] :price_key The Stock Price field to use when calculating Bollinger Bands (default to close)
901
+ # @option opts [String] :start_date Return technical indicator values on or after the date
902
+ # @option opts [String] :end_date Return technical indicator values on or before the date
903
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
904
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
905
+ # @return [ApiResponseSecurityBollingerBands]
906
+ def get_security_price_technicals_bb(identifier, opts = {})
907
+ data, _status_code, _headers = get_security_price_technicals_bb_with_http_info(identifier, opts)
908
+ return data
909
+ end
910
+
911
+ # Bollinger Bands
912
+ # Returns the Bollinger Bands values of Stock Prices for the Security with the given &#x60;identifier&#x60;
913
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
914
+ # @param [Hash] opts the optional parameters
915
+ # @option opts [Integer] :period The number of observations, per period, to calculate Bollinger Bands
916
+ # @option opts [Float] :standard_deviations The number of standard deviations to calculate the upper and lower bands of the Bollinger Bands
917
+ # @option opts [String] :price_key The Stock Price field to use when calculating Bollinger Bands
918
+ # @option opts [String] :start_date Return technical indicator values on or after the date
919
+ # @option opts [String] :end_date Return technical indicator values on or before the date
920
+ # @option opts [Integer] :page_size The number of results to return
921
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
922
+ # @return [Array<(ApiResponseSecurityBollingerBands, Fixnum, Hash)>] ApiResponseSecurityBollingerBands data, response status code and response headers
923
+ def get_security_price_technicals_bb_with_http_info(identifier, opts = {})
924
+ if @api_client.config.debugging
925
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_bb ..."
926
+ end
927
+ # verify the required parameter 'identifier' is set
928
+ if @api_client.config.client_side_validation && identifier.nil?
929
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_bb"
930
+ end
931
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
932
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_bb, must be greater than or equal to 5.'
933
+ end
934
+
935
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
936
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
937
+ end
938
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
939
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_bb, must be smaller than or equal to 10000.'
940
+ end
941
+
942
+ # resource path
943
+ local_var_path = "/securities/{identifier}/prices/technicals/bb".sub('{' + 'identifier' + '}', identifier.to_s)
944
+
945
+ # query parameters
946
+ query_params = {}
947
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
948
+ query_params[:'standard_deviations'] = opts[:'standard_deviations'] if !opts[:'standard_deviations'].nil?
949
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
950
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
951
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
952
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
953
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
954
+
955
+ # header parameters
956
+ header_params = {}
957
+ # HTTP header 'Accept' (if needed)
958
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
959
+
960
+ # form parameters
961
+ form_params = {}
962
+
963
+ # http body (model)
964
+ post_body = nil
965
+ auth_names = ['ApiKeyAuth']
966
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
967
+ :header_params => header_params,
968
+ :query_params => query_params,
969
+ :form_params => form_params,
970
+ :body => post_body,
971
+ :auth_names => auth_names,
972
+ :return_type => 'ApiResponseSecurityBollingerBands')
973
+ if @api_client.config.debugging
974
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_bb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
975
+ end
976
+ return data, status_code, headers
977
+ end
978
+
979
+ # Commodity Channel Index
980
+ # Returns the Commodity Channel Index values of Stock Prices for the Security with the given `identifier`
981
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
982
+ # @param [Hash] opts the optional parameters
983
+ # @option opts [Integer] :period The number of observations, per period, to calculate Commodity Channel Index (default to 20)
984
+ # @option opts [Float] :constant The number of observations, per period, to calculate Commodity Channel Index (default to 0.015)
985
+ # @option opts [String] :start_date Return technical indicator values on or after the date
986
+ # @option opts [String] :end_date Return technical indicator values on or before the date
987
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
988
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
989
+ # @return [ApiResponseSecurityCommodityChannelIndex]
990
+ def get_security_price_technicals_cci(identifier, opts = {})
991
+ data, _status_code, _headers = get_security_price_technicals_cci_with_http_info(identifier, opts)
992
+ return data
993
+ end
994
+
995
+ # Commodity Channel Index
996
+ # Returns the Commodity Channel Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
997
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
998
+ # @param [Hash] opts the optional parameters
999
+ # @option opts [Integer] :period The number of observations, per period, to calculate Commodity Channel Index
1000
+ # @option opts [Float] :constant The number of observations, per period, to calculate Commodity Channel Index
1001
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1002
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1003
+ # @option opts [Integer] :page_size The number of results to return
1004
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1005
+ # @return [Array<(ApiResponseSecurityCommodityChannelIndex, Fixnum, Hash)>] ApiResponseSecurityCommodityChannelIndex data, response status code and response headers
1006
+ def get_security_price_technicals_cci_with_http_info(identifier, opts = {})
1007
+ if @api_client.config.debugging
1008
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_cci ..."
1009
+ end
1010
+ # verify the required parameter 'identifier' is set
1011
+ if @api_client.config.client_side_validation && identifier.nil?
1012
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_cci"
1013
+ end
1014
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1015
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_cci, must be greater than or equal to 5.'
1016
+ end
1017
+
1018
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1019
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_cci, must be smaller than or equal to 10000.'
1020
+ end
1021
+
1022
+ # resource path
1023
+ local_var_path = "/securities/{identifier}/prices/technicals/cci".sub('{' + 'identifier' + '}', identifier.to_s)
1024
+
1025
+ # query parameters
1026
+ query_params = {}
1027
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1028
+ query_params[:'constant'] = opts[:'constant'] if !opts[:'constant'].nil?
1029
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1030
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1031
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1032
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1033
+
1034
+ # header parameters
1035
+ header_params = {}
1036
+ # HTTP header 'Accept' (if needed)
1037
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1038
+
1039
+ # form parameters
1040
+ form_params = {}
1041
+
1042
+ # http body (model)
1043
+ post_body = nil
1044
+ auth_names = ['ApiKeyAuth']
1045
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1046
+ :header_params => header_params,
1047
+ :query_params => query_params,
1048
+ :form_params => form_params,
1049
+ :body => post_body,
1050
+ :auth_names => auth_names,
1051
+ :return_type => 'ApiResponseSecurityCommodityChannelIndex')
1052
+ if @api_client.config.debugging
1053
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_cci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1054
+ end
1055
+ return data, status_code, headers
1056
+ end
1057
+
1058
+ # Chaikin Money Flow
1059
+ # Returns the Chaikin Money Flow values of Stock Prices for the Security with the given `identifier`
1060
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1061
+ # @param [Hash] opts the optional parameters
1062
+ # @option opts [Integer] :period The number of observations, per period, to calculate Chaikin Money Flow (default to 20)
1063
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1064
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1065
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1066
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1067
+ # @return [ApiResponseSecurityChaikinMoneyFlow]
1068
+ def get_security_price_technicals_cmf(identifier, opts = {})
1069
+ data, _status_code, _headers = get_security_price_technicals_cmf_with_http_info(identifier, opts)
1070
+ return data
1071
+ end
1072
+
1073
+ # Chaikin Money Flow
1074
+ # Returns the Chaikin Money Flow values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1075
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1076
+ # @param [Hash] opts the optional parameters
1077
+ # @option opts [Integer] :period The number of observations, per period, to calculate Chaikin Money Flow
1078
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1079
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1080
+ # @option opts [Integer] :page_size The number of results to return
1081
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1082
+ # @return [Array<(ApiResponseSecurityChaikinMoneyFlow, Fixnum, Hash)>] ApiResponseSecurityChaikinMoneyFlow data, response status code and response headers
1083
+ def get_security_price_technicals_cmf_with_http_info(identifier, opts = {})
1084
+ if @api_client.config.debugging
1085
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_cmf ..."
1086
+ end
1087
+ # verify the required parameter 'identifier' is set
1088
+ if @api_client.config.client_side_validation && identifier.nil?
1089
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_cmf"
1090
+ end
1091
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1092
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_cmf, must be greater than or equal to 5.'
1093
+ end
1094
+
1095
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1096
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_cmf, must be smaller than or equal to 10000.'
1097
+ end
1098
+
1099
+ # resource path
1100
+ local_var_path = "/securities/{identifier}/prices/technicals/cmf".sub('{' + 'identifier' + '}', identifier.to_s)
1101
+
1102
+ # query parameters
1103
+ query_params = {}
1104
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1105
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1106
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1107
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1108
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1109
+
1110
+ # header parameters
1111
+ header_params = {}
1112
+ # HTTP header 'Accept' (if needed)
1113
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1114
+
1115
+ # form parameters
1116
+ form_params = {}
1117
+
1118
+ # http body (model)
1119
+ post_body = nil
1120
+ auth_names = ['ApiKeyAuth']
1121
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1122
+ :header_params => header_params,
1123
+ :query_params => query_params,
1124
+ :form_params => form_params,
1125
+ :body => post_body,
1126
+ :auth_names => auth_names,
1127
+ :return_type => 'ApiResponseSecurityChaikinMoneyFlow')
1128
+ if @api_client.config.debugging
1129
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_cmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1130
+ end
1131
+ return data, status_code, headers
1132
+ end
1133
+
1134
+ # Donchian Channel
1135
+ # Returns the Donchian Channel values of Stock Prices for the Security with the given `identifier`
1136
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1137
+ # @param [Hash] opts the optional parameters
1138
+ # @option opts [Integer] :period The number of observations, per period, to calculate Donchian Channel (default to 20)
1139
+ # @option opts [String] :price_key The Stock Price field to use when calculating Donchian Channel (default to close)
1140
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1141
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1142
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1143
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1144
+ # @return [ApiResponseSecurityDonchianChannel]
1145
+ def get_security_price_technicals_dc(identifier, opts = {})
1146
+ data, _status_code, _headers = get_security_price_technicals_dc_with_http_info(identifier, opts)
1147
+ return data
1148
+ end
1149
+
1150
+ # Donchian Channel
1151
+ # Returns the Donchian Channel values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1152
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1153
+ # @param [Hash] opts the optional parameters
1154
+ # @option opts [Integer] :period The number of observations, per period, to calculate Donchian Channel
1155
+ # @option opts [String] :price_key The Stock Price field to use when calculating Donchian Channel
1156
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1157
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1158
+ # @option opts [Integer] :page_size The number of results to return
1159
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1160
+ # @return [Array<(ApiResponseSecurityDonchianChannel, Fixnum, Hash)>] ApiResponseSecurityDonchianChannel data, response status code and response headers
1161
+ def get_security_price_technicals_dc_with_http_info(identifier, opts = {})
1162
+ if @api_client.config.debugging
1163
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_dc ..."
1164
+ end
1165
+ # verify the required parameter 'identifier' is set
1166
+ if @api_client.config.client_side_validation && identifier.nil?
1167
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_dc"
1168
+ end
1169
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1170
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_dc, must be greater than or equal to 5.'
1171
+ end
1172
+
1173
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1174
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1175
+ end
1176
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1177
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_dc, must be smaller than or equal to 10000.'
1178
+ end
1179
+
1180
+ # resource path
1181
+ local_var_path = "/securities/{identifier}/prices/technicals/dc".sub('{' + 'identifier' + '}', identifier.to_s)
1182
+
1183
+ # query parameters
1184
+ query_params = {}
1185
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1186
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1187
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1188
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1189
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1190
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1191
+
1192
+ # header parameters
1193
+ header_params = {}
1194
+ # HTTP header 'Accept' (if needed)
1195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1196
+
1197
+ # form parameters
1198
+ form_params = {}
1199
+
1200
+ # http body (model)
1201
+ post_body = nil
1202
+ auth_names = ['ApiKeyAuth']
1203
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1204
+ :header_params => header_params,
1205
+ :query_params => query_params,
1206
+ :form_params => form_params,
1207
+ :body => post_body,
1208
+ :auth_names => auth_names,
1209
+ :return_type => 'ApiResponseSecurityDonchianChannel')
1210
+ if @api_client.config.debugging
1211
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_dc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1212
+ end
1213
+ return data, status_code, headers
1214
+ end
1215
+
1216
+ # Detrended Price Oscillator
1217
+ # Returns the Detrended Price Oscillator values of Stock Prices for the Security with the given `identifier`
1218
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1219
+ # @param [Hash] opts the optional parameters
1220
+ # @option opts [Integer] :period The number of observations, per period, to calculate Detrended Price Oscillator (default to 20)
1221
+ # @option opts [String] :price_key The Stock Price field to use when calculating Detrended Price Oscillator (default to close)
1222
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1223
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1224
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1225
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1226
+ # @return [ApiResponseSecurityDetrendedPriceOscillator]
1227
+ def get_security_price_technicals_dpo(identifier, opts = {})
1228
+ data, _status_code, _headers = get_security_price_technicals_dpo_with_http_info(identifier, opts)
1229
+ return data
1230
+ end
1231
+
1232
+ # Detrended Price Oscillator
1233
+ # Returns the Detrended Price Oscillator values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1234
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1235
+ # @param [Hash] opts the optional parameters
1236
+ # @option opts [Integer] :period The number of observations, per period, to calculate Detrended Price Oscillator
1237
+ # @option opts [String] :price_key The Stock Price field to use when calculating Detrended Price Oscillator
1238
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1239
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1240
+ # @option opts [Integer] :page_size The number of results to return
1241
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1242
+ # @return [Array<(ApiResponseSecurityDetrendedPriceOscillator, Fixnum, Hash)>] ApiResponseSecurityDetrendedPriceOscillator data, response status code and response headers
1243
+ def get_security_price_technicals_dpo_with_http_info(identifier, opts = {})
1244
+ if @api_client.config.debugging
1245
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_dpo ..."
1246
+ end
1247
+ # verify the required parameter 'identifier' is set
1248
+ if @api_client.config.client_side_validation && identifier.nil?
1249
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_dpo"
1250
+ end
1251
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1252
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1253
+ end
1254
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1255
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_dpo, must be smaller than or equal to 10000.'
1256
+ end
1257
+
1258
+ # resource path
1259
+ local_var_path = "/securities/{identifier}/prices/technicals/dpo".sub('{' + 'identifier' + '}', identifier.to_s)
1260
+
1261
+ # query parameters
1262
+ query_params = {}
1263
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1264
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1265
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1266
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1267
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1268
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1269
+
1270
+ # header parameters
1271
+ header_params = {}
1272
+ # HTTP header 'Accept' (if needed)
1273
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1274
+
1275
+ # form parameters
1276
+ form_params = {}
1277
+
1278
+ # http body (model)
1279
+ post_body = nil
1280
+ auth_names = ['ApiKeyAuth']
1281
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1282
+ :header_params => header_params,
1283
+ :query_params => query_params,
1284
+ :form_params => form_params,
1285
+ :body => post_body,
1286
+ :auth_names => auth_names,
1287
+ :return_type => 'ApiResponseSecurityDetrendedPriceOscillator')
1288
+ if @api_client.config.debugging
1289
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_dpo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1290
+ end
1291
+ return data, status_code, headers
1292
+ end
1293
+
1294
+ # Ease of Movement
1295
+ # Returns the Ease of Movement values of Stock Prices for the Security with the given `identifier`
1296
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1297
+ # @param [Hash] opts the optional parameters
1298
+ # @option opts [Integer] :period The number of observations, per period, to calculate Ease of Movement (default to 20)
1299
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1300
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1301
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1302
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1303
+ # @return [ApiResponseSecurityEaseOfMovement]
1304
+ def get_security_price_technicals_eom(identifier, opts = {})
1305
+ data, _status_code, _headers = get_security_price_technicals_eom_with_http_info(identifier, opts)
1306
+ return data
1307
+ end
1308
+
1309
+ # Ease of Movement
1310
+ # Returns the Ease of Movement values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1311
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1312
+ # @param [Hash] opts the optional parameters
1313
+ # @option opts [Integer] :period The number of observations, per period, to calculate Ease of Movement
1314
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1315
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1316
+ # @option opts [Integer] :page_size The number of results to return
1317
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1318
+ # @return [Array<(ApiResponseSecurityEaseOfMovement, Fixnum, Hash)>] ApiResponseSecurityEaseOfMovement data, response status code and response headers
1319
+ def get_security_price_technicals_eom_with_http_info(identifier, opts = {})
1320
+ if @api_client.config.debugging
1321
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_eom ..."
1322
+ end
1323
+ # verify the required parameter 'identifier' is set
1324
+ if @api_client.config.client_side_validation && identifier.nil?
1325
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_eom"
1326
+ end
1327
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
1328
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_eom, must be greater than or equal to 4.'
1329
+ end
1330
+
1331
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1332
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_eom, must be smaller than or equal to 10000.'
1333
+ end
1334
+
1335
+ # resource path
1336
+ local_var_path = "/securities/{identifier}/prices/technicals/eom".sub('{' + 'identifier' + '}', identifier.to_s)
1337
+
1338
+ # query parameters
1339
+ query_params = {}
1340
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1341
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1342
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1343
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1344
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1345
+
1346
+ # header parameters
1347
+ header_params = {}
1348
+ # HTTP header 'Accept' (if needed)
1349
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1350
+
1351
+ # form parameters
1352
+ form_params = {}
1353
+
1354
+ # http body (model)
1355
+ post_body = nil
1356
+ auth_names = ['ApiKeyAuth']
1357
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1358
+ :header_params => header_params,
1359
+ :query_params => query_params,
1360
+ :form_params => form_params,
1361
+ :body => post_body,
1362
+ :auth_names => auth_names,
1363
+ :return_type => 'ApiResponseSecurityEaseOfMovement')
1364
+ if @api_client.config.debugging
1365
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_eom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1366
+ end
1367
+ return data, status_code, headers
1368
+ end
1369
+
1370
+ # Force Index
1371
+ # Returns the Force Index values of Stock Prices for the Security with the given `identifier`
1372
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1373
+ # @param [Hash] opts the optional parameters
1374
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1375
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1376
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1377
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1378
+ # @return [ApiResponseSecurityForceIndex]
1379
+ def get_security_price_technicals_fi(identifier, opts = {})
1380
+ data, _status_code, _headers = get_security_price_technicals_fi_with_http_info(identifier, opts)
1381
+ return data
1382
+ end
1383
+
1384
+ # Force Index
1385
+ # Returns the Force Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1386
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1387
+ # @param [Hash] opts the optional parameters
1388
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1389
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1390
+ # @option opts [Integer] :page_size The number of results to return
1391
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1392
+ # @return [Array<(ApiResponseSecurityForceIndex, Fixnum, Hash)>] ApiResponseSecurityForceIndex data, response status code and response headers
1393
+ def get_security_price_technicals_fi_with_http_info(identifier, opts = {})
1394
+ if @api_client.config.debugging
1395
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_fi ..."
1396
+ end
1397
+ # verify the required parameter 'identifier' is set
1398
+ if @api_client.config.client_side_validation && identifier.nil?
1399
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_fi"
1400
+ end
1401
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1402
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_fi, must be smaller than or equal to 10000.'
1403
+ end
1404
+
1405
+ # resource path
1406
+ local_var_path = "/securities/{identifier}/prices/technicals/fi".sub('{' + 'identifier' + '}', identifier.to_s)
1407
+
1408
+ # query parameters
1409
+ query_params = {}
1410
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1411
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1412
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1413
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1414
+
1415
+ # header parameters
1416
+ header_params = {}
1417
+ # HTTP header 'Accept' (if needed)
1418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1419
+
1420
+ # form parameters
1421
+ form_params = {}
1422
+
1423
+ # http body (model)
1424
+ post_body = nil
1425
+ auth_names = ['ApiKeyAuth']
1426
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1427
+ :header_params => header_params,
1428
+ :query_params => query_params,
1429
+ :form_params => form_params,
1430
+ :body => post_body,
1431
+ :auth_names => auth_names,
1432
+ :return_type => 'ApiResponseSecurityForceIndex')
1433
+ if @api_client.config.debugging
1434
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_fi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1435
+ end
1436
+ return data, status_code, headers
1437
+ end
1438
+
1439
+ # Ichimoku Kinko Hyo
1440
+ # Returns the Ichimoku Kinko Hyo values of Stock Prices for the Security with the given `identifier`
1441
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1442
+ # @param [Hash] opts the optional parameters
1443
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo (default to 9)
1444
+ # @option opts [Integer] :medium_period 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 (default to 26)
1445
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate Senkou Span B (Leading Span B) of Ichimoku Kinko Hyo (default to 52)
1446
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1447
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1448
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1449
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1450
+ # @return [ApiResponseSecurityIchimokuKinkoHyo]
1451
+ def get_security_price_technicals_ichimoku(identifier, opts = {})
1452
+ data, _status_code, _headers = get_security_price_technicals_ichimoku_with_http_info(identifier, opts)
1453
+ return data
1454
+ end
1455
+
1456
+ # Ichimoku Kinko Hyo
1457
+ # Returns the Ichimoku Kinko Hyo values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1458
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1459
+ # @param [Hash] opts the optional parameters
1460
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo
1461
+ # @option opts [Integer] :medium_period 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
1462
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate Senkou Span B (Leading Span B) of Ichimoku Kinko Hyo
1463
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1464
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1465
+ # @option opts [Integer] :page_size The number of results to return
1466
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1467
+ # @return [Array<(ApiResponseSecurityIchimokuKinkoHyo, Fixnum, Hash)>] ApiResponseSecurityIchimokuKinkoHyo data, response status code and response headers
1468
+ def get_security_price_technicals_ichimoku_with_http_info(identifier, opts = {})
1469
+ if @api_client.config.debugging
1470
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_ichimoku ..."
1471
+ end
1472
+ # verify the required parameter 'identifier' is set
1473
+ if @api_client.config.client_side_validation && identifier.nil?
1474
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_ichimoku"
1475
+ end
1476
+ if @api_client.config.client_side_validation && !opts[:'medium_period'].nil? && opts[:'medium_period'] < 2
1477
+ fail ArgumentError, 'invalid value for "opts[:"medium_period"]" when calling SecurityApi.get_security_price_technicals_ichimoku, must be greater than or equal to 2.'
1478
+ end
1479
+
1480
+ if @api_client.config.client_side_validation && !opts[:'high_period'].nil? && opts[:'high_period'] < 4
1481
+ fail ArgumentError, 'invalid value for "opts[:"high_period"]" when calling SecurityApi.get_security_price_technicals_ichimoku, must be greater than or equal to 4.'
1482
+ end
1483
+
1484
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1485
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_ichimoku, must be smaller than or equal to 10000.'
1486
+ end
1487
+
1488
+ # resource path
1489
+ local_var_path = "/securities/{identifier}/prices/technicals/ichimoku".sub('{' + 'identifier' + '}', identifier.to_s)
1490
+
1491
+ # query parameters
1492
+ query_params = {}
1493
+ query_params[:'low_period'] = opts[:'low_period'] if !opts[:'low_period'].nil?
1494
+ query_params[:'medium_period'] = opts[:'medium_period'] if !opts[:'medium_period'].nil?
1495
+ query_params[:'high_period'] = opts[:'high_period'] if !opts[:'high_period'].nil?
1496
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1497
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1498
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1499
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1500
+
1501
+ # header parameters
1502
+ header_params = {}
1503
+ # HTTP header 'Accept' (if needed)
1504
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1505
+
1506
+ # form parameters
1507
+ form_params = {}
1508
+
1509
+ # http body (model)
1510
+ post_body = nil
1511
+ auth_names = ['ApiKeyAuth']
1512
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1513
+ :header_params => header_params,
1514
+ :query_params => query_params,
1515
+ :form_params => form_params,
1516
+ :body => post_body,
1517
+ :auth_names => auth_names,
1518
+ :return_type => 'ApiResponseSecurityIchimokuKinkoHyo')
1519
+ if @api_client.config.debugging
1520
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_ichimoku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1521
+ end
1522
+ return data, status_code, headers
1523
+ end
1524
+
1525
+ # Keltner Channel
1526
+ # Returns the Keltner Channel values of Stock Prices for the Security with the given `identifier`
1527
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1528
+ # @param [Hash] opts the optional parameters
1529
+ # @option opts [Integer] :period The number of observations, per period, to calculate Kelter Channel (default to 10)
1530
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1531
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1532
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1533
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1534
+ # @return [ApiResponseSecurityKeltnerChannel]
1535
+ def get_security_price_technicals_kc(identifier, opts = {})
1536
+ data, _status_code, _headers = get_security_price_technicals_kc_with_http_info(identifier, opts)
1537
+ return data
1538
+ end
1539
+
1540
+ # Keltner Channel
1541
+ # Returns the Keltner Channel values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1542
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1543
+ # @param [Hash] opts the optional parameters
1544
+ # @option opts [Integer] :period The number of observations, per period, to calculate Kelter Channel
1545
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1546
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1547
+ # @option opts [Integer] :page_size The number of results to return
1548
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1549
+ # @return [Array<(ApiResponseSecurityKeltnerChannel, Fixnum, Hash)>] ApiResponseSecurityKeltnerChannel data, response status code and response headers
1550
+ def get_security_price_technicals_kc_with_http_info(identifier, opts = {})
1551
+ if @api_client.config.debugging
1552
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_kc ..."
1553
+ end
1554
+ # verify the required parameter 'identifier' is set
1555
+ if @api_client.config.client_side_validation && identifier.nil?
1556
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_kc"
1557
+ end
1558
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1559
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_kc, must be greater than or equal to 5.'
1560
+ end
1561
+
1562
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1563
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_kc, must be smaller than or equal to 10000.'
1564
+ end
1565
+
1566
+ # resource path
1567
+ local_var_path = "/securities/{identifier}/prices/technicals/kc".sub('{' + 'identifier' + '}', identifier.to_s)
1568
+
1569
+ # query parameters
1570
+ query_params = {}
1571
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1572
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1573
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1574
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1575
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1576
+
1577
+ # header parameters
1578
+ header_params = {}
1579
+ # HTTP header 'Accept' (if needed)
1580
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1581
+
1582
+ # form parameters
1583
+ form_params = {}
1584
+
1585
+ # http body (model)
1586
+ post_body = nil
1587
+ auth_names = ['ApiKeyAuth']
1588
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1589
+ :header_params => header_params,
1590
+ :query_params => query_params,
1591
+ :form_params => form_params,
1592
+ :body => post_body,
1593
+ :auth_names => auth_names,
1594
+ :return_type => 'ApiResponseSecurityKeltnerChannel')
1595
+ if @api_client.config.debugging
1596
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_kc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1597
+ end
1598
+ return data, status_code, headers
1599
+ end
1600
+
1601
+ # Know Sure Thing
1602
+ # Returns the Know Sure Thing values of Stock Prices for the Security with the given `identifier`
1603
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1604
+ # @param [Hash] opts the optional parameters
1605
+ # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1 (default to 10)
1606
+ # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2 (default to 15)
1607
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA2 (default to 15)
1608
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA3 (default to 20)
1609
+ # @option opts [Integer] :roc5 The number of observations, per period, to calculate the rate-of-change for RCMA4 (default to 30)
1610
+ # @option opts [Integer] :sma1 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1 (default to 10)
1611
+ # @option opts [Integer] :sma2 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2 (default to 10)
1612
+ # @option opts [Integer] :sma3 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3 (default to 10)
1613
+ # @option opts [Integer] :sma4 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4 (default to 15)
1614
+ # @option opts [String] :price_key The Stock Price field to use when calculating Know Sure Thing (default to close)
1615
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1616
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1617
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1618
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1619
+ # @return [ApiResponseSecurityKnowSureThing]
1620
+ def get_security_price_technicals_kst(identifier, opts = {})
1621
+ data, _status_code, _headers = get_security_price_technicals_kst_with_http_info(identifier, opts)
1622
+ return data
1623
+ end
1624
+
1625
+ # Know Sure Thing
1626
+ # Returns the Know Sure Thing values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1627
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1628
+ # @param [Hash] opts the optional parameters
1629
+ # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1
1630
+ # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2
1631
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA2
1632
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA3
1633
+ # @option opts [Integer] :roc5 The number of observations, per period, to calculate the rate-of-change for RCMA4
1634
+ # @option opts [Integer] :sma1 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1
1635
+ # @option opts [Integer] :sma2 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2
1636
+ # @option opts [Integer] :sma3 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3
1637
+ # @option opts [Integer] :sma4 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4
1638
+ # @option opts [String] :price_key The Stock Price field to use when calculating Know Sure Thing
1639
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1640
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1641
+ # @option opts [Integer] :page_size The number of results to return
1642
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1643
+ # @return [Array<(ApiResponseSecurityKnowSureThing, Fixnum, Hash)>] ApiResponseSecurityKnowSureThing data, response status code and response headers
1644
+ def get_security_price_technicals_kst_with_http_info(identifier, opts = {})
1645
+ if @api_client.config.debugging
1646
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_kst ..."
1647
+ end
1648
+ # verify the required parameter 'identifier' is set
1649
+ if @api_client.config.client_side_validation && identifier.nil?
1650
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_kst"
1651
+ end
1652
+ if @api_client.config.client_side_validation && !opts[:'roc5'].nil? && opts[:'roc5'] < 3
1653
+ fail ArgumentError, 'invalid value for "opts[:"roc5"]" when calling SecurityApi.get_security_price_technicals_kst, must be greater than or equal to 3.'
1654
+ end
1655
+
1656
+ if @api_client.config.client_side_validation && !opts[:'sma4'].nil? && opts[:'sma4'] < 3
1657
+ fail ArgumentError, 'invalid value for "opts[:"sma4"]" when calling SecurityApi.get_security_price_technicals_kst, must be greater than or equal to 3.'
1658
+ end
1659
+
1660
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1661
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1662
+ end
1663
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1664
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_kst, must be smaller than or equal to 10000.'
1665
+ end
1666
+
1667
+ # resource path
1668
+ local_var_path = "/securities/{identifier}/prices/technicals/kst".sub('{' + 'identifier' + '}', identifier.to_s)
1669
+
1670
+ # query parameters
1671
+ query_params = {}
1672
+ query_params[:'roc1'] = opts[:'roc1'] if !opts[:'roc1'].nil?
1673
+ query_params[:'roc2'] = opts[:'roc2'] if !opts[:'roc2'].nil?
1674
+ query_params[:'roc2'] = opts[:'roc3'] if !opts[:'roc3'].nil?
1675
+ query_params[:'roc3'] = opts[:'roc4'] if !opts[:'roc4'].nil?
1676
+ query_params[:'roc4'] = opts[:'roc5'] if !opts[:'roc5'].nil?
1677
+ query_params[:'sma1'] = opts[:'sma1'] if !opts[:'sma1'].nil?
1678
+ query_params[:'sma2'] = opts[:'sma2'] if !opts[:'sma2'].nil?
1679
+ query_params[:'sma3'] = opts[:'sma3'] if !opts[:'sma3'].nil?
1680
+ query_params[:'sma4'] = opts[:'sma4'] if !opts[:'sma4'].nil?
1681
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1682
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1683
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1684
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1685
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1686
+
1687
+ # header parameters
1688
+ header_params = {}
1689
+ # HTTP header 'Accept' (if needed)
1690
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1691
+
1692
+ # form parameters
1693
+ form_params = {}
1694
+
1695
+ # http body (model)
1696
+ post_body = nil
1697
+ auth_names = ['ApiKeyAuth']
1698
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1699
+ :header_params => header_params,
1700
+ :query_params => query_params,
1701
+ :form_params => form_params,
1702
+ :body => post_body,
1703
+ :auth_names => auth_names,
1704
+ :return_type => 'ApiResponseSecurityKnowSureThing')
1705
+ if @api_client.config.debugging
1706
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_kst\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1707
+ end
1708
+ return data, status_code, headers
1709
+ end
1710
+
1711
+ # Moving Average Convergence Divergence
1712
+ # Returns the Moving Average Convergence Divergence values of Stock Prices for the Security with the given `identifier`
1713
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1714
+ # @param [Hash] opts the optional parameters
1715
+ # @option opts [Integer] :fast_period The number of observations, per period, to calculate the fast moving Exponential Moving Average for Moving Average Convergence Divergence (default to 12)
1716
+ # @option opts [Integer] :slow_period The number of observations, per period, to calculate the slow moving Exponential Moving Average for Moving Average Convergence Divergence (default to 26)
1717
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence (default to 9)
1718
+ # @option opts [String] :price_key The Stock Price field to use when calculating Moving Average Convergence Divergence (default to close)
1719
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1720
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1721
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1722
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1723
+ # @return [ApiResponseSecurityMovingAverageConvergenceDivergence]
1724
+ def get_security_price_technicals_macd(identifier, opts = {})
1725
+ data, _status_code, _headers = get_security_price_technicals_macd_with_http_info(identifier, opts)
1726
+ return data
1727
+ end
1728
+
1729
+ # Moving Average Convergence Divergence
1730
+ # Returns the Moving Average Convergence Divergence values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1731
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1732
+ # @param [Hash] opts the optional parameters
1733
+ # @option opts [Integer] :fast_period The number of observations, per period, to calculate the fast moving Exponential Moving Average for Moving Average Convergence Divergence
1734
+ # @option opts [Integer] :slow_period The number of observations, per period, to calculate the slow moving Exponential Moving Average for Moving Average Convergence Divergence
1735
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence
1736
+ # @option opts [String] :price_key The Stock Price field to use when calculating Moving Average Convergence Divergence
1737
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1738
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1739
+ # @option opts [Integer] :page_size The number of results to return
1740
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1741
+ # @return [Array<(ApiResponseSecurityMovingAverageConvergenceDivergence, Fixnum, Hash)>] ApiResponseSecurityMovingAverageConvergenceDivergence data, response status code and response headers
1742
+ def get_security_price_technicals_macd_with_http_info(identifier, opts = {})
1743
+ if @api_client.config.debugging
1744
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_macd ..."
1745
+ end
1746
+ # verify the required parameter 'identifier' is set
1747
+ if @api_client.config.client_side_validation && identifier.nil?
1748
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_macd"
1749
+ end
1750
+ if @api_client.config.client_side_validation && !opts[:'slow_period'].nil? && opts[:'slow_period'] < 3
1751
+ fail ArgumentError, 'invalid value for "opts[:"slow_period"]" when calling SecurityApi.get_security_price_technicals_macd, must be greater than or equal to 3.'
1752
+ end
1753
+
1754
+ if @api_client.config.client_side_validation && !opts[:'signal_period'].nil? && opts[:'signal_period'] < 3
1755
+ fail ArgumentError, 'invalid value for "opts[:"signal_period"]" when calling SecurityApi.get_security_price_technicals_macd, must be greater than or equal to 3.'
1756
+ end
1757
+
1758
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1759
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1760
+ end
1761
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1762
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_macd, must be smaller than or equal to 10000.'
1763
+ end
1764
+
1765
+ # resource path
1766
+ local_var_path = "/securities/{identifier}/prices/technicals/macd".sub('{' + 'identifier' + '}', identifier.to_s)
1767
+
1768
+ # query parameters
1769
+ query_params = {}
1770
+ query_params[:'fast_period'] = opts[:'fast_period'] if !opts[:'fast_period'].nil?
1771
+ query_params[:'slow_period'] = opts[:'slow_period'] if !opts[:'slow_period'].nil?
1772
+ query_params[:'signal_period'] = opts[:'signal_period'] if !opts[:'signal_period'].nil?
1773
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1774
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1775
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1776
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1777
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1778
+
1779
+ # header parameters
1780
+ header_params = {}
1781
+ # HTTP header 'Accept' (if needed)
1782
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1783
+
1784
+ # form parameters
1785
+ form_params = {}
1786
+
1787
+ # http body (model)
1788
+ post_body = nil
1789
+ auth_names = ['ApiKeyAuth']
1790
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1791
+ :header_params => header_params,
1792
+ :query_params => query_params,
1793
+ :form_params => form_params,
1794
+ :body => post_body,
1795
+ :auth_names => auth_names,
1796
+ :return_type => 'ApiResponseSecurityMovingAverageConvergenceDivergence')
1797
+ if @api_client.config.debugging
1798
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_macd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1799
+ end
1800
+ return data, status_code, headers
1801
+ end
1802
+
1803
+ # Money Flow Index
1804
+ # Returns the Money Flow Index values of Stock Prices for the Security with the given `identifier`
1805
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1806
+ # @param [Hash] opts the optional parameters
1807
+ # @option opts [Integer] :period The number of observations, per period, to calculate Money Flow Index (default to 14)
1808
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1809
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1810
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1811
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1812
+ # @return [ApiResponseSecurityMoneyFlowIndex]
1813
+ def get_security_price_technicals_mfi(identifier, opts = {})
1814
+ data, _status_code, _headers = get_security_price_technicals_mfi_with_http_info(identifier, opts)
1815
+ return data
1816
+ end
1817
+
1818
+ # Money Flow Index
1819
+ # Returns the Money Flow Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1820
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1821
+ # @param [Hash] opts the optional parameters
1822
+ # @option opts [Integer] :period The number of observations, per period, to calculate Money Flow Index
1823
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1824
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1825
+ # @option opts [Integer] :page_size The number of results to return
1826
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1827
+ # @return [Array<(ApiResponseSecurityMoneyFlowIndex, Fixnum, Hash)>] ApiResponseSecurityMoneyFlowIndex data, response status code and response headers
1828
+ def get_security_price_technicals_mfi_with_http_info(identifier, opts = {})
1829
+ if @api_client.config.debugging
1830
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_mfi ..."
1831
+ end
1832
+ # verify the required parameter 'identifier' is set
1833
+ if @api_client.config.client_side_validation && identifier.nil?
1834
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_mfi"
1835
+ end
1836
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
1837
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_mfi, must be greater than or equal to 4.'
1838
+ end
1839
+
1840
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1841
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_mfi, must be smaller than or equal to 10000.'
1842
+ end
1843
+
1844
+ # resource path
1845
+ local_var_path = "/securities/{identifier}/prices/technicals/mfi".sub('{' + 'identifier' + '}', identifier.to_s)
1846
+
1847
+ # query parameters
1848
+ query_params = {}
1849
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1850
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1851
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1852
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1853
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1854
+
1855
+ # header parameters
1856
+ header_params = {}
1857
+ # HTTP header 'Accept' (if needed)
1858
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1859
+
1860
+ # form parameters
1861
+ form_params = {}
1862
+
1863
+ # http body (model)
1864
+ post_body = nil
1865
+ auth_names = ['ApiKeyAuth']
1866
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1867
+ :header_params => header_params,
1868
+ :query_params => query_params,
1869
+ :form_params => form_params,
1870
+ :body => post_body,
1871
+ :auth_names => auth_names,
1872
+ :return_type => 'ApiResponseSecurityMoneyFlowIndex')
1873
+ if @api_client.config.debugging
1874
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_mfi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1875
+ end
1876
+ return data, status_code, headers
1877
+ end
1878
+
1879
+ # Mass Index
1880
+ # Returns the Mass Index values of Stock Prices for the Security with the given `identifier`
1881
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1882
+ # @param [Hash] opts the optional parameters
1883
+ # @option opts [Integer] :ema_period The number of observations, per period, to calculate the single Exponential Moving Average and the Double Exponential Moving Average for Mass Index (default to 9)
1884
+ # @option opts [Integer] :sum_period The number of observations, per period, to calculate the sum of the Exponetinal Moving Average Ratios for Mass Index (default to 25)
1885
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1886
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1887
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1888
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1889
+ # @return [ApiResponseSecurityMassIndex]
1890
+ def get_security_price_technicals_mi(identifier, opts = {})
1891
+ data, _status_code, _headers = get_security_price_technicals_mi_with_http_info(identifier, opts)
1892
+ return data
1893
+ end
1894
+
1895
+ # Mass Index
1896
+ # Returns the Mass Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1897
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1898
+ # @param [Hash] opts the optional parameters
1899
+ # @option opts [Integer] :ema_period The number of observations, per period, to calculate the single Exponential Moving Average and the Double Exponential Moving Average for Mass Index
1900
+ # @option opts [Integer] :sum_period The number of observations, per period, to calculate the sum of the Exponetinal Moving Average Ratios for Mass Index
1901
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1902
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1903
+ # @option opts [Integer] :page_size The number of results to return
1904
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1905
+ # @return [Array<(ApiResponseSecurityMassIndex, Fixnum, Hash)>] ApiResponseSecurityMassIndex data, response status code and response headers
1906
+ def get_security_price_technicals_mi_with_http_info(identifier, opts = {})
1907
+ if @api_client.config.debugging
1908
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_mi ..."
1909
+ end
1910
+ # verify the required parameter 'identifier' is set
1911
+ if @api_client.config.client_side_validation && identifier.nil?
1912
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_mi"
1913
+ end
1914
+ if @api_client.config.client_side_validation && !opts[:'ema_period'].nil? && opts[:'ema_period'] < 2
1915
+ fail ArgumentError, 'invalid value for "opts[:"ema_period"]" when calling SecurityApi.get_security_price_technicals_mi, must be greater than or equal to 2.'
1916
+ end
1917
+
1918
+ if @api_client.config.client_side_validation && !opts[:'sum_period'].nil? && opts[:'sum_period'] < 3
1919
+ fail ArgumentError, 'invalid value for "opts[:"sum_period"]" when calling SecurityApi.get_security_price_technicals_mi, must be greater than or equal to 3.'
1920
+ end
1921
+
1922
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1923
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_mi, must be smaller than or equal to 10000.'
1924
+ end
1925
+
1926
+ # resource path
1927
+ local_var_path = "/securities/{identifier}/prices/technicals/mi".sub('{' + 'identifier' + '}', identifier.to_s)
1928
+
1929
+ # query parameters
1930
+ query_params = {}
1931
+ query_params[:'ema_period'] = opts[:'ema_period'] if !opts[:'ema_period'].nil?
1932
+ query_params[:'sum_period'] = opts[:'sum_period'] if !opts[:'sum_period'].nil?
1933
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1934
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1935
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1936
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1937
+
1938
+ # header parameters
1939
+ header_params = {}
1940
+ # HTTP header 'Accept' (if needed)
1941
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1942
+
1943
+ # form parameters
1944
+ form_params = {}
1945
+
1946
+ # http body (model)
1947
+ post_body = nil
1948
+ auth_names = ['ApiKeyAuth']
1949
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1950
+ :header_params => header_params,
1951
+ :query_params => query_params,
1952
+ :form_params => form_params,
1953
+ :body => post_body,
1954
+ :auth_names => auth_names,
1955
+ :return_type => 'ApiResponseSecurityMassIndex')
1956
+ if @api_client.config.debugging
1957
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_mi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1958
+ end
1959
+ return data, status_code, headers
1960
+ end
1961
+
1962
+ # Negative Volume Index
1963
+ # Returns the Negative Volume Index values of Stock Prices for the Security with the given `identifier`
1964
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1965
+ # @param [Hash] opts the optional parameters
1966
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1967
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1968
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
1969
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1970
+ # @return [ApiResponseSecurityNegativeVolumeIndex]
1971
+ def get_security_price_technicals_nvi(identifier, opts = {})
1972
+ data, _status_code, _headers = get_security_price_technicals_nvi_with_http_info(identifier, opts)
1973
+ return data
1974
+ end
1975
+
1976
+ # Negative Volume Index
1977
+ # Returns the Negative Volume Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
1978
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
1979
+ # @param [Hash] opts the optional parameters
1980
+ # @option opts [String] :start_date Return technical indicator values on or after the date
1981
+ # @option opts [String] :end_date Return technical indicator values on or before the date
1982
+ # @option opts [Integer] :page_size The number of results to return
1983
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1984
+ # @return [Array<(ApiResponseSecurityNegativeVolumeIndex, Fixnum, Hash)>] ApiResponseSecurityNegativeVolumeIndex data, response status code and response headers
1985
+ def get_security_price_technicals_nvi_with_http_info(identifier, opts = {})
1986
+ if @api_client.config.debugging
1987
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_nvi ..."
1988
+ end
1989
+ # verify the required parameter 'identifier' is set
1990
+ if @api_client.config.client_side_validation && identifier.nil?
1991
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_nvi"
1992
+ end
1993
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1994
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_nvi, must be smaller than or equal to 10000.'
1995
+ end
1996
+
1997
+ # resource path
1998
+ local_var_path = "/securities/{identifier}/prices/technicals/nvi".sub('{' + 'identifier' + '}', identifier.to_s)
1999
+
2000
+ # query parameters
2001
+ query_params = {}
2002
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2003
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2004
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2005
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2006
+
2007
+ # header parameters
2008
+ header_params = {}
2009
+ # HTTP header 'Accept' (if needed)
2010
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2011
+
2012
+ # form parameters
2013
+ form_params = {}
2014
+
2015
+ # http body (model)
2016
+ post_body = nil
2017
+ auth_names = ['ApiKeyAuth']
2018
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2019
+ :header_params => header_params,
2020
+ :query_params => query_params,
2021
+ :form_params => form_params,
2022
+ :body => post_body,
2023
+ :auth_names => auth_names,
2024
+ :return_type => 'ApiResponseSecurityNegativeVolumeIndex')
2025
+ if @api_client.config.debugging
2026
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_nvi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2027
+ end
2028
+ return data, status_code, headers
2029
+ end
2030
+
2031
+ # On-balance Volume
2032
+ # Returns the On-balance Volume values of Stock Prices for the Security with the given `identifier`
2033
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2034
+ # @param [Hash] opts the optional parameters
2035
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2036
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2037
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2038
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2039
+ # @return [ApiResponseSecurityOnBalanceVolume]
2040
+ def get_security_price_technicals_obv(identifier, opts = {})
2041
+ data, _status_code, _headers = get_security_price_technicals_obv_with_http_info(identifier, opts)
2042
+ return data
2043
+ end
2044
+
2045
+ # On-balance Volume
2046
+ # Returns the On-balance Volume values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2047
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2048
+ # @param [Hash] opts the optional parameters
2049
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2050
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2051
+ # @option opts [Integer] :page_size The number of results to return
2052
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2053
+ # @return [Array<(ApiResponseSecurityOnBalanceVolume, Fixnum, Hash)>] ApiResponseSecurityOnBalanceVolume data, response status code and response headers
2054
+ def get_security_price_technicals_obv_with_http_info(identifier, opts = {})
2055
+ if @api_client.config.debugging
2056
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_obv ..."
2057
+ end
2058
+ # verify the required parameter 'identifier' is set
2059
+ if @api_client.config.client_side_validation && identifier.nil?
2060
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_obv"
2061
+ end
2062
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2063
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_obv, must be smaller than or equal to 10000.'
2064
+ end
2065
+
2066
+ # resource path
2067
+ local_var_path = "/securities/{identifier}/prices/technicals/obv".sub('{' + 'identifier' + '}', identifier.to_s)
2068
+
2069
+ # query parameters
2070
+ query_params = {}
2071
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2072
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2073
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2074
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2075
+
2076
+ # header parameters
2077
+ header_params = {}
2078
+ # HTTP header 'Accept' (if needed)
2079
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2080
+
2081
+ # form parameters
2082
+ form_params = {}
2083
+
2084
+ # http body (model)
2085
+ post_body = nil
2086
+ auth_names = ['ApiKeyAuth']
2087
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2088
+ :header_params => header_params,
2089
+ :query_params => query_params,
2090
+ :form_params => form_params,
2091
+ :body => post_body,
2092
+ :auth_names => auth_names,
2093
+ :return_type => 'ApiResponseSecurityOnBalanceVolume')
2094
+ if @api_client.config.debugging
2095
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_obv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2096
+ end
2097
+ return data, status_code, headers
2098
+ end
2099
+
2100
+ # On-balance Volume Mean
2101
+ # Returns the On-balance Volume Mean values of Stock Prices for the Security with the given `identifier`
2102
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2103
+ # @param [Hash] opts the optional parameters
2104
+ # @option opts [Integer] :period The number of observations, per period, to calculate On-balance Volume Mean (default to 10)
2105
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2106
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2107
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2108
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2109
+ # @return [ApiResponseSecurityOnBalanceVolumeMean]
2110
+ def get_security_price_technicals_obv_mean(identifier, opts = {})
2111
+ data, _status_code, _headers = get_security_price_technicals_obv_mean_with_http_info(identifier, opts)
2112
+ return data
2113
+ end
2114
+
2115
+ # On-balance Volume Mean
2116
+ # Returns the On-balance Volume Mean values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2117
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2118
+ # @param [Hash] opts the optional parameters
2119
+ # @option opts [Integer] :period The number of observations, per period, to calculate On-balance Volume Mean
2120
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2121
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2122
+ # @option opts [Integer] :page_size The number of results to return
2123
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2124
+ # @return [Array<(ApiResponseSecurityOnBalanceVolumeMean, Fixnum, Hash)>] ApiResponseSecurityOnBalanceVolumeMean data, response status code and response headers
2125
+ def get_security_price_technicals_obv_mean_with_http_info(identifier, opts = {})
2126
+ if @api_client.config.debugging
2127
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_obv_mean ..."
2128
+ end
2129
+ # verify the required parameter 'identifier' is set
2130
+ if @api_client.config.client_side_validation && identifier.nil?
2131
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_obv_mean"
2132
+ end
2133
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2134
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_obv_mean, must be greater than or equal to 4.'
2135
+ end
2136
+
2137
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2138
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_obv_mean, must be smaller than or equal to 10000.'
2139
+ end
2140
+
2141
+ # resource path
2142
+ local_var_path = "/securities/{identifier}/prices/technicals/obv_mean".sub('{' + 'identifier' + '}', identifier.to_s)
2143
+
2144
+ # query parameters
2145
+ query_params = {}
2146
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2147
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2148
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2149
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2150
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2151
+
2152
+ # header parameters
2153
+ header_params = {}
2154
+ # HTTP header 'Accept' (if needed)
2155
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2156
+
2157
+ # form parameters
2158
+ form_params = {}
2159
+
2160
+ # http body (model)
2161
+ post_body = nil
2162
+ auth_names = ['ApiKeyAuth']
2163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2164
+ :header_params => header_params,
2165
+ :query_params => query_params,
2166
+ :form_params => form_params,
2167
+ :body => post_body,
2168
+ :auth_names => auth_names,
2169
+ :return_type => 'ApiResponseSecurityOnBalanceVolumeMean')
2170
+ if @api_client.config.debugging
2171
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_obv_mean\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2172
+ end
2173
+ return data, status_code, headers
2174
+ end
2175
+
2176
+ # Relative Strength Index
2177
+ # Returns the Relative Strength Index values of Stock Prices for the Security with the given `identifier`
2178
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2179
+ # @param [Hash] opts the optional parameters
2180
+ # @option opts [Integer] :period The number of observations, per period, to calculate Relative Strength Index (default to 14)
2181
+ # @option opts [String] :price_key The Stock Price field to use when calculating Relative Strength Index (default to close)
2182
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2183
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2184
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2185
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2186
+ # @return [ApiResponseSecurityRelativeStrengthIndex]
2187
+ def get_security_price_technicals_rsi(identifier, opts = {})
2188
+ data, _status_code, _headers = get_security_price_technicals_rsi_with_http_info(identifier, opts)
2189
+ return data
2190
+ end
2191
+
2192
+ # Relative Strength Index
2193
+ # Returns the Relative Strength Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2194
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2195
+ # @param [Hash] opts the optional parameters
2196
+ # @option opts [Integer] :period The number of observations, per period, to calculate Relative Strength Index
2197
+ # @option opts [String] :price_key The Stock Price field to use when calculating Relative Strength Index
2198
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2199
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2200
+ # @option opts [Integer] :page_size The number of results to return
2201
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2202
+ # @return [Array<(ApiResponseSecurityRelativeStrengthIndex, Fixnum, Hash)>] ApiResponseSecurityRelativeStrengthIndex data, response status code and response headers
2203
+ def get_security_price_technicals_rsi_with_http_info(identifier, opts = {})
2204
+ if @api_client.config.debugging
2205
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_rsi ..."
2206
+ end
2207
+ # verify the required parameter 'identifier' is set
2208
+ if @api_client.config.client_side_validation && identifier.nil?
2209
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_rsi"
2210
+ end
2211
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2212
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_rsi, must be greater than or equal to 4.'
2213
+ end
2214
+
2215
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2216
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2217
+ end
2218
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2219
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_rsi, must be smaller than or equal to 10000.'
2220
+ end
2221
+
2222
+ # resource path
2223
+ local_var_path = "/securities/{identifier}/prices/technicals/rsi".sub('{' + 'identifier' + '}', identifier.to_s)
2224
+
2225
+ # query parameters
2226
+ query_params = {}
2227
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2228
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2229
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2230
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2231
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2232
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2233
+
2234
+ # header parameters
2235
+ header_params = {}
2236
+ # HTTP header 'Accept' (if needed)
2237
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2238
+
2239
+ # form parameters
2240
+ form_params = {}
2241
+
2242
+ # http body (model)
2243
+ post_body = nil
2244
+ auth_names = ['ApiKeyAuth']
2245
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2246
+ :header_params => header_params,
2247
+ :query_params => query_params,
2248
+ :form_params => form_params,
2249
+ :body => post_body,
2250
+ :auth_names => auth_names,
2251
+ :return_type => 'ApiResponseSecurityRelativeStrengthIndex')
2252
+ if @api_client.config.debugging
2253
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_rsi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2254
+ end
2255
+ return data, status_code, headers
2256
+ end
2257
+
2258
+ # Simple Moving Average
2259
+ # Returns the Simple Moving Average values of Stock Prices for the Security with the given `identifier`
2260
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2261
+ # @param [Hash] opts the optional parameters
2262
+ # @option opts [Integer] :period The number of observations, per period, to calculate Simple Moving Average (default to 20)
2263
+ # @option opts [String] :price_key The Stock Price field to use when calculating Simple Moving Average (default to close)
2264
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2265
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2266
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2267
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2268
+ # @return [ApiResponseSecuritySimpleMovingAverage]
2269
+ def get_security_price_technicals_sma(identifier, opts = {})
2270
+ data, _status_code, _headers = get_security_price_technicals_sma_with_http_info(identifier, opts)
2271
+ return data
2272
+ end
2273
+
2274
+ # Simple Moving Average
2275
+ # Returns the Simple Moving Average values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2276
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2277
+ # @param [Hash] opts the optional parameters
2278
+ # @option opts [Integer] :period The number of observations, per period, to calculate Simple Moving Average
2279
+ # @option opts [String] :price_key The Stock Price field to use when calculating Simple Moving Average
2280
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2281
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2282
+ # @option opts [Integer] :page_size The number of results to return
2283
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2284
+ # @return [Array<(ApiResponseSecuritySimpleMovingAverage, Fixnum, Hash)>] ApiResponseSecuritySimpleMovingAverage data, response status code and response headers
2285
+ def get_security_price_technicals_sma_with_http_info(identifier, opts = {})
2286
+ if @api_client.config.debugging
2287
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_sma ..."
2288
+ end
2289
+ # verify the required parameter 'identifier' is set
2290
+ if @api_client.config.client_side_validation && identifier.nil?
2291
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_sma"
2292
+ end
2293
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
2294
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_sma, must be greater than or equal to 5.'
2295
+ end
2296
+
2297
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2298
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2299
+ end
2300
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2301
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_sma, must be smaller than or equal to 10000.'
2302
+ end
2303
+
2304
+ # resource path
2305
+ local_var_path = "/securities/{identifier}/prices/technicals/sma".sub('{' + 'identifier' + '}', identifier.to_s)
2306
+
2307
+ # query parameters
2308
+ query_params = {}
2309
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2310
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2311
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2312
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2313
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2314
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2315
+
2316
+ # header parameters
2317
+ header_params = {}
2318
+ # HTTP header 'Accept' (if needed)
2319
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2320
+
2321
+ # form parameters
2322
+ form_params = {}
2323
+
2324
+ # http body (model)
2325
+ post_body = nil
2326
+ auth_names = ['ApiKeyAuth']
2327
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2328
+ :header_params => header_params,
2329
+ :query_params => query_params,
2330
+ :form_params => form_params,
2331
+ :body => post_body,
2332
+ :auth_names => auth_names,
2333
+ :return_type => 'ApiResponseSecuritySimpleMovingAverage')
2334
+ if @api_client.config.debugging
2335
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_sma\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2336
+ end
2337
+ return data, status_code, headers
2338
+ end
2339
+
2340
+ # Stochastic Oscillator
2341
+ # Returns the Stochastic Oscillator values of Stock Prices for the Security with the given `identifier`
2342
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2343
+ # @param [Hash] opts the optional parameters
2344
+ # @option opts [Integer] :period The number of observations, per period, to calculate %K of Stochastic Oscillator (default to 14)
2345
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the %D (the Simple Moving Average of %K) as a signal line for Stochastic Oscillator (default to 3)
2346
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2347
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2348
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2349
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2350
+ # @return [ApiResponseSecurityStochasticOscillator]
2351
+ def get_security_price_technicals_sr(identifier, opts = {})
2352
+ data, _status_code, _headers = get_security_price_technicals_sr_with_http_info(identifier, opts)
2353
+ return data
2354
+ end
2355
+
2356
+ # Stochastic Oscillator
2357
+ # Returns the Stochastic Oscillator values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2358
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2359
+ # @param [Hash] opts the optional parameters
2360
+ # @option opts [Integer] :period The number of observations, per period, to calculate %K of Stochastic Oscillator
2361
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the %D (the Simple Moving Average of %K) as a signal line for Stochastic Oscillator
2362
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2363
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2364
+ # @option opts [Integer] :page_size The number of results to return
2365
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2366
+ # @return [Array<(ApiResponseSecurityStochasticOscillator, Fixnum, Hash)>] ApiResponseSecurityStochasticOscillator data, response status code and response headers
2367
+ def get_security_price_technicals_sr_with_http_info(identifier, opts = {})
2368
+ if @api_client.config.debugging
2369
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_sr ..."
2370
+ end
2371
+ # verify the required parameter 'identifier' is set
2372
+ if @api_client.config.client_side_validation && identifier.nil?
2373
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_sr"
2374
+ end
2375
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 3
2376
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_sr, must be greater than or equal to 3.'
2377
+ end
2378
+
2379
+ if @api_client.config.client_side_validation && !opts[:'signal_period'].nil? && opts[:'signal_period'] < 3
2380
+ fail ArgumentError, 'invalid value for "opts[:"signal_period"]" when calling SecurityApi.get_security_price_technicals_sr, must be greater than or equal to 3.'
2381
+ end
2382
+
2383
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2384
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_sr, must be smaller than or equal to 10000.'
2385
+ end
2386
+
2387
+ # resource path
2388
+ local_var_path = "/securities/{identifier}/prices/technicals/sr".sub('{' + 'identifier' + '}', identifier.to_s)
2389
+
2390
+ # query parameters
2391
+ query_params = {}
2392
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2393
+ query_params[:'signal_period'] = opts[:'signal_period'] if !opts[:'signal_period'].nil?
2394
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2395
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2396
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2397
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2398
+
2399
+ # header parameters
2400
+ header_params = {}
2401
+ # HTTP header 'Accept' (if needed)
2402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2403
+
2404
+ # form parameters
2405
+ form_params = {}
2406
+
2407
+ # http body (model)
2408
+ post_body = nil
2409
+ auth_names = ['ApiKeyAuth']
2410
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2411
+ :header_params => header_params,
2412
+ :query_params => query_params,
2413
+ :form_params => form_params,
2414
+ :body => post_body,
2415
+ :auth_names => auth_names,
2416
+ :return_type => 'ApiResponseSecurityStochasticOscillator')
2417
+ if @api_client.config.debugging
2418
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_sr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2419
+ end
2420
+ return data, status_code, headers
2421
+ end
2422
+
2423
+ # Triple Exponential Average
2424
+ # Returns the Simple Moving Average values of Stock Prices for the Security with the given `identifier`
2425
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2426
+ # @param [Hash] opts the optional parameters
2427
+ # @option opts [Integer] :period The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average (default to 15)
2428
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2429
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2430
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2431
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2432
+ # @return [ApiResponseSecurityTripleExponentialAverage]
2433
+ def get_security_price_technicals_trix(identifier, opts = {})
2434
+ data, _status_code, _headers = get_security_price_technicals_trix_with_http_info(identifier, opts)
2435
+ return data
2436
+ end
2437
+
2438
+ # Triple Exponential Average
2439
+ # Returns the Simple Moving Average values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2440
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2441
+ # @param [Hash] opts the optional parameters
2442
+ # @option opts [Integer] :period The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average
2443
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2444
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2445
+ # @option opts [Integer] :page_size The number of results to return
2446
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2447
+ # @return [Array<(ApiResponseSecurityTripleExponentialAverage, Fixnum, Hash)>] ApiResponseSecurityTripleExponentialAverage data, response status code and response headers
2448
+ def get_security_price_technicals_trix_with_http_info(identifier, opts = {})
2449
+ if @api_client.config.debugging
2450
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_trix ..."
2451
+ end
2452
+ # verify the required parameter 'identifier' is set
2453
+ if @api_client.config.client_side_validation && identifier.nil?
2454
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_trix"
2455
+ end
2456
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 2
2457
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_trix, must be greater than or equal to 2.'
2458
+ end
2459
+
2460
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2461
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_trix, must be smaller than or equal to 10000.'
2462
+ end
2463
+
2464
+ # resource path
2465
+ local_var_path = "/securities/{identifier}/prices/technicals/trix".sub('{' + 'identifier' + '}', identifier.to_s)
2466
+
2467
+ # query parameters
2468
+ query_params = {}
2469
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2470
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2471
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2472
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2473
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2474
+
2475
+ # header parameters
2476
+ header_params = {}
2477
+ # HTTP header 'Accept' (if needed)
2478
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2479
+
2480
+ # form parameters
2481
+ form_params = {}
2482
+
2483
+ # http body (model)
2484
+ post_body = nil
2485
+ auth_names = ['ApiKeyAuth']
2486
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2487
+ :header_params => header_params,
2488
+ :query_params => query_params,
2489
+ :form_params => form_params,
2490
+ :body => post_body,
2491
+ :auth_names => auth_names,
2492
+ :return_type => 'ApiResponseSecurityTripleExponentialAverage')
2493
+ if @api_client.config.debugging
2494
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_trix\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2495
+ end
2496
+ return data, status_code, headers
2497
+ end
2498
+
2499
+ # True Strength Index
2500
+ # Returns the True Strength Index values of Stock Prices for the Security with the given `identifier`
2501
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2502
+ # @param [Hash] opts the optional parameters
2503
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index (default to 13)
2504
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index (default to 25)
2505
+ # @option opts [String] :price_key The Stock Price field to use when calculating True Strength Index (default to close)
2506
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2507
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2508
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2509
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2510
+ # @return [ApiResponseSecurityTrueStrengthIndex]
2511
+ def get_security_price_technicals_tsi(identifier, opts = {})
2512
+ data, _status_code, _headers = get_security_price_technicals_tsi_with_http_info(identifier, opts)
2513
+ return data
2514
+ end
2515
+
2516
+ # True Strength Index
2517
+ # Returns the True Strength Index values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2518
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2519
+ # @param [Hash] opts the optional parameters
2520
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index
2521
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index
2522
+ # @option opts [String] :price_key The Stock Price field to use when calculating True Strength Index
2523
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2524
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2525
+ # @option opts [Integer] :page_size The number of results to return
2526
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2527
+ # @return [Array<(ApiResponseSecurityTrueStrengthIndex, Fixnum, Hash)>] ApiResponseSecurityTrueStrengthIndex data, response status code and response headers
2528
+ def get_security_price_technicals_tsi_with_http_info(identifier, opts = {})
2529
+ if @api_client.config.debugging
2530
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_tsi ..."
2531
+ end
2532
+ # verify the required parameter 'identifier' is set
2533
+ if @api_client.config.client_side_validation && identifier.nil?
2534
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_tsi"
2535
+ end
2536
+ if @api_client.config.client_side_validation && !opts[:'low_period'].nil? && opts[:'low_period'] < 3
2537
+ fail ArgumentError, 'invalid value for "opts[:"low_period"]" when calling SecurityApi.get_security_price_technicals_tsi, must be greater than or equal to 3.'
2538
+ end
2539
+
2540
+ if @api_client.config.client_side_validation && !opts[:'high_period'].nil? && opts[:'high_period'] < 3
2541
+ fail ArgumentError, 'invalid value for "opts[:"high_period"]" when calling SecurityApi.get_security_price_technicals_tsi, must be greater than or equal to 3.'
2542
+ end
2543
+
2544
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2545
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2546
+ end
2547
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2548
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_tsi, must be smaller than or equal to 10000.'
2549
+ end
2550
+
2551
+ # resource path
2552
+ local_var_path = "/securities/{identifier}/prices/technicals/tsi".sub('{' + 'identifier' + '}', identifier.to_s)
2553
+
2554
+ # query parameters
2555
+ query_params = {}
2556
+ query_params[:'low_period'] = opts[:'low_period'] if !opts[:'low_period'].nil?
2557
+ query_params[:'high_period'] = opts[:'high_period'] if !opts[:'high_period'].nil?
2558
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2559
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2560
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2561
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2562
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2563
+
2564
+ # header parameters
2565
+ header_params = {}
2566
+ # HTTP header 'Accept' (if needed)
2567
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2568
+
2569
+ # form parameters
2570
+ form_params = {}
2571
+
2572
+ # http body (model)
2573
+ post_body = nil
2574
+ auth_names = ['ApiKeyAuth']
2575
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2576
+ :header_params => header_params,
2577
+ :query_params => query_params,
2578
+ :form_params => form_params,
2579
+ :body => post_body,
2580
+ :auth_names => auth_names,
2581
+ :return_type => 'ApiResponseSecurityTrueStrengthIndex')
2582
+ if @api_client.config.debugging
2583
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_tsi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2584
+ end
2585
+ return data, status_code, headers
2586
+ end
2587
+
2588
+ # Ultimate Oscillator
2589
+ # Returns the Ultimate Oscillator values of Stock Prices for the Security with the given `identifier`
2590
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2591
+ # @param [Hash] opts the optional parameters
2592
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate the short period for Ultimate Oscillator (default to 7)
2593
+ # @option opts [Integer] :medium_period The number of observations, per period, to calculate the medium period for Ultimate Oscillator (default to 14)
2594
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate the long period for Ultimate Oscillator (default to 28)
2595
+ # @option opts [Float] :short_weight The weight of short Buying Pressure average for Ultimate Oscillator (default to 4.0)
2596
+ # @option opts [Float] :medium_weight The weight of medium Buying Pressure average for Ultimate Oscillator (default to 2.0)
2597
+ # @option opts [Float] :long_weight The weight of long Buying Pressure average for Ultimate Oscillator (default to 1.0)
2598
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2599
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2600
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2601
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2602
+ # @return [ApiResponseSecurityUltimateOscillator]
2603
+ def get_security_price_technicals_uo(identifier, opts = {})
2604
+ data, _status_code, _headers = get_security_price_technicals_uo_with_http_info(identifier, opts)
2605
+ return data
2606
+ end
2607
+
2608
+ # Ultimate Oscillator
2609
+ # Returns the Ultimate Oscillator values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2610
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2611
+ # @param [Hash] opts the optional parameters
2612
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate the short period for Ultimate Oscillator
2613
+ # @option opts [Integer] :medium_period The number of observations, per period, to calculate the medium period for Ultimate Oscillator
2614
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate the long period for Ultimate Oscillator
2615
+ # @option opts [Float] :short_weight The weight of short Buying Pressure average for Ultimate Oscillator
2616
+ # @option opts [Float] :medium_weight The weight of medium Buying Pressure average for Ultimate Oscillator
2617
+ # @option opts [Float] :long_weight The weight of long Buying Pressure average for Ultimate Oscillator
2618
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2619
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2620
+ # @option opts [Integer] :page_size The number of results to return
2621
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2622
+ # @return [Array<(ApiResponseSecurityUltimateOscillator, Fixnum, Hash)>] ApiResponseSecurityUltimateOscillator data, response status code and response headers
2623
+ def get_security_price_technicals_uo_with_http_info(identifier, opts = {})
2624
+ if @api_client.config.debugging
2625
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_uo ..."
2626
+ end
2627
+ # verify the required parameter 'identifier' is set
2628
+ if @api_client.config.client_side_validation && identifier.nil?
2629
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_uo"
2630
+ end
2631
+ if @api_client.config.client_side_validation && !opts[:'long_period'].nil? && opts[:'long_period'] < 4
2632
+ fail ArgumentError, 'invalid value for "opts[:"long_period"]" when calling SecurityApi.get_security_price_technicals_uo, must be greater than or equal to 4.'
2633
+ end
2634
+
2635
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2636
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_uo, must be smaller than or equal to 10000.'
2637
+ end
2638
+
2639
+ # resource path
2640
+ local_var_path = "/securities/{identifier}/prices/technicals/uo".sub('{' + 'identifier' + '}', identifier.to_s)
2641
+
2642
+ # query parameters
2643
+ query_params = {}
2644
+ query_params[:'short_period'] = opts[:'short_period'] if !opts[:'short_period'].nil?
2645
+ query_params[:'medium_period'] = opts[:'medium_period'] if !opts[:'medium_period'].nil?
2646
+ query_params[:'long_period'] = opts[:'long_period'] if !opts[:'long_period'].nil?
2647
+ query_params[:'short_weight'] = opts[:'short_weight'] if !opts[:'short_weight'].nil?
2648
+ query_params[:'medium_weight'] = opts[:'medium_weight'] if !opts[:'medium_weight'].nil?
2649
+ query_params[:'long_weight'] = opts[:'long_weight'] if !opts[:'long_weight'].nil?
2650
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2651
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2652
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2653
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2654
+
2655
+ # header parameters
2656
+ header_params = {}
2657
+ # HTTP header 'Accept' (if needed)
2658
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2659
+
2660
+ # form parameters
2661
+ form_params = {}
2662
+
2663
+ # http body (model)
2664
+ post_body = nil
2665
+ auth_names = ['ApiKeyAuth']
2666
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2667
+ :header_params => header_params,
2668
+ :query_params => query_params,
2669
+ :form_params => form_params,
2670
+ :body => post_body,
2671
+ :auth_names => auth_names,
2672
+ :return_type => 'ApiResponseSecurityUltimateOscillator')
2673
+ if @api_client.config.debugging
2674
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_uo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2675
+ end
2676
+ return data, status_code, headers
2677
+ end
2678
+
2679
+ # Vortex Indicator
2680
+ # Returns the Vortex Indicator values of Stock Prices for the Security with the given `identifier`
2681
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2682
+ # @param [Hash] opts the optional parameters
2683
+ # @option opts [Integer] :period The number of observations, per period, to calculate Vortex Indicator (default to 14)
2684
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2685
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2686
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2687
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2688
+ # @return [ApiResponseSecurityVortexIndicator]
2689
+ def get_security_price_technicals_vi(identifier, opts = {})
2690
+ data, _status_code, _headers = get_security_price_technicals_vi_with_http_info(identifier, opts)
2691
+ return data
2692
+ end
2693
+
2694
+ # Vortex Indicator
2695
+ # Returns the Vortex Indicator values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2696
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2697
+ # @param [Hash] opts the optional parameters
2698
+ # @option opts [Integer] :period The number of observations, per period, to calculate Vortex Indicator
2699
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2700
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2701
+ # @option opts [Integer] :page_size The number of results to return
2702
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2703
+ # @return [Array<(ApiResponseSecurityVortexIndicator, Fixnum, Hash)>] ApiResponseSecurityVortexIndicator data, response status code and response headers
2704
+ def get_security_price_technicals_vi_with_http_info(identifier, opts = {})
2705
+ if @api_client.config.debugging
2706
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_vi ..."
2707
+ end
2708
+ # verify the required parameter 'identifier' is set
2709
+ if @api_client.config.client_side_validation && identifier.nil?
2710
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_vi"
2711
+ end
2712
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2713
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_vi, must be greater than or equal to 4.'
2714
+ end
2715
+
2716
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2717
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_vi, must be smaller than or equal to 10000.'
2718
+ end
2719
+
2720
+ # resource path
2721
+ local_var_path = "/securities/{identifier}/prices/technicals/vi".sub('{' + 'identifier' + '}', identifier.to_s)
2722
+
2723
+ # query parameters
2724
+ query_params = {}
2725
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2726
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2727
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2728
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2729
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2730
+
2731
+ # header parameters
2732
+ header_params = {}
2733
+ # HTTP header 'Accept' (if needed)
2734
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2735
+
2736
+ # form parameters
2737
+ form_params = {}
2738
+
2739
+ # http body (model)
2740
+ post_body = nil
2741
+ auth_names = ['ApiKeyAuth']
2742
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2743
+ :header_params => header_params,
2744
+ :query_params => query_params,
2745
+ :form_params => form_params,
2746
+ :body => post_body,
2747
+ :auth_names => auth_names,
2748
+ :return_type => 'ApiResponseSecurityVortexIndicator')
2749
+ if @api_client.config.debugging
2750
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_vi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2751
+ end
2752
+ return data, status_code, headers
2753
+ end
2754
+
2755
+ # Volume-price Trend
2756
+ # Returns the Volume-price Trend values of Stock Prices for the Security with the given `identifier`
2757
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2758
+ # @param [Hash] opts the optional parameters
2759
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2760
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2761
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2762
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2763
+ # @return [ApiResponseSecurityVolumePriceTrend]
2764
+ def get_security_price_technicals_vpt(identifier, opts = {})
2765
+ data, _status_code, _headers = get_security_price_technicals_vpt_with_http_info(identifier, opts)
2766
+ return data
2767
+ end
2768
+
2769
+ # Volume-price Trend
2770
+ # Returns the Volume-price Trend values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2771
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2772
+ # @param [Hash] opts the optional parameters
2773
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2774
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2775
+ # @option opts [Integer] :page_size The number of results to return
2776
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2777
+ # @return [Array<(ApiResponseSecurityVolumePriceTrend, Fixnum, Hash)>] ApiResponseSecurityVolumePriceTrend data, response status code and response headers
2778
+ def get_security_price_technicals_vpt_with_http_info(identifier, opts = {})
2779
+ if @api_client.config.debugging
2780
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_vpt ..."
2781
+ end
2782
+ # verify the required parameter 'identifier' is set
2783
+ if @api_client.config.client_side_validation && identifier.nil?
2784
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_vpt"
2785
+ end
2786
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2787
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_vpt, must be smaller than or equal to 10000.'
2788
+ end
2789
+
2790
+ # resource path
2791
+ local_var_path = "/securities/{identifier}/prices/technicals/vpt".sub('{' + 'identifier' + '}', identifier.to_s)
2792
+
2793
+ # query parameters
2794
+ query_params = {}
2795
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2796
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2797
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2798
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2799
+
2800
+ # header parameters
2801
+ header_params = {}
2802
+ # HTTP header 'Accept' (if needed)
2803
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2804
+
2805
+ # form parameters
2806
+ form_params = {}
2807
+
2808
+ # http body (model)
2809
+ post_body = nil
2810
+ auth_names = ['ApiKeyAuth']
2811
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2812
+ :header_params => header_params,
2813
+ :query_params => query_params,
2814
+ :form_params => form_params,
2815
+ :body => post_body,
2816
+ :auth_names => auth_names,
2817
+ :return_type => 'ApiResponseSecurityVolumePriceTrend')
2818
+ if @api_client.config.debugging
2819
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_vpt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2820
+ end
2821
+ return data, status_code, headers
2822
+ end
2823
+
2824
+ # Volume Weighted Average Price
2825
+ # Returns the Volume Weighted Average Price values of Stock Prices for the Security with the given `identifier`
2826
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2827
+ # @param [Hash] opts the optional parameters
2828
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2829
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2830
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
2831
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2832
+ # @return [ApiResponseSecurityVolumeWeightedAveragePrice]
2833
+ def get_security_price_technicals_vwap(identifier, opts = {})
2834
+ data, _status_code, _headers = get_security_price_technicals_vwap_with_http_info(identifier, opts)
2835
+ return data
2836
+ end
2837
+
2838
+ # Volume Weighted Average Price
2839
+ # Returns the Volume Weighted Average Price values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2840
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2841
+ # @param [Hash] opts the optional parameters
2842
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2843
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2844
+ # @option opts [Integer] :page_size The number of results to return
2845
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2846
+ # @return [Array<(ApiResponseSecurityVolumeWeightedAveragePrice, Fixnum, Hash)>] ApiResponseSecurityVolumeWeightedAveragePrice data, response status code and response headers
2847
+ def get_security_price_technicals_vwap_with_http_info(identifier, opts = {})
2848
+ if @api_client.config.debugging
2849
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_vwap ..."
2850
+ end
2851
+ # verify the required parameter 'identifier' is set
2852
+ if @api_client.config.client_side_validation && identifier.nil?
2853
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_vwap"
2854
+ end
2855
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2856
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_vwap, must be smaller than or equal to 10000.'
2857
+ end
2858
+
2859
+ # resource path
2860
+ local_var_path = "/securities/{identifier}/prices/technicals/vwap".sub('{' + 'identifier' + '}', identifier.to_s)
2861
+
2862
+ # query parameters
2863
+ query_params = {}
2864
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2865
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2866
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2867
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2868
+
2869
+ # header parameters
2870
+ header_params = {}
2871
+ # HTTP header 'Accept' (if needed)
2872
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2873
+
2874
+ # form parameters
2875
+ form_params = {}
2876
+
2877
+ # http body (model)
2878
+ post_body = nil
2879
+ auth_names = ['ApiKeyAuth']
2880
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2881
+ :header_params => header_params,
2882
+ :query_params => query_params,
2883
+ :form_params => form_params,
2884
+ :body => post_body,
2885
+ :auth_names => auth_names,
2886
+ :return_type => 'ApiResponseSecurityVolumeWeightedAveragePrice')
2887
+ if @api_client.config.debugging
2888
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_vwap\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2889
+ end
2890
+ return data, status_code, headers
2891
+ end
2892
+
2893
+ # Williams %R
2894
+ # Returns the Williams %R values of Stock Prices for the Security with the given `identifier`
2895
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2896
+ # @param [Hash] opts the optional parameters
2897
+ # @option opts [Integer] :period The number of observations, per period, to look-back when calculating Williams %R (default to 14)
2898
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2899
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2900
+ # @option opts [Float] :page_size The number of results to return (default to 100)
2901
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2902
+ # @return [ApiResponseSecurityWilliamsR]
2903
+ def get_security_price_technicals_wr(identifier, opts = {})
2904
+ data, _status_code, _headers = get_security_price_technicals_wr_with_http_info(identifier, opts)
2905
+ return data
2906
+ end
2907
+
2908
+ # Williams %R
2909
+ # Returns the Williams %R values of Stock Prices for the Security with the given &#x60;identifier&#x60;
2910
+ # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
2911
+ # @param [Hash] opts the optional parameters
2912
+ # @option opts [Integer] :period The number of observations, per period, to look-back when calculating Williams %R
2913
+ # @option opts [String] :start_date Return technical indicator values on or after the date
2914
+ # @option opts [String] :end_date Return technical indicator values on or before the date
2915
+ # @option opts [Float] :page_size The number of results to return
2916
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2917
+ # @return [Array<(ApiResponseSecurityWilliamsR, Fixnum, Hash)>] ApiResponseSecurityWilliamsR data, response status code and response headers
2918
+ def get_security_price_technicals_wr_with_http_info(identifier, opts = {})
2919
+ if @api_client.config.debugging
2920
+ @api_client.config.logger.debug "Calling API: SecurityApi.get_security_price_technicals_wr ..."
2921
+ end
2922
+ # verify the required parameter 'identifier' is set
2923
+ if @api_client.config.client_side_validation && identifier.nil?
2924
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling SecurityApi.get_security_price_technicals_wr"
2925
+ end
2926
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
2927
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling SecurityApi.get_security_price_technicals_wr, must be greater than or equal to 5.'
2928
+ end
2929
+
2930
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2931
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityApi.get_security_price_technicals_wr, must be smaller than or equal to 10000.'
2932
+ end
2933
+
2934
+ # resource path
2935
+ local_var_path = "/securities/{identifier}/prices/technicals/wr".sub('{' + 'identifier' + '}', identifier.to_s)
2936
+
2937
+ # query parameters
2938
+ query_params = {}
2939
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2940
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2941
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2942
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2943
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2944
+
2945
+ # header parameters
2946
+ header_params = {}
2947
+ # HTTP header 'Accept' (if needed)
2948
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2949
+
2950
+ # form parameters
2951
+ form_params = {}
2952
+
2953
+ # http body (model)
2954
+ post_body = nil
2955
+ auth_names = ['ApiKeyAuth']
2956
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2957
+ :header_params => header_params,
2958
+ :query_params => query_params,
2959
+ :form_params => form_params,
2960
+ :body => post_body,
2961
+ :auth_names => auth_names,
2962
+ :return_type => 'ApiResponseSecurityWilliamsR')
2963
+ if @api_client.config.debugging
2964
+ @api_client.config.logger.debug "API called: SecurityApi#get_security_price_technicals_wr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2965
+ end
2966
+ return data, status_code, headers
2967
+ end
2968
+
518
2969
  # Realtime Stock Price for Security
519
2970
  # Return the realtime stock price for the Security with the given `identifier`
520
2971
  # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)