intrinio-sdk 2.2.0 → 2.3.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 (548) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +116 -2
  3. data/docs/ApiResponseCryptoAccumulationDistributionIndex.md +13 -0
  4. data/docs/ApiResponseCryptoAverageDailyTradingVolume.md +13 -0
  5. data/docs/ApiResponseCryptoAverageDirectionalIndex.md +13 -0
  6. data/docs/ApiResponseCryptoAverageTrueRange.md +13 -0
  7. data/docs/ApiResponseCryptoAwesomeOscillator.md +13 -0
  8. data/docs/ApiResponseCryptoBollingerBands.md +13 -0
  9. data/docs/ApiResponseCryptoChaikinMoneyFlow.md +13 -0
  10. data/docs/ApiResponseCryptoCommodityChannelIndex.md +13 -0
  11. data/docs/ApiResponseCryptoDetrendedPriceOscillator.md +13 -0
  12. data/docs/ApiResponseCryptoDonchianChannel.md +13 -0
  13. data/docs/ApiResponseCryptoEaseOfMovement.md +13 -0
  14. data/docs/ApiResponseCryptoForceIndex.md +13 -0
  15. data/docs/ApiResponseCryptoIchimokuKinkoHyo.md +13 -0
  16. data/docs/ApiResponseCryptoKeltnerChannel.md +13 -0
  17. data/docs/ApiResponseCryptoKnowSureThing.md +13 -0
  18. data/docs/ApiResponseCryptoMassIndex.md +13 -0
  19. data/docs/ApiResponseCryptoMoneyFlowIndex.md +13 -0
  20. data/docs/ApiResponseCryptoMovingAverageConvergenceDivergence.md +13 -0
  21. data/docs/ApiResponseCryptoNegativeVolumeIndex.md +13 -0
  22. data/docs/ApiResponseCryptoOnBalanceVolume.md +13 -0
  23. data/docs/ApiResponseCryptoOnBalanceVolumeMean.md +13 -0
  24. data/docs/ApiResponseCryptoRelativeStrengthIndex.md +13 -0
  25. data/docs/ApiResponseCryptoSimpleMovingAverage.md +13 -0
  26. data/docs/ApiResponseCryptoStochasticOscillator.md +13 -0
  27. data/docs/ApiResponseCryptoTripleExponentialAverage.md +13 -0
  28. data/docs/ApiResponseCryptoTrueStrengthIndex.md +13 -0
  29. data/docs/ApiResponseCryptoUltimateOscillator.md +13 -0
  30. data/docs/ApiResponseCryptoVolumePriceTrend.md +13 -0
  31. data/docs/ApiResponseCryptoVolumeWeightedAveragePrice.md +13 -0
  32. data/docs/ApiResponseCryptoVortexIndicator.md +13 -0
  33. data/docs/ApiResponseCryptoWilliamsR.md +13 -0
  34. data/docs/ApiResponseOptionsChain.md +1 -1
  35. data/docs/ApiResponseSecurityZacksAnalystRatings.md +10 -0
  36. data/docs/ApiResponseSecurityZacksAnalystRatingsSnapshot.md +9 -0
  37. data/docs/ApiResponseSecurityZacksEPSSurprises.md +10 -0
  38. data/docs/ApiResponseSecurityZacksSalesSurprises.md +10 -0
  39. data/docs/ApiResponseZacksAnalystRatings.md +9 -0
  40. data/docs/ApiResponseZacksEPSSurprises.md +9 -0
  41. data/docs/ApiResponseZacksSalesSurprises.md +9 -0
  42. data/docs/Company.md +4 -0
  43. data/docs/CompanyApi.md +240 -36
  44. data/docs/CryptoApi.md +2769 -57
  45. data/docs/CryptoPrice.md +1 -1
  46. data/docs/DataPointApi.md +44 -10
  47. data/docs/DataTagApi.md +55 -4
  48. data/docs/FilingApi.md +128 -9
  49. data/docs/ForexApi.md +57 -6
  50. data/docs/Fundamental.md +1 -1
  51. data/docs/FundamentalsApi.md +68 -0
  52. data/docs/HistoricalDataApi.md +25 -8
  53. data/docs/IndexApi.md +331 -25
  54. data/docs/MunicipalityApi.md +51 -0
  55. data/docs/OptionsApi.md +74 -6
  56. data/docs/SecurityApi.md +1108 -78
  57. data/docs/StockExchangeApi.md +117 -15
  58. data/docs/TechnicalApi.md +3121 -37
  59. data/docs/ZacksAnalystRating.md +17 -0
  60. data/docs/ZacksAnalystRatingSnapshot.md +18 -0
  61. data/docs/ZacksAnalystRatingSummary.md +16 -0
  62. data/docs/ZacksApi.md +281 -0
  63. data/docs/ZacksEPSSurprise.md +24 -0
  64. data/docs/ZacksEPSSurpriseSummary.md +23 -0
  65. data/docs/ZacksSalesSurprise.md +24 -0
  66. data/docs/ZacksSalesSurpriseSummary.md +25 -0
  67. data/intrinio-sdk.gemspec +1 -1
  68. data/lib/intrinio-sdk.rb +47 -1
  69. data/lib/intrinio-sdk/api/company_api.rb +33 -33
  70. data/lib/intrinio-sdk/api/crypto_api.rb +3108 -8
  71. data/lib/intrinio-sdk/api/data_point_api.rb +13 -13
  72. data/lib/intrinio-sdk/api/data_tag_api.rb +5 -5
  73. data/lib/intrinio-sdk/api/filing_api.rb +9 -9
  74. data/lib/intrinio-sdk/api/forex_api.rb +7 -6
  75. data/lib/intrinio-sdk/api/fundamentals_api.rb +1 -1
  76. data/lib/intrinio-sdk/api/historical_data_api.rb +9 -9
  77. data/lib/intrinio-sdk/api/index_api.rb +23 -23
  78. data/lib/intrinio-sdk/api/municipality_api.rb +1 -1
  79. data/lib/intrinio-sdk/api/options_api.rb +7 -7
  80. data/lib/intrinio-sdk/api/security_api.rb +393 -42
  81. data/lib/intrinio-sdk/api/stock_exchange_api.rb +11 -11
  82. data/lib/intrinio-sdk/api/technical_api.rb +3108 -12
  83. data/lib/intrinio-sdk/api/zacks_api.rb +393 -0
  84. data/lib/intrinio-sdk/api_client.rb +1 -1
  85. data/lib/intrinio-sdk/api_error.rb +1 -1
  86. data/lib/intrinio-sdk/configuration.rb +1 -1
  87. data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +1 -1
  88. data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
  89. data/lib/intrinio-sdk/models/api_response_companies_search.rb +1 -1
  90. data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
  91. data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
  92. data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
  93. data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
  94. data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
  95. data/lib/intrinio-sdk/models/api_response_crypto_accumulation_distribution_index.rb +238 -0
  96. data/lib/intrinio-sdk/models/api_response_crypto_average_daily_trading_volume.rb +238 -0
  97. data/lib/intrinio-sdk/models/api_response_crypto_average_directional_index.rb +238 -0
  98. data/lib/intrinio-sdk/models/api_response_crypto_average_true_range.rb +238 -0
  99. data/lib/intrinio-sdk/models/api_response_crypto_awesome_oscillator.rb +238 -0
  100. data/lib/intrinio-sdk/models/api_response_crypto_bollinger_bands.rb +238 -0
  101. data/lib/intrinio-sdk/models/api_response_crypto_book.rb +1 -1
  102. data/lib/intrinio-sdk/models/api_response_crypto_book_asks.rb +1 -1
  103. data/lib/intrinio-sdk/models/api_response_crypto_book_bids.rb +1 -1
  104. data/lib/intrinio-sdk/models/api_response_crypto_chaikin_money_flow.rb +238 -0
  105. data/lib/intrinio-sdk/models/api_response_crypto_commodity_channel_index.rb +238 -0
  106. data/lib/intrinio-sdk/models/api_response_crypto_currencies.rb +1 -1
  107. data/lib/intrinio-sdk/models/api_response_crypto_detrended_price_oscillator.rb +238 -0
  108. data/lib/intrinio-sdk/models/api_response_crypto_donchian_channel.rb +238 -0
  109. data/lib/intrinio-sdk/models/api_response_crypto_ease_of_movement.rb +238 -0
  110. data/lib/intrinio-sdk/models/api_response_crypto_exchanges.rb +1 -1
  111. data/lib/intrinio-sdk/models/api_response_crypto_force_index.rb +238 -0
  112. data/lib/intrinio-sdk/models/api_response_crypto_ichimoku_kinko_hyo.rb +238 -0
  113. data/lib/intrinio-sdk/models/api_response_crypto_keltner_channel.rb +238 -0
  114. data/lib/intrinio-sdk/models/api_response_crypto_know_sure_thing.rb +238 -0
  115. data/lib/intrinio-sdk/models/api_response_crypto_mass_index.rb +238 -0
  116. data/lib/intrinio-sdk/models/api_response_crypto_money_flow_index.rb +238 -0
  117. data/lib/intrinio-sdk/models/api_response_crypto_moving_average_convergence_divergence.rb +238 -0
  118. data/lib/intrinio-sdk/models/api_response_crypto_negative_volume_index.rb +238 -0
  119. data/lib/intrinio-sdk/models/api_response_crypto_on_balance_volume.rb +238 -0
  120. data/lib/intrinio-sdk/models/api_response_crypto_on_balance_volume_mean.rb +238 -0
  121. data/lib/intrinio-sdk/models/api_response_crypto_pairs.rb +1 -1
  122. data/lib/intrinio-sdk/models/api_response_crypto_prices.rb +1 -1
  123. data/lib/intrinio-sdk/models/api_response_crypto_relative_strength_index.rb +238 -0
  124. data/lib/intrinio-sdk/models/api_response_crypto_simple_moving_average.rb +238 -0
  125. data/lib/intrinio-sdk/models/api_response_crypto_snapshot.rb +1 -1
  126. data/lib/intrinio-sdk/models/api_response_crypto_stats.rb +1 -1
  127. data/lib/intrinio-sdk/models/api_response_crypto_stochastic_oscillator.rb +238 -0
  128. data/lib/intrinio-sdk/models/api_response_crypto_triple_exponential_average.rb +238 -0
  129. data/lib/intrinio-sdk/models/api_response_crypto_true_strength_index.rb +238 -0
  130. data/lib/intrinio-sdk/models/api_response_crypto_ultimate_oscillator.rb +238 -0
  131. data/lib/intrinio-sdk/models/api_response_crypto_volume_price_trend.rb +238 -0
  132. data/lib/intrinio-sdk/models/api_response_crypto_volume_weighted_average_price.rb +238 -0
  133. data/lib/intrinio-sdk/models/api_response_crypto_vortex_indicator.rb +238 -0
  134. data/lib/intrinio-sdk/models/api_response_crypto_williams_r.rb +238 -0
  135. data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
  136. data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +1 -1
  137. data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
  138. data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
  139. data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +1 -1
  140. data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
  141. data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
  142. data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
  143. data/lib/intrinio-sdk/models/api_response_forex_currencies.rb +1 -1
  144. data/lib/intrinio-sdk/models/api_response_forex_pairs.rb +1 -1
  145. data/lib/intrinio-sdk/models/api_response_forex_prices.rb +1 -1
  146. data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
  147. data/lib/intrinio-sdk/models/api_response_municipalities.rb +1 -1
  148. data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +1 -1
  149. data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
  150. data/lib/intrinio-sdk/models/api_response_option_prices.rb +1 -1
  151. data/lib/intrinio-sdk/models/api_response_options.rb +1 -1
  152. data/lib/intrinio-sdk/models/api_response_options_chain.rb +9 -9
  153. data/lib/intrinio-sdk/models/api_response_options_expirations.rb +1 -1
  154. data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
  155. data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
  156. data/lib/intrinio-sdk/models/api_response_securities_search.rb +1 -1
  157. data/lib/intrinio-sdk/models/api_response_security_accumulation_distribution_index.rb +1 -1
  158. data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +1 -1
  159. data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +1 -1
  160. data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +1 -1
  161. data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +1 -1
  162. data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +1 -1
  163. data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +1 -1
  164. data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +1 -1
  165. data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +1 -1
  166. data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +1 -1
  167. data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +1 -1
  168. data/lib/intrinio-sdk/models/api_response_security_force_index.rb +1 -1
  169. data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
  170. data/lib/intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo.rb +1 -1
  171. data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +1 -1
  172. data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +1 -1
  173. data/lib/intrinio-sdk/models/api_response_security_know_sure_thing.rb +1 -1
  174. data/lib/intrinio-sdk/models/api_response_security_mass_index.rb +1 -1
  175. data/lib/intrinio-sdk/models/api_response_security_money_flow_index.rb +1 -1
  176. data/lib/intrinio-sdk/models/api_response_security_moving_average_convergence_divergence.rb +1 -1
  177. data/lib/intrinio-sdk/models/api_response_security_negative_volume_index.rb +1 -1
  178. data/lib/intrinio-sdk/models/api_response_security_on_balance_volume.rb +1 -1
  179. data/lib/intrinio-sdk/models/api_response_security_on_balance_volume_mean.rb +1 -1
  180. data/lib/intrinio-sdk/models/api_response_security_relative_strength_index.rb +1 -1
  181. data/lib/intrinio-sdk/models/api_response_security_simple_moving_average.rb +1 -1
  182. data/lib/intrinio-sdk/models/api_response_security_stochastic_oscillator.rb +1 -1
  183. data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
  184. data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
  185. data/lib/intrinio-sdk/models/api_response_security_triple_exponential_average.rb +1 -1
  186. data/lib/intrinio-sdk/models/api_response_security_true_strength_index.rb +1 -1
  187. data/lib/intrinio-sdk/models/api_response_security_ultimate_oscillator.rb +1 -1
  188. data/lib/intrinio-sdk/models/api_response_security_volume_price_trend.rb +1 -1
  189. data/lib/intrinio-sdk/models/api_response_security_volume_weighted_average_price.rb +1 -1
  190. data/lib/intrinio-sdk/models/api_response_security_vortex_indicator.rb +1 -1
  191. data/lib/intrinio-sdk/models/api_response_security_williams_r.rb +1 -1
  192. data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings.rb +210 -0
  193. data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings_snapshot.rb +200 -0
  194. data/lib/intrinio-sdk/models/api_response_security_zacks_eps_surprises.rb +210 -0
  195. data/lib/intrinio-sdk/models/api_response_security_zacks_sales_surprises.rb +210 -0
  196. data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
  197. data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
  198. data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +1 -1
  199. data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
  200. data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
  201. data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
  202. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
  203. data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
  204. data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
  205. data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
  206. data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
  207. data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +1 -1
  208. data/lib/intrinio-sdk/models/api_response_zacks_analyst_ratings.rb +200 -0
  209. data/lib/intrinio-sdk/models/api_response_zacks_eps_surprises.rb +201 -0
  210. data/lib/intrinio-sdk/models/api_response_zacks_sales_surprises.rb +201 -0
  211. data/lib/intrinio-sdk/models/average_daily_trading_volume_technical_value.rb +1 -1
  212. data/lib/intrinio-sdk/models/average_directional_index_technical_value.rb +1 -1
  213. data/lib/intrinio-sdk/models/average_true_range_technical_value.rb +1 -1
  214. data/lib/intrinio-sdk/models/awesome_oscillator_technical_value.rb +1 -1
  215. data/lib/intrinio-sdk/models/bollinger_bands_technical_value.rb +1 -1
  216. data/lib/intrinio-sdk/models/chaikin_money_flow_technical_value.rb +1 -1
  217. data/lib/intrinio-sdk/models/commodity_channel_index_technical_value.rb +1 -1
  218. data/lib/intrinio-sdk/models/company.rb +45 -5
  219. data/lib/intrinio-sdk/models/company_filing.rb +1 -1
  220. data/lib/intrinio-sdk/models/company_news.rb +1 -1
  221. data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
  222. data/lib/intrinio-sdk/models/company_summary.rb +1 -1
  223. data/lib/intrinio-sdk/models/crypto_ask.rb +1 -1
  224. data/lib/intrinio-sdk/models/crypto_bid.rb +1 -1
  225. data/lib/intrinio-sdk/models/crypto_book_entry.rb +1 -1
  226. data/lib/intrinio-sdk/models/crypto_currency.rb +1 -1
  227. data/lib/intrinio-sdk/models/crypto_exchange.rb +1 -1
  228. data/lib/intrinio-sdk/models/crypto_exchange_summary.rb +1 -1
  229. data/lib/intrinio-sdk/models/crypto_pair.rb +1 -1
  230. data/lib/intrinio-sdk/models/crypto_pair_summary.rb +1 -1
  231. data/lib/intrinio-sdk/models/crypto_price.rb +2 -2
  232. data/lib/intrinio-sdk/models/crypto_snapshot.rb +1 -1
  233. data/lib/intrinio-sdk/models/crypto_stat.rb +1 -1
  234. data/lib/intrinio-sdk/models/data_tag.rb +1 -1
  235. data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
  236. data/lib/intrinio-sdk/models/detrended_price_oscillator_technical_value.rb +1 -1
  237. data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
  238. data/lib/intrinio-sdk/models/donchian_channel_technical_value.rb +1 -1
  239. data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
  240. data/lib/intrinio-sdk/models/ease_of_movement_technical_value.rb +1 -1
  241. data/lib/intrinio-sdk/models/economic_index.rb +1 -1
  242. data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
  243. data/lib/intrinio-sdk/models/filing.rb +1 -1
  244. data/lib/intrinio-sdk/models/filing_note.rb +1 -1
  245. data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
  246. data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
  247. data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
  248. data/lib/intrinio-sdk/models/force_index_technical_value.rb +1 -1
  249. data/lib/intrinio-sdk/models/forex_currency.rb +1 -1
  250. data/lib/intrinio-sdk/models/forex_pair.rb +1 -1
  251. data/lib/intrinio-sdk/models/forex_price.rb +1 -1
  252. data/lib/intrinio-sdk/models/fundamental.rb +2 -2
  253. data/lib/intrinio-sdk/models/fundamental_summary.rb +1 -1
  254. data/lib/intrinio-sdk/models/historical_data.rb +1 -1
  255. data/lib/intrinio-sdk/models/ichimoku_kinko_hyo_technical_value.rb +1 -1
  256. data/lib/intrinio-sdk/models/intraday_stock_price.rb +1 -1
  257. data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +1 -1
  258. data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +1 -1
  259. data/lib/intrinio-sdk/models/mass_index_technical_value.rb +1 -1
  260. data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +1 -1
  261. data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +1 -1
  262. data/lib/intrinio-sdk/models/municipality.rb +1 -1
  263. data/lib/intrinio-sdk/models/municipality_financial.rb +1 -1
  264. data/lib/intrinio-sdk/models/negative_volume_index_technical_value.rb +1 -1
  265. data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +1 -1
  266. data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +1 -1
  267. data/lib/intrinio-sdk/models/option.rb +1 -1
  268. data/lib/intrinio-sdk/models/option_chain.rb +1 -1
  269. data/lib/intrinio-sdk/models/option_price.rb +1 -1
  270. data/lib/intrinio-sdk/models/realtime_stock_price.rb +1 -1
  271. data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
  272. data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +1 -1
  273. data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
  274. data/lib/intrinio-sdk/models/reported_financial_dimension.rb +1 -1
  275. data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
  276. data/lib/intrinio-sdk/models/security.rb +1 -1
  277. data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
  278. data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
  279. data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
  280. data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
  281. data/lib/intrinio-sdk/models/security_summary.rb +1 -1
  282. data/lib/intrinio-sdk/models/sic_index.rb +1 -1
  283. data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +1 -1
  284. data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
  285. data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +1 -1
  286. data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
  287. data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
  288. data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
  289. data/lib/intrinio-sdk/models/stock_price.rb +1 -1
  290. data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
  291. data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
  292. data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
  293. data/lib/intrinio-sdk/models/technical_indicator.rb +1 -1
  294. data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +1 -1
  295. data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +1 -1
  296. data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +1 -1
  297. data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +1 -1
  298. data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +1 -1
  299. data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +1 -1
  300. data/lib/intrinio-sdk/models/williams_r_technical_value.rb +1 -1
  301. data/lib/intrinio-sdk/models/zacks_analyst_rating.rb +279 -0
  302. data/lib/intrinio-sdk/models/zacks_analyst_rating_snapshot.rb +289 -0
  303. data/lib/intrinio-sdk/models/zacks_analyst_rating_summary.rb +269 -0
  304. data/lib/intrinio-sdk/models/zacks_eps_surprise.rb +349 -0
  305. data/lib/intrinio-sdk/models/zacks_eps_surprise_summary.rb +339 -0
  306. data/lib/intrinio-sdk/models/zacks_sales_surprise.rb +349 -0
  307. data/lib/intrinio-sdk/models/zacks_sales_surprise_summary.rb +359 -0
  308. data/lib/intrinio-sdk/version.rb +2 -2
  309. data/spec/api/company_api_spec.rb +17 -17
  310. data/spec/api/crypto_api_spec.rb +741 -4
  311. data/spec/api/data_point_api_spec.rb +7 -7
  312. data/spec/api/data_tag_api_spec.rb +3 -3
  313. data/spec/api/filing_api_spec.rb +5 -5
  314. data/spec/api/forex_api_spec.rb +3 -3
  315. data/spec/api/fundamentals_api_spec.rb +1 -1
  316. data/spec/api/historical_data_api_spec.rb +5 -5
  317. data/spec/api/index_api_spec.rb +12 -12
  318. data/spec/api/municipality_api_spec.rb +1 -1
  319. data/spec/api/options_api_spec.rb +4 -4
  320. data/spec/api/security_api_spec.rb +88 -19
  321. data/spec/api/stock_exchange_api_spec.rb +6 -6
  322. data/spec/api/technical_api_spec.rb +740 -4
  323. data/spec/api/zacks_api_spec.rb +119 -0
  324. data/spec/api_client_spec.rb +1 -1
  325. data/spec/configuration_spec.rb +1 -1
  326. data/spec/models/accumulation_distribution_index_technical_value_spec.rb +1 -1
  327. data/spec/models/api_response_companies_search_spec.rb +1 -1
  328. data/spec/models/api_response_companies_spec.rb +1 -1
  329. data/spec/models/api_response_company_filings_spec.rb +1 -1
  330. data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
  331. data/spec/models/api_response_company_historical_data_spec.rb +1 -1
  332. data/spec/models/api_response_company_news_spec.rb +1 -1
  333. data/spec/models/api_response_company_securities_spec.rb +1 -1
  334. data/spec/models/api_response_crypto_accumulation_distribution_index_spec.rb +72 -0
  335. data/spec/models/api_response_crypto_average_daily_trading_volume_spec.rb +72 -0
  336. data/spec/models/api_response_crypto_average_directional_index_spec.rb +72 -0
  337. data/spec/models/api_response_crypto_average_true_range_spec.rb +72 -0
  338. data/spec/models/api_response_crypto_awesome_oscillator_spec.rb +72 -0
  339. data/spec/models/api_response_crypto_bollinger_bands_spec.rb +72 -0
  340. data/spec/models/api_response_crypto_book_asks_spec.rb +1 -1
  341. data/spec/models/api_response_crypto_book_bids_spec.rb +1 -1
  342. data/spec/models/api_response_crypto_book_spec.rb +1 -1
  343. data/spec/models/api_response_crypto_chaikin_money_flow_spec.rb +72 -0
  344. data/spec/models/api_response_crypto_commodity_channel_index_spec.rb +72 -0
  345. data/spec/models/api_response_crypto_currencies_spec.rb +1 -1
  346. data/spec/models/api_response_crypto_detrended_price_oscillator_spec.rb +72 -0
  347. data/spec/models/api_response_crypto_donchian_channel_spec.rb +72 -0
  348. data/spec/models/api_response_crypto_ease_of_movement_spec.rb +72 -0
  349. data/spec/models/api_response_crypto_exchanges_spec.rb +1 -1
  350. data/spec/models/api_response_crypto_force_index_spec.rb +72 -0
  351. data/spec/models/api_response_crypto_ichimoku_kinko_hyo_spec.rb +72 -0
  352. data/spec/models/api_response_crypto_keltner_channel_spec.rb +72 -0
  353. data/spec/models/api_response_crypto_know_sure_thing_spec.rb +72 -0
  354. data/spec/models/api_response_crypto_mass_index_spec.rb +72 -0
  355. data/spec/models/api_response_crypto_money_flow_index_spec.rb +72 -0
  356. data/spec/models/api_response_crypto_moving_average_convergence_divergence_spec.rb +72 -0
  357. data/spec/models/api_response_crypto_negative_volume_index_spec.rb +72 -0
  358. data/spec/models/api_response_crypto_on_balance_volume_mean_spec.rb +72 -0
  359. data/spec/models/api_response_crypto_on_balance_volume_spec.rb +72 -0
  360. data/spec/models/api_response_crypto_pairs_spec.rb +1 -1
  361. data/spec/models/api_response_crypto_prices_spec.rb +1 -1
  362. data/spec/models/api_response_crypto_relative_strength_index_spec.rb +72 -0
  363. data/spec/models/api_response_crypto_simple_moving_average_spec.rb +72 -0
  364. data/spec/models/api_response_crypto_snapshot_spec.rb +1 -1
  365. data/spec/models/api_response_crypto_stats_spec.rb +1 -1
  366. data/spec/models/api_response_crypto_stochastic_oscillator_spec.rb +72 -0
  367. data/spec/models/api_response_crypto_triple_exponential_average_spec.rb +72 -0
  368. data/spec/models/api_response_crypto_true_strength_index_spec.rb +72 -0
  369. data/spec/models/api_response_crypto_ultimate_oscillator_spec.rb +72 -0
  370. data/spec/models/api_response_crypto_volume_price_trend_spec.rb +72 -0
  371. data/spec/models/api_response_crypto_volume_weighted_average_price_spec.rb +72 -0
  372. data/spec/models/api_response_crypto_vortex_indicator_spec.rb +72 -0
  373. data/spec/models/api_response_crypto_williams_r_spec.rb +72 -0
  374. data/spec/models/api_response_data_tags_search_spec.rb +1 -1
  375. data/spec/models/api_response_data_tags_spec.rb +1 -1
  376. data/spec/models/api_response_economic_index_historical_data_spec.rb +1 -1
  377. data/spec/models/api_response_economic_indices_search_spec.rb +1 -1
  378. data/spec/models/api_response_economic_indices_spec.rb +1 -1
  379. data/spec/models/api_response_filing_notes_search_spec.rb +1 -1
  380. data/spec/models/api_response_filing_notes_spec.rb +1 -1
  381. data/spec/models/api_response_filings_spec.rb +1 -1
  382. data/spec/models/api_response_forex_currencies_spec.rb +1 -1
  383. data/spec/models/api_response_forex_pairs_spec.rb +1 -1
  384. data/spec/models/api_response_forex_prices_spec.rb +1 -1
  385. data/spec/models/api_response_historical_data_spec.rb +1 -1
  386. data/spec/models/api_response_municipalities_spec.rb +1 -1
  387. data/spec/models/api_response_municipalitiy_financials_spec.rb +1 -1
  388. data/spec/models/api_response_news_spec.rb +1 -1
  389. data/spec/models/api_response_option_prices_spec.rb +1 -1
  390. data/spec/models/api_response_options_chain_spec.rb +2 -2
  391. data/spec/models/api_response_options_expirations_spec.rb +1 -1
  392. data/spec/models/api_response_options_spec.rb +1 -1
  393. data/spec/models/api_response_reported_financials_spec.rb +1 -1
  394. data/spec/models/api_response_securities_search_spec.rb +1 -1
  395. data/spec/models/api_response_securities_spec.rb +1 -1
  396. data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +1 -1
  397. data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +1 -1
  398. data/spec/models/api_response_security_average_directional_index_spec.rb +1 -1
  399. data/spec/models/api_response_security_average_true_range_spec.rb +1 -1
  400. data/spec/models/api_response_security_awesome_oscillator_spec.rb +1 -1
  401. data/spec/models/api_response_security_bollinger_bands_spec.rb +1 -1
  402. data/spec/models/api_response_security_chaikin_money_flow_spec.rb +1 -1
  403. data/spec/models/api_response_security_commodity_channel_index_spec.rb +1 -1
  404. data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +1 -1
  405. data/spec/models/api_response_security_donchian_channel_spec.rb +1 -1
  406. data/spec/models/api_response_security_ease_of_movement_spec.rb +1 -1
  407. data/spec/models/api_response_security_force_index_spec.rb +1 -1
  408. data/spec/models/api_response_security_historical_data_spec.rb +1 -1
  409. data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +1 -1
  410. data/spec/models/api_response_security_intraday_prices_spec.rb +1 -1
  411. data/spec/models/api_response_security_keltner_channel_spec.rb +1 -1
  412. data/spec/models/api_response_security_know_sure_thing_spec.rb +1 -1
  413. data/spec/models/api_response_security_mass_index_spec.rb +1 -1
  414. data/spec/models/api_response_security_money_flow_index_spec.rb +1 -1
  415. data/spec/models/api_response_security_moving_average_convergence_divergence_spec.rb +1 -1
  416. data/spec/models/api_response_security_negative_volume_index_spec.rb +1 -1
  417. data/spec/models/api_response_security_on_balance_volume_mean_spec.rb +1 -1
  418. data/spec/models/api_response_security_on_balance_volume_spec.rb +1 -1
  419. data/spec/models/api_response_security_relative_strength_index_spec.rb +1 -1
  420. data/spec/models/api_response_security_simple_moving_average_spec.rb +1 -1
  421. data/spec/models/api_response_security_stochastic_oscillator_spec.rb +1 -1
  422. data/spec/models/api_response_security_stock_price_adjustments_spec.rb +1 -1
  423. data/spec/models/api_response_security_stock_prices_spec.rb +1 -1
  424. data/spec/models/api_response_security_triple_exponential_average_spec.rb +1 -1
  425. data/spec/models/api_response_security_true_strength_index_spec.rb +1 -1
  426. data/spec/models/api_response_security_ultimate_oscillator_spec.rb +1 -1
  427. data/spec/models/api_response_security_volume_price_trend_spec.rb +1 -1
  428. data/spec/models/api_response_security_volume_weighted_average_price_spec.rb +1 -1
  429. data/spec/models/api_response_security_vortex_indicator_spec.rb +1 -1
  430. data/spec/models/api_response_security_williams_r_spec.rb +1 -1
  431. data/spec/models/api_response_security_zacks_analyst_ratings_snapshot_spec.rb +48 -0
  432. data/spec/models/api_response_security_zacks_analyst_ratings_spec.rb +54 -0
  433. data/spec/models/api_response_security_zacks_eps_surprises_spec.rb +54 -0
  434. data/spec/models/api_response_security_zacks_sales_surprises_spec.rb +54 -0
  435. data/spec/models/api_response_sic_index_historical_data_spec.rb +1 -1
  436. data/spec/models/api_response_sic_indices_search_spec.rb +1 -1
  437. data/spec/models/api_response_sic_indices_spec.rb +1 -1
  438. data/spec/models/api_response_standardized_financials_spec.rb +1 -1
  439. data/spec/models/api_response_stock_exchange_realtime_stock_prices_spec.rb +1 -1
  440. data/spec/models/api_response_stock_exchange_securities_spec.rb +1 -1
  441. data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +1 -1
  442. data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +1 -1
  443. data/spec/models/api_response_stock_exchanges_spec.rb +1 -1
  444. data/spec/models/api_response_stock_market_index_historical_data_spec.rb +1 -1
  445. data/spec/models/api_response_stock_market_indices_search_spec.rb +1 -1
  446. data/spec/models/api_response_stock_market_indices_spec.rb +1 -1
  447. data/spec/models/api_response_zacks_analyst_ratings_spec.rb +48 -0
  448. data/spec/models/api_response_zacks_eps_surprises_spec.rb +48 -0
  449. data/spec/models/api_response_zacks_sales_surprises_spec.rb +48 -0
  450. data/spec/models/average_daily_trading_volume_technical_value_spec.rb +1 -1
  451. data/spec/models/average_directional_index_technical_value_spec.rb +1 -1
  452. data/spec/models/average_true_range_technical_value_spec.rb +1 -1
  453. data/spec/models/awesome_oscillator_technical_value_spec.rb +1 -1
  454. data/spec/models/bollinger_bands_technical_value_spec.rb +1 -1
  455. data/spec/models/chaikin_money_flow_technical_value_spec.rb +1 -1
  456. data/spec/models/commodity_channel_index_technical_value_spec.rb +1 -1
  457. data/spec/models/company_filing_spec.rb +1 -1
  458. data/spec/models/company_news_spec.rb +1 -1
  459. data/spec/models/company_news_summary_spec.rb +1 -1
  460. data/spec/models/company_spec.rb +25 -1
  461. data/spec/models/company_summary_spec.rb +1 -1
  462. data/spec/models/crypto_ask_spec.rb +1 -1
  463. data/spec/models/crypto_bid_spec.rb +1 -1
  464. data/spec/models/crypto_book_entry_spec.rb +1 -1
  465. data/spec/models/crypto_currency_spec.rb +1 -1
  466. data/spec/models/crypto_exchange_spec.rb +1 -1
  467. data/spec/models/crypto_exchange_summary_spec.rb +1 -1
  468. data/spec/models/crypto_pair_spec.rb +1 -1
  469. data/spec/models/crypto_pair_summary_spec.rb +1 -1
  470. data/spec/models/crypto_price_spec.rb +1 -1
  471. data/spec/models/crypto_snapshot_spec.rb +1 -1
  472. data/spec/models/crypto_stat_spec.rb +1 -1
  473. data/spec/models/data_tag_spec.rb +1 -1
  474. data/spec/models/data_tag_summary_spec.rb +1 -1
  475. data/spec/models/detrended_price_oscillator_technical_value_spec.rb +1 -1
  476. data/spec/models/dividend_record_spec.rb +1 -1
  477. data/spec/models/donchian_channel_technical_value_spec.rb +1 -1
  478. data/spec/models/earnings_record_spec.rb +1 -1
  479. data/spec/models/ease_of_movement_technical_value_spec.rb +1 -1
  480. data/spec/models/economic_index_spec.rb +1 -1
  481. data/spec/models/economic_index_summary_spec.rb +1 -1
  482. data/spec/models/filing_note_filing_spec.rb +1 -1
  483. data/spec/models/filing_note_spec.rb +1 -1
  484. data/spec/models/filing_note_summary_spec.rb +1 -1
  485. data/spec/models/filing_spec.rb +1 -1
  486. data/spec/models/filing_summary_spec.rb +1 -1
  487. data/spec/models/force_index_technical_value_spec.rb +1 -1
  488. data/spec/models/forex_currency_spec.rb +1 -1
  489. data/spec/models/forex_pair_spec.rb +1 -1
  490. data/spec/models/forex_price_spec.rb +1 -1
  491. data/spec/models/fundamental_spec.rb +1 -1
  492. data/spec/models/fundamental_summary_spec.rb +1 -1
  493. data/spec/models/historical_data_spec.rb +1 -1
  494. data/spec/models/ichimoku_kinko_hyo_technical_value_spec.rb +1 -1
  495. data/spec/models/intraday_stock_price_spec.rb +1 -1
  496. data/spec/models/keltner_channel_technical_value_spec.rb +1 -1
  497. data/spec/models/know_sure_thing_technical_value_spec.rb +1 -1
  498. data/spec/models/mass_index_technical_value_spec.rb +1 -1
  499. data/spec/models/money_flow_index_technical_value_spec.rb +1 -1
  500. data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +1 -1
  501. data/spec/models/municipality_financial_spec.rb +1 -1
  502. data/spec/models/municipality_spec.rb +1 -1
  503. data/spec/models/negative_volume_index_technical_value_spec.rb +1 -1
  504. data/spec/models/on_balance_volume_mean_technical_value_spec.rb +1 -1
  505. data/spec/models/on_balance_volume_technical_value_spec.rb +1 -1
  506. data/spec/models/option_chain_spec.rb +1 -1
  507. data/spec/models/option_price_spec.rb +1 -1
  508. data/spec/models/option_spec.rb +1 -1
  509. data/spec/models/realtime_stock_price_security_spec.rb +1 -1
  510. data/spec/models/realtime_stock_price_spec.rb +1 -1
  511. data/spec/models/relative_strength_index_technical_value_spec.rb +1 -1
  512. data/spec/models/reported_financial_dimension_spec.rb +1 -1
  513. data/spec/models/reported_financial_spec.rb +1 -1
  514. data/spec/models/reported_tag_spec.rb +1 -1
  515. data/spec/models/security_screen_clause_spec.rb +1 -1
  516. data/spec/models/security_screen_group_spec.rb +1 -1
  517. data/spec/models/security_screen_result_data_spec.rb +1 -1
  518. data/spec/models/security_screen_result_spec.rb +1 -1
  519. data/spec/models/security_spec.rb +1 -1
  520. data/spec/models/security_summary_spec.rb +1 -1
  521. data/spec/models/sic_index_spec.rb +1 -1
  522. data/spec/models/simple_moving_average_technical_value_spec.rb +1 -1
  523. data/spec/models/standardized_financial_spec.rb +1 -1
  524. data/spec/models/stochastic_oscillator_technical_value_spec.rb +1 -1
  525. data/spec/models/stock_exchange_spec.rb +1 -1
  526. data/spec/models/stock_market_index_spec.rb +1 -1
  527. data/spec/models/stock_market_index_summary_spec.rb +1 -1
  528. data/spec/models/stock_price_adjustment_spec.rb +1 -1
  529. data/spec/models/stock_price_adjustment_summary_spec.rb +1 -1
  530. data/spec/models/stock_price_spec.rb +1 -1
  531. data/spec/models/stock_price_summary_spec.rb +1 -1
  532. data/spec/models/technical_indicator_spec.rb +1 -1
  533. data/spec/models/triple_exponential_average_technical_value_spec.rb +1 -1
  534. data/spec/models/true_strength_index_technical_value_spec.rb +1 -1
  535. data/spec/models/ultimate_oscillator_technical_value_spec.rb +1 -1
  536. data/spec/models/volume_price_trend_technical_value_spec.rb +1 -1
  537. data/spec/models/volume_weighted_average_price_value_spec.rb +1 -1
  538. data/spec/models/vortex_indicator_technical_value_spec.rb +1 -1
  539. data/spec/models/williams_r_technical_value_spec.rb +1 -1
  540. data/spec/models/zacks_analyst_rating_snapshot_spec.rb +102 -0
  541. data/spec/models/zacks_analyst_rating_spec.rb +96 -0
  542. data/spec/models/zacks_analyst_rating_summary_spec.rb +90 -0
  543. data/spec/models/zacks_eps_surprise_spec.rb +138 -0
  544. data/spec/models/zacks_eps_surprise_summary_spec.rb +132 -0
  545. data/spec/models/zacks_sales_surprise_spec.rb +138 -0
  546. data/spec/models/zacks_sales_surprise_summary_spec.rb +144 -0
  547. data/spec/spec_helper.rb +1 -1
  548. metadata +186 -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.5.0
6
+ OpenAPI spec version: 2.6.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -26,7 +26,7 @@ module Intrinio
26
26
  # @option opts [String] :city Filter by city
27
27
  # @option opts [String] :country Filter by country
28
28
  # @option opts [String] :country_code Filter by ISO country code
29
- # @option opts [Float] :page_size The number of results to return (default to 100)
29
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
30
30
  # @return [ApiResponseStockExchanges]
31
31
  def get_all_stock_exchanges(opts = {})
32
32
  data, _status_code, _headers = get_all_stock_exchanges_with_http_info(opts)
@@ -39,7 +39,7 @@ module Intrinio
39
39
  # @option opts [String] :city Filter by city
40
40
  # @option opts [String] :country Filter by country
41
41
  # @option opts [String] :country_code Filter by ISO country code
42
- # @option opts [Float] :page_size The number of results to return
42
+ # @option opts [Integer] :page_size The number of results to return
43
43
  # @return [Array<(ApiResponseStockExchanges, Fixnum, Hash)>] ApiResponseStockExchanges data, response status code and response headers
44
44
  def get_all_stock_exchanges_with_http_info(opts = {})
45
45
  if @api_client.config.debugging
@@ -141,7 +141,7 @@ module Intrinio
141
141
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
142
142
  # @param [Hash] opts the optional parameters
143
143
  # @option opts [Date] :date The date for which to return price adjustments
144
- # @option opts [Float] :page_size The number of results to return (default to 100)
144
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
145
145
  # @option opts [String] :next_page Gets the next page of data from a previous API call
146
146
  # @return [ApiResponseStockExchangeStockPriceAdjustments]
147
147
  def get_stock_exchange_price_adjustments(identifier, opts = {})
@@ -154,7 +154,7 @@ module Intrinio
154
154
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [Date] :date The date for which to return price adjustments
157
- # @option opts [Float] :page_size The number of results to return
157
+ # @option opts [Integer] :page_size The number of results to return
158
158
  # @option opts [String] :next_page Gets the next page of data from a previous API call
159
159
  # @return [Array<(ApiResponseStockExchangeStockPriceAdjustments, Fixnum, Hash)>] ApiResponseStockExchangeStockPriceAdjustments data, response status code and response headers
160
160
  def get_stock_exchange_price_adjustments_with_http_info(identifier, opts = {})
@@ -207,7 +207,7 @@ module Intrinio
207
207
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
208
208
  # @param [Hash] opts the optional parameters
209
209
  # @option opts [Date] :date The date for which to return prices
210
- # @option opts [Float] :page_size The number of results to return (default to 100)
210
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
211
211
  # @option opts [String] :next_page Gets the next page of data from a previous API call
212
212
  # @return [ApiResponseStockExchangeStockPrices]
213
213
  def get_stock_exchange_prices(identifier, opts = {})
@@ -220,7 +220,7 @@ module Intrinio
220
220
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
221
221
  # @param [Hash] opts the optional parameters
222
222
  # @option opts [Date] :date The date for which to return prices
223
- # @option opts [Float] :page_size The number of results to return
223
+ # @option opts [Integer] :page_size The number of results to return
224
224
  # @option opts [String] :next_page Gets the next page of data from a previous API call
225
225
  # @return [Array<(ApiResponseStockExchangeStockPrices, Fixnum, Hash)>] ApiResponseStockExchangeStockPrices data, response status code and response headers
226
226
  def get_stock_exchange_prices_with_http_info(identifier, opts = {})
@@ -273,7 +273,7 @@ module Intrinio
273
273
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
274
274
  # @param [Hash] opts the optional parameters
275
275
  # @option opts [String] :source Return realtime prices from the specified data source
276
- # @option opts [Float] :page_size The number of results to return (default to 100)
276
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
277
277
  # @option opts [String] :next_page Gets the next page of data from a previous API call
278
278
  # @return [ApiResponseStockExchangeRealtimeStockPrices]
279
279
  def get_stock_exchange_realtime_prices(identifier, opts = {})
@@ -286,7 +286,7 @@ module Intrinio
286
286
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
287
287
  # @param [Hash] opts the optional parameters
288
288
  # @option opts [String] :source Return realtime prices from the specified data source
289
- # @option opts [Float] :page_size The number of results to return
289
+ # @option opts [Integer] :page_size The number of results to return
290
290
  # @option opts [String] :next_page Gets the next page of data from a previous API call
291
291
  # @return [Array<(ApiResponseStockExchangeRealtimeStockPrices, Fixnum, Hash)>] ApiResponseStockExchangeRealtimeStockPrices data, response status code and response headers
292
292
  def get_stock_exchange_realtime_prices_with_http_info(identifier, opts = {})
@@ -341,7 +341,7 @@ module Intrinio
341
341
  # Returns Securities traded on the Stock Exchange with `identifier`
342
342
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
343
343
  # @param [Hash] opts the optional parameters
344
- # @option opts [Float] :page_size The number of results to return (default to 100)
344
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
345
345
  # @option opts [String] :next_page Gets the next page of data from a previous API call
346
346
  # @return [ApiResponseStockExchangeSecurities]
347
347
  def get_stock_exchange_securities(identifier, opts = {})
@@ -353,7 +353,7 @@ module Intrinio
353
353
  # Returns Securities traded on the Stock Exchange with &#x60;identifier&#x60;
354
354
  # @param identifier A Stock Exchange identifier (MIC or Intrinio ID)
355
355
  # @param [Hash] opts the optional parameters
356
- # @option opts [Float] :page_size The number of results to return
356
+ # @option opts [Integer] :page_size The number of results to return
357
357
  # @option opts [String] :next_page Gets the next page of data from a previous API call
358
358
  # @return [Array<(ApiResponseStockExchangeSecurities, Fixnum, Hash)>] ApiResponseStockExchangeSecurities data, response status code and response headers
359
359
  def get_stock_exchange_securities_with_http_info(identifier, opts = {})
@@ -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.5.0
6
+ OpenAPI spec version: 2.6.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -20,6 +20,3105 @@ module Intrinio
20
20
  @api_client = api_client
21
21
  end
22
22
 
23
+ # Accumulation/Distribution Index
24
+ # Returns the Accumulation/Distribution Index values of Crypto Currency Prices for a Crypto Currency Pair
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
27
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
28
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
29
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
30
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
31
+ # @option opts [Date] :start_date Return technicals on or after this date.
32
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
33
+ # @option opts [Date] :end_date Return technicals on or before this date.
34
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
35
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
36
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
37
+ # @return [ApiResponseCryptoAccumulationDistributionIndex]
38
+ def get_crypto_price_technicals_adi(opts = {})
39
+ data, _status_code, _headers = get_crypto_price_technicals_adi_with_http_info(opts)
40
+ return data
41
+ end
42
+
43
+ # Accumulation/Distribution Index
44
+ # Returns the Accumulation/Distribution Index values of Crypto Currency Prices for a Crypto Currency Pair
45
+ # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
47
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
48
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
49
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
50
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
51
+ # @option opts [Date] :start_date Return technicals on or after this date.
52
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
53
+ # @option opts [Date] :end_date Return technicals on or before this date.
54
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
55
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
56
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
57
+ # @return [Array<(ApiResponseCryptoAccumulationDistributionIndex, Fixnum, Hash)>] ApiResponseCryptoAccumulationDistributionIndex data, response status code and response headers
58
+ def get_crypto_price_technicals_adi_with_http_info(opts = {})
59
+ if @api_client.config.debugging
60
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_adi ..."
61
+ end
62
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
63
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
64
+ end
65
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
66
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
67
+ end
68
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
69
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_adi, must be smaller than or equal to 10000.'
70
+ end
71
+
72
+ # resource path
73
+ local_var_path = "/crypto/prices/technicals/adi"
74
+
75
+ # query parameters
76
+ query_params = {}
77
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
78
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
79
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
80
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
81
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
82
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
83
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
84
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
85
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
86
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
87
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
88
+
89
+ # header parameters
90
+ header_params = {}
91
+ # HTTP header 'Accept' (if needed)
92
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
93
+
94
+ # form parameters
95
+ form_params = {}
96
+
97
+ # http body (model)
98
+ post_body = nil
99
+ auth_names = ['ApiKeyAuth']
100
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
101
+ :header_params => header_params,
102
+ :query_params => query_params,
103
+ :form_params => form_params,
104
+ :body => post_body,
105
+ :auth_names => auth_names,
106
+ :return_type => 'ApiResponseCryptoAccumulationDistributionIndex')
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_adi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
109
+ end
110
+ return data, status_code, headers
111
+ end
112
+
113
+ # Average Daily Trading Volume
114
+ # Returns the Average Daily Trading Volume values of Crypto Currency Prices for a Crypto Currency Pair
115
+ # @param [Hash] opts the optional parameters
116
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
117
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
118
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
119
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Daily Trading Volume. (default to 22)
120
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
121
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
122
+ # @option opts [Date] :start_date Return technicals on or after this date.
123
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
124
+ # @option opts [Date] :end_date Return technicals on or before this date.
125
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
126
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
127
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
128
+ # @return [ApiResponseCryptoAverageDailyTradingVolume]
129
+ def get_crypto_price_technicals_adtv(opts = {})
130
+ data, _status_code, _headers = get_crypto_price_technicals_adtv_with_http_info(opts)
131
+ return data
132
+ end
133
+
134
+ # Average Daily Trading Volume
135
+ # Returns the Average Daily Trading Volume values of Crypto Currency Prices for a Crypto Currency Pair
136
+ # @param [Hash] opts the optional parameters
137
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
138
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
139
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
140
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Daily Trading Volume.
141
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
142
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
143
+ # @option opts [Date] :start_date Return technicals on or after this date.
144
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
145
+ # @option opts [Date] :end_date Return technicals on or before this date.
146
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
147
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
148
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
149
+ # @return [Array<(ApiResponseCryptoAverageDailyTradingVolume, Fixnum, Hash)>] ApiResponseCryptoAverageDailyTradingVolume data, response status code and response headers
150
+ def get_crypto_price_technicals_adtv_with_http_info(opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_adtv ..."
153
+ end
154
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
155
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_adtv, must be greater than or equal to 5.'
156
+ end
157
+
158
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
159
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
160
+ end
161
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
162
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
163
+ end
164
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
165
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_adtv, must be smaller than or equal to 10000.'
166
+ end
167
+
168
+ # resource path
169
+ local_var_path = "/crypto/prices/technicals/adtv"
170
+
171
+ # query parameters
172
+ query_params = {}
173
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
174
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
175
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
176
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
177
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
178
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
179
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
180
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
181
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
182
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
183
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
184
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
185
+
186
+ # header parameters
187
+ header_params = {}
188
+ # HTTP header 'Accept' (if needed)
189
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
190
+
191
+ # form parameters
192
+ form_params = {}
193
+
194
+ # http body (model)
195
+ post_body = nil
196
+ auth_names = ['ApiKeyAuth']
197
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
198
+ :header_params => header_params,
199
+ :query_params => query_params,
200
+ :form_params => form_params,
201
+ :body => post_body,
202
+ :auth_names => auth_names,
203
+ :return_type => 'ApiResponseCryptoAverageDailyTradingVolume')
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_adtv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
+ end
207
+ return data, status_code, headers
208
+ end
209
+
210
+ # Average Directional Index
211
+ # Returns the Average Directional Index values of Crypto Currency Prices for a Crypto Currency Pair
212
+ # @param [Hash] opts the optional parameters
213
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
214
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
215
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
216
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Directional Index. (default to 22)
217
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
218
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
219
+ # @option opts [Date] :start_date Return technicals on or after this date.
220
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
221
+ # @option opts [Date] :end_date Return technicals on or before this date.
222
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
223
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
224
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
225
+ # @return [ApiResponseCryptoAverageDirectionalIndex]
226
+ def get_crypto_price_technicals_adx(opts = {})
227
+ data, _status_code, _headers = get_crypto_price_technicals_adx_with_http_info(opts)
228
+ return data
229
+ end
230
+
231
+ # Average Directional Index
232
+ # Returns the Average Directional Index values of Crypto Currency Prices for a Crypto Currency Pair
233
+ # @param [Hash] opts the optional parameters
234
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
235
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
236
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
237
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Directional Index.
238
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
239
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
240
+ # @option opts [Date] :start_date Return technicals on or after this date.
241
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
242
+ # @option opts [Date] :end_date Return technicals on or before this date.
243
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
244
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
245
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
246
+ # @return [Array<(ApiResponseCryptoAverageDirectionalIndex, Fixnum, Hash)>] ApiResponseCryptoAverageDirectionalIndex data, response status code and response headers
247
+ def get_crypto_price_technicals_adx_with_http_info(opts = {})
248
+ if @api_client.config.debugging
249
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_adx ..."
250
+ end
251
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
252
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_adx, must be greater than or equal to 5.'
253
+ end
254
+
255
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
256
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
257
+ end
258
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
259
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
260
+ end
261
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
262
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_adx, must be smaller than or equal to 10000.'
263
+ end
264
+
265
+ # resource path
266
+ local_var_path = "/crypto/prices/technicals/adx"
267
+
268
+ # query parameters
269
+ query_params = {}
270
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
271
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
272
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
273
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
274
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
275
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
276
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
277
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
278
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
279
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
280
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
281
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
282
+
283
+ # header parameters
284
+ header_params = {}
285
+ # HTTP header 'Accept' (if needed)
286
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
287
+
288
+ # form parameters
289
+ form_params = {}
290
+
291
+ # http body (model)
292
+ post_body = nil
293
+ auth_names = ['ApiKeyAuth']
294
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
295
+ :header_params => header_params,
296
+ :query_params => query_params,
297
+ :form_params => form_params,
298
+ :body => post_body,
299
+ :auth_names => auth_names,
300
+ :return_type => 'ApiResponseCryptoAverageDirectionalIndex')
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_adx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
+ end
304
+ return data, status_code, headers
305
+ end
306
+
307
+ # Awesome Oscillator
308
+ # Returns the Awesome Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
309
+ # @param [Hash] opts the optional parameters
310
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
311
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
312
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
313
+ # @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)
314
+ # @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)
315
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
316
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
317
+ # @option opts [Date] :start_date Return technicals on or after this date.
318
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
319
+ # @option opts [Date] :end_date Return technicals on or before this date.
320
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
321
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
322
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
323
+ # @return [ApiResponseCryptoAwesomeOscillator]
324
+ def get_crypto_price_technicals_ao(opts = {})
325
+ data, _status_code, _headers = get_crypto_price_technicals_ao_with_http_info(opts)
326
+ return data
327
+ end
328
+
329
+ # Awesome Oscillator
330
+ # Returns the Awesome Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
331
+ # @param [Hash] opts the optional parameters
332
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
333
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
334
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
335
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate short period Simple Moving Average of the Awesome Oscillator.
336
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate long period Simple Moving Average of the Awesome Oscillator.
337
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
338
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
339
+ # @option opts [Date] :start_date Return technicals on or after this date.
340
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
341
+ # @option opts [Date] :end_date Return technicals on or before this date.
342
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
343
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
344
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
345
+ # @return [Array<(ApiResponseCryptoAwesomeOscillator, Fixnum, Hash)>] ApiResponseCryptoAwesomeOscillator data, response status code and response headers
346
+ def get_crypto_price_technicals_ao_with_http_info(opts = {})
347
+ if @api_client.config.debugging
348
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_ao ..."
349
+ end
350
+ if @api_client.config.client_side_validation && !opts[:'long_period'].nil? && opts[:'long_period'] < 5
351
+ fail ArgumentError, 'invalid value for "opts[:"long_period"]" when calling TechnicalApi.get_crypto_price_technicals_ao, must be greater than or equal to 5.'
352
+ end
353
+
354
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
355
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
356
+ end
357
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
358
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
359
+ end
360
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
361
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_ao, must be smaller than or equal to 10000.'
362
+ end
363
+
364
+ # resource path
365
+ local_var_path = "/crypto/prices/technicals/ao"
366
+
367
+ # query parameters
368
+ query_params = {}
369
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
370
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
371
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
372
+ query_params[:'short_period'] = opts[:'short_period'] if !opts[:'short_period'].nil?
373
+ query_params[:'long_period'] = opts[:'long_period'] if !opts[:'long_period'].nil?
374
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
375
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
376
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
377
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
378
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
379
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
380
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
381
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
382
+
383
+ # header parameters
384
+ header_params = {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
387
+
388
+ # form parameters
389
+ form_params = {}
390
+
391
+ # http body (model)
392
+ post_body = nil
393
+ auth_names = ['ApiKeyAuth']
394
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
395
+ :header_params => header_params,
396
+ :query_params => query_params,
397
+ :form_params => form_params,
398
+ :body => post_body,
399
+ :auth_names => auth_names,
400
+ :return_type => 'ApiResponseCryptoAwesomeOscillator')
401
+ if @api_client.config.debugging
402
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_ao\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
403
+ end
404
+ return data, status_code, headers
405
+ end
406
+
407
+ # Average True Range
408
+ # Returns the Average True Range values of Crypto Currency Prices for Crypto Currency Pair
409
+ # @param [Hash] opts the optional parameters
410
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
411
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
412
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
413
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average True Range. (default to 22)
414
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
415
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
416
+ # @option opts [Date] :start_date Return technicals on or after this date.
417
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
418
+ # @option opts [Date] :end_date Return technicals on or before this date.
419
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
420
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
421
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
422
+ # @return [ApiResponseCryptoAverageTrueRange]
423
+ def get_crypto_price_technicals_atr(opts = {})
424
+ data, _status_code, _headers = get_crypto_price_technicals_atr_with_http_info(opts)
425
+ return data
426
+ end
427
+
428
+ # Average True Range
429
+ # Returns the Average True Range values of Crypto Currency Prices for Crypto Currency Pair
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
432
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
433
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
434
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average True Range.
435
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
436
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
437
+ # @option opts [Date] :start_date Return technicals on or after this date.
438
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
439
+ # @option opts [Date] :end_date Return technicals on or before this date.
440
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
441
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
442
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
443
+ # @return [Array<(ApiResponseCryptoAverageTrueRange, Fixnum, Hash)>] ApiResponseCryptoAverageTrueRange data, response status code and response headers
444
+ def get_crypto_price_technicals_atr_with_http_info(opts = {})
445
+ if @api_client.config.debugging
446
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_atr ..."
447
+ end
448
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
449
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_atr, must be greater than or equal to 5.'
450
+ end
451
+
452
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
453
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
454
+ end
455
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
456
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
457
+ end
458
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
459
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_atr, must be smaller than or equal to 10000.'
460
+ end
461
+
462
+ # resource path
463
+ local_var_path = "/crypto/prices/technicals/atr"
464
+
465
+ # query parameters
466
+ query_params = {}
467
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
468
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
469
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
470
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
471
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
472
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
473
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
474
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
475
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
476
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
477
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
478
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
479
+
480
+ # header parameters
481
+ header_params = {}
482
+ # HTTP header 'Accept' (if needed)
483
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
484
+
485
+ # form parameters
486
+ form_params = {}
487
+
488
+ # http body (model)
489
+ post_body = nil
490
+ auth_names = ['ApiKeyAuth']
491
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
492
+ :header_params => header_params,
493
+ :query_params => query_params,
494
+ :form_params => form_params,
495
+ :body => post_body,
496
+ :auth_names => auth_names,
497
+ :return_type => 'ApiResponseCryptoAverageTrueRange')
498
+ if @api_client.config.debugging
499
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_atr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
500
+ end
501
+ return data, status_code, headers
502
+ end
503
+
504
+ # Bollinger Bands
505
+ # Returns the Bollinger Bands values of Crypto Currency Prices for a Crypto Currency Pair
506
+ # @param [Hash] opts the optional parameters
507
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
508
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
509
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
510
+ # @option opts [Integer] :period The number of observations, per period, to calculate Bollinger Bands. (default to 20)
511
+ # @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)
512
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Bollinger Bands. (default to close)
513
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
514
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
515
+ # @option opts [Date] :start_date Return technicals on or after this date.
516
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
517
+ # @option opts [Date] :end_date Return technicals on or before this date.
518
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
519
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
520
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
521
+ # @return [ApiResponseCryptoBollingerBands]
522
+ def get_crypto_price_technicals_bb(opts = {})
523
+ data, _status_code, _headers = get_crypto_price_technicals_bb_with_http_info(opts)
524
+ return data
525
+ end
526
+
527
+ # Bollinger Bands
528
+ # Returns the Bollinger Bands values of Crypto Currency Prices for a Crypto Currency Pair
529
+ # @param [Hash] opts the optional parameters
530
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
531
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
532
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
533
+ # @option opts [Integer] :period The number of observations, per period, to calculate Bollinger Bands.
534
+ # @option opts [Float] :standard_deviations The number of standard deviations to calculate the upper and lower bands of the Bollinger Bands.
535
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Bollinger Bands.
536
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
537
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
538
+ # @option opts [Date] :start_date Return technicals on or after this date.
539
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
540
+ # @option opts [Date] :end_date Return technicals on or before this date.
541
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
542
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
543
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
544
+ # @return [Array<(ApiResponseCryptoBollingerBands, Fixnum, Hash)>] ApiResponseCryptoBollingerBands data, response status code and response headers
545
+ def get_crypto_price_technicals_bb_with_http_info(opts = {})
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_bb ..."
548
+ end
549
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
550
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_bb, must be greater than or equal to 5.'
551
+ end
552
+
553
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
554
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
555
+ end
556
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
557
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
558
+ end
559
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
560
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
561
+ end
562
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
563
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_bb, must be smaller than or equal to 10000.'
564
+ end
565
+
566
+ # resource path
567
+ local_var_path = "/crypto/prices/technicals/bb"
568
+
569
+ # query parameters
570
+ query_params = {}
571
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
572
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
573
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
574
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
575
+ query_params[:'standard_deviations'] = opts[:'standard_deviations'] if !opts[:'standard_deviations'].nil?
576
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
577
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
578
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
579
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
580
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
581
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
582
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
583
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
584
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
585
+
586
+ # header parameters
587
+ header_params = {}
588
+ # HTTP header 'Accept' (if needed)
589
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
590
+
591
+ # form parameters
592
+ form_params = {}
593
+
594
+ # http body (model)
595
+ post_body = nil
596
+ auth_names = ['ApiKeyAuth']
597
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
598
+ :header_params => header_params,
599
+ :query_params => query_params,
600
+ :form_params => form_params,
601
+ :body => post_body,
602
+ :auth_names => auth_names,
603
+ :return_type => 'ApiResponseCryptoBollingerBands')
604
+ if @api_client.config.debugging
605
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_bb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+
610
+ # Commodity Channel Index
611
+ # Returns the Commodity Channel Index values of Crypto Currency Prices for Crypto Currency Pair
612
+ # @param [Hash] opts the optional parameters
613
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
614
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
615
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
616
+ # @option opts [Integer] :period The number of observations, per period, to calculate Commodity Channel Index. (default to 20)
617
+ # @option opts [Float] :constant The number of observations, per period, to calculate Commodity Channel Index. (default to 0.015)
618
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
619
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
620
+ # @option opts [Date] :start_date Return technicals on or after this date.
621
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
622
+ # @option opts [Date] :end_date Return technicals on or before this date.
623
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
624
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
625
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
626
+ # @return [ApiResponseCryptoCommodityChannelIndex]
627
+ def get_crypto_price_technicals_cci(opts = {})
628
+ data, _status_code, _headers = get_crypto_price_technicals_cci_with_http_info(opts)
629
+ return data
630
+ end
631
+
632
+ # Commodity Channel Index
633
+ # Returns the Commodity Channel Index values of Crypto Currency Prices for Crypto Currency Pair
634
+ # @param [Hash] opts the optional parameters
635
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
636
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
637
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
638
+ # @option opts [Integer] :period The number of observations, per period, to calculate Commodity Channel Index.
639
+ # @option opts [Float] :constant The number of observations, per period, to calculate Commodity Channel Index.
640
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
641
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
642
+ # @option opts [Date] :start_date Return technicals on or after this date.
643
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
644
+ # @option opts [Date] :end_date Return technicals on or before this date.
645
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
646
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
647
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
648
+ # @return [Array<(ApiResponseCryptoCommodityChannelIndex, Fixnum, Hash)>] ApiResponseCryptoCommodityChannelIndex data, response status code and response headers
649
+ def get_crypto_price_technicals_cci_with_http_info(opts = {})
650
+ if @api_client.config.debugging
651
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_cci ..."
652
+ end
653
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
654
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_cci, must be greater than or equal to 5.'
655
+ end
656
+
657
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
658
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
659
+ end
660
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
661
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
662
+ end
663
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
664
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_cci, must be smaller than or equal to 10000.'
665
+ end
666
+
667
+ # resource path
668
+ local_var_path = "/crypto/prices/technicals/cci"
669
+
670
+ # query parameters
671
+ query_params = {}
672
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
673
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
674
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
675
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
676
+ query_params[:'constant'] = opts[:'constant'] if !opts[:'constant'].nil?
677
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
678
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
679
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
680
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
681
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
682
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
683
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
684
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
685
+
686
+ # header parameters
687
+ header_params = {}
688
+ # HTTP header 'Accept' (if needed)
689
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
690
+
691
+ # form parameters
692
+ form_params = {}
693
+
694
+ # http body (model)
695
+ post_body = nil
696
+ auth_names = ['ApiKeyAuth']
697
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
698
+ :header_params => header_params,
699
+ :query_params => query_params,
700
+ :form_params => form_params,
701
+ :body => post_body,
702
+ :auth_names => auth_names,
703
+ :return_type => 'ApiResponseCryptoCommodityChannelIndex')
704
+ if @api_client.config.debugging
705
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_cci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
706
+ end
707
+ return data, status_code, headers
708
+ end
709
+
710
+ # Chaikin Money Flow
711
+ # Returns the Chaikin Money Flow values of Crypto Currency Prices for a Crypto Currency Pair
712
+ # @param [Hash] opts the optional parameters
713
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
714
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
715
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
716
+ # @option opts [Integer] :period The number of observations, per period, to calculate Chaikin Money Flow. (default to 20)
717
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
718
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
719
+ # @option opts [Date] :start_date Return technicals on or after this date.
720
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
721
+ # @option opts [Date] :end_date Return technicals on or before this date.
722
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
723
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
724
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
725
+ # @return [ApiResponseCryptoChaikinMoneyFlow]
726
+ def get_crypto_price_technicals_cmf(opts = {})
727
+ data, _status_code, _headers = get_crypto_price_technicals_cmf_with_http_info(opts)
728
+ return data
729
+ end
730
+
731
+ # Chaikin Money Flow
732
+ # Returns the Chaikin Money Flow values of Crypto Currency Prices for a Crypto Currency Pair
733
+ # @param [Hash] opts the optional parameters
734
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
735
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
736
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
737
+ # @option opts [Integer] :period The number of observations, per period, to calculate Chaikin Money Flow.
738
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
739
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
740
+ # @option opts [Date] :start_date Return technicals on or after this date.
741
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
742
+ # @option opts [Date] :end_date Return technicals on or before this date.
743
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
744
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
745
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
746
+ # @return [Array<(ApiResponseCryptoChaikinMoneyFlow, Fixnum, Hash)>] ApiResponseCryptoChaikinMoneyFlow data, response status code and response headers
747
+ def get_crypto_price_technicals_cmf_with_http_info(opts = {})
748
+ if @api_client.config.debugging
749
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_cmf ..."
750
+ end
751
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
752
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_cmf, must be greater than or equal to 5.'
753
+ end
754
+
755
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
756
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
757
+ end
758
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
759
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
760
+ end
761
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
762
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_cmf, must be smaller than or equal to 10000.'
763
+ end
764
+
765
+ # resource path
766
+ local_var_path = "/crypto/prices/technicals/cmf"
767
+
768
+ # query parameters
769
+ query_params = {}
770
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
771
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
772
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
773
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
774
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
775
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
776
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
777
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
778
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
779
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
780
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
781
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
782
+
783
+ # header parameters
784
+ header_params = {}
785
+ # HTTP header 'Accept' (if needed)
786
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
787
+
788
+ # form parameters
789
+ form_params = {}
790
+
791
+ # http body (model)
792
+ post_body = nil
793
+ auth_names = ['ApiKeyAuth']
794
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
795
+ :header_params => header_params,
796
+ :query_params => query_params,
797
+ :form_params => form_params,
798
+ :body => post_body,
799
+ :auth_names => auth_names,
800
+ :return_type => 'ApiResponseCryptoChaikinMoneyFlow')
801
+ if @api_client.config.debugging
802
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_cmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
803
+ end
804
+ return data, status_code, headers
805
+ end
806
+
807
+ # Donchian Channel
808
+ # Returns the Donchian Channel values of Crypto Currency Prices for a Crypto Currency Pair
809
+ # @param [Hash] opts the optional parameters
810
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
811
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
812
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
813
+ # @option opts [Integer] :period The number of observations, per period, to calculate Donchian Channel. (default to 20)
814
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Donchian Channel. (default to close)
815
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
816
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
817
+ # @option opts [Date] :start_date Return technicals on or after this date.
818
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
819
+ # @option opts [Date] :end_date Return technicals on or before this date.
820
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
821
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
822
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
823
+ # @return [ApiResponseCryptoDonchianChannel]
824
+ def get_crypto_price_technicals_dc(opts = {})
825
+ data, _status_code, _headers = get_crypto_price_technicals_dc_with_http_info(opts)
826
+ return data
827
+ end
828
+
829
+ # Donchian Channel
830
+ # Returns the Donchian Channel values of Crypto Currency Prices for a Crypto Currency Pair
831
+ # @param [Hash] opts the optional parameters
832
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
833
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
834
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
835
+ # @option opts [Integer] :period The number of observations, per period, to calculate Donchian Channel.
836
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Donchian Channel.
837
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
838
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
839
+ # @option opts [Date] :start_date Return technicals on or after this date.
840
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
841
+ # @option opts [Date] :end_date Return technicals on or before this date.
842
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
843
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
844
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
845
+ # @return [Array<(ApiResponseCryptoDonchianChannel, Fixnum, Hash)>] ApiResponseCryptoDonchianChannel data, response status code and response headers
846
+ def get_crypto_price_technicals_dc_with_http_info(opts = {})
847
+ if @api_client.config.debugging
848
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_dc ..."
849
+ end
850
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
851
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_dc, must be greater than or equal to 5.'
852
+ end
853
+
854
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
855
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
856
+ end
857
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
858
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
859
+ end
860
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
861
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
862
+ end
863
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
864
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_dc, must be smaller than or equal to 10000.'
865
+ end
866
+
867
+ # resource path
868
+ local_var_path = "/crypto/prices/technicals/dc"
869
+
870
+ # query parameters
871
+ query_params = {}
872
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
873
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
874
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
875
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
876
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
877
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
878
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
879
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
880
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
881
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
882
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
883
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
884
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
885
+
886
+ # header parameters
887
+ header_params = {}
888
+ # HTTP header 'Accept' (if needed)
889
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
890
+
891
+ # form parameters
892
+ form_params = {}
893
+
894
+ # http body (model)
895
+ post_body = nil
896
+ auth_names = ['ApiKeyAuth']
897
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
898
+ :header_params => header_params,
899
+ :query_params => query_params,
900
+ :form_params => form_params,
901
+ :body => post_body,
902
+ :auth_names => auth_names,
903
+ :return_type => 'ApiResponseCryptoDonchianChannel')
904
+ if @api_client.config.debugging
905
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_dc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
906
+ end
907
+ return data, status_code, headers
908
+ end
909
+
910
+ # Detrended Price Oscillator
911
+ # Returns the Detrended Price Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
912
+ # @param [Hash] opts the optional parameters
913
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
914
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
915
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
916
+ # @option opts [Integer] :period The number of observations, per period, to calculate Detrended Price Oscillator. (default to 20)
917
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Detrended Price Oscillator. (default to close)
918
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
919
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
920
+ # @option opts [Date] :start_date Return technicals on or after this date.
921
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
922
+ # @option opts [Date] :end_date Return technicals on or before this date.
923
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
924
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
925
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
926
+ # @return [ApiResponseCryptoDetrendedPriceOscillator]
927
+ def get_crypto_price_technicals_dpo(opts = {})
928
+ data, _status_code, _headers = get_crypto_price_technicals_dpo_with_http_info(opts)
929
+ return data
930
+ end
931
+
932
+ # Detrended Price Oscillator
933
+ # Returns the Detrended Price Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
934
+ # @param [Hash] opts the optional parameters
935
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
936
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
937
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
938
+ # @option opts [Integer] :period The number of observations, per period, to calculate Detrended Price Oscillator.
939
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Detrended Price Oscillator.
940
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
941
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
942
+ # @option opts [Date] :start_date Return technicals on or after this date.
943
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
944
+ # @option opts [Date] :end_date Return technicals on or before this date.
945
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
946
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
947
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
948
+ # @return [Array<(ApiResponseCryptoDetrendedPriceOscillator, Fixnum, Hash)>] ApiResponseCryptoDetrendedPriceOscillator data, response status code and response headers
949
+ def get_crypto_price_technicals_dpo_with_http_info(opts = {})
950
+ if @api_client.config.debugging
951
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_dpo ..."
952
+ end
953
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
954
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
955
+ end
956
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
957
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
958
+ end
959
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
960
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
961
+ end
962
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
963
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_dpo, must be smaller than or equal to 10000.'
964
+ end
965
+
966
+ # resource path
967
+ local_var_path = "/crypto/prices/technicals/dpo"
968
+
969
+ # query parameters
970
+ query_params = {}
971
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
972
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
973
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
974
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
975
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
976
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
977
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
978
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
979
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
980
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
981
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
982
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
983
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
984
+
985
+ # header parameters
986
+ header_params = {}
987
+ # HTTP header 'Accept' (if needed)
988
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
989
+
990
+ # form parameters
991
+ form_params = {}
992
+
993
+ # http body (model)
994
+ post_body = nil
995
+ auth_names = ['ApiKeyAuth']
996
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
997
+ :header_params => header_params,
998
+ :query_params => query_params,
999
+ :form_params => form_params,
1000
+ :body => post_body,
1001
+ :auth_names => auth_names,
1002
+ :return_type => 'ApiResponseCryptoDetrendedPriceOscillator')
1003
+ if @api_client.config.debugging
1004
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_dpo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1005
+ end
1006
+ return data, status_code, headers
1007
+ end
1008
+
1009
+ # Ease of Movement
1010
+ # Returns the Ease of Movement values of Crypto Currency Prices for a Crypto Currency Pair
1011
+ # @param [Hash] opts the optional parameters
1012
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1013
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1014
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1015
+ # @option opts [Integer] :period The number of observations, per period, to calculate Ease of Movement. (default to 20)
1016
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1017
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1018
+ # @option opts [Date] :start_date Return technicals on or after this date.
1019
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1020
+ # @option opts [Date] :end_date Return technicals on or before this date.
1021
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1022
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1023
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1024
+ # @return [ApiResponseCryptoEaseOfMovement]
1025
+ def get_crypto_price_technicals_eom(opts = {})
1026
+ data, _status_code, _headers = get_crypto_price_technicals_eom_with_http_info(opts)
1027
+ return data
1028
+ end
1029
+
1030
+ # Ease of Movement
1031
+ # Returns the Ease of Movement values of Crypto Currency Prices for a Crypto Currency Pair
1032
+ # @param [Hash] opts the optional parameters
1033
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1034
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1035
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1036
+ # @option opts [Integer] :period The number of observations, per period, to calculate Ease of Movement.
1037
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1038
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1039
+ # @option opts [Date] :start_date Return technicals on or after this date.
1040
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1041
+ # @option opts [Date] :end_date Return technicals on or before this date.
1042
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1043
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1044
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1045
+ # @return [Array<(ApiResponseCryptoEaseOfMovement, Fixnum, Hash)>] ApiResponseCryptoEaseOfMovement data, response status code and response headers
1046
+ def get_crypto_price_technicals_eom_with_http_info(opts = {})
1047
+ if @api_client.config.debugging
1048
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_eom ..."
1049
+ end
1050
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
1051
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_eom, must be greater than or equal to 4.'
1052
+ end
1053
+
1054
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1055
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1056
+ end
1057
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1058
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1059
+ end
1060
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1061
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_eom, must be smaller than or equal to 10000.'
1062
+ end
1063
+
1064
+ # resource path
1065
+ local_var_path = "/crypto/prices/technicals/eom"
1066
+
1067
+ # query parameters
1068
+ query_params = {}
1069
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1070
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1071
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1072
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1073
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1074
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1075
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1076
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1077
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1078
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1079
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1080
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1081
+
1082
+ # header parameters
1083
+ header_params = {}
1084
+ # HTTP header 'Accept' (if needed)
1085
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1086
+
1087
+ # form parameters
1088
+ form_params = {}
1089
+
1090
+ # http body (model)
1091
+ post_body = nil
1092
+ auth_names = ['ApiKeyAuth']
1093
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1094
+ :header_params => header_params,
1095
+ :query_params => query_params,
1096
+ :form_params => form_params,
1097
+ :body => post_body,
1098
+ :auth_names => auth_names,
1099
+ :return_type => 'ApiResponseCryptoEaseOfMovement')
1100
+ if @api_client.config.debugging
1101
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_eom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1102
+ end
1103
+ return data, status_code, headers
1104
+ end
1105
+
1106
+ # Force Index
1107
+ # Returns the Force Index values of Crypto Currency Prices for a Crypto Currency Pair
1108
+ # @param [Hash] opts the optional parameters
1109
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1110
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1111
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1112
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1113
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1114
+ # @option opts [Date] :start_date Return technicals on or after this date.
1115
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1116
+ # @option opts [Date] :end_date Return technicals on or before this date.
1117
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1118
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1119
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1120
+ # @return [ApiResponseCryptoForceIndex]
1121
+ def get_crypto_price_technicals_fi(opts = {})
1122
+ data, _status_code, _headers = get_crypto_price_technicals_fi_with_http_info(opts)
1123
+ return data
1124
+ end
1125
+
1126
+ # Force Index
1127
+ # Returns the Force Index values of Crypto Currency Prices for a Crypto Currency Pair
1128
+ # @param [Hash] opts the optional parameters
1129
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1130
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1131
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1132
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1133
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1134
+ # @option opts [Date] :start_date Return technicals on or after this date.
1135
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1136
+ # @option opts [Date] :end_date Return technicals on or before this date.
1137
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1138
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1139
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1140
+ # @return [Array<(ApiResponseCryptoForceIndex, Fixnum, Hash)>] ApiResponseCryptoForceIndex data, response status code and response headers
1141
+ def get_crypto_price_technicals_fi_with_http_info(opts = {})
1142
+ if @api_client.config.debugging
1143
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_fi ..."
1144
+ end
1145
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1146
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1147
+ end
1148
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1149
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1150
+ end
1151
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1152
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_fi, must be smaller than or equal to 10000.'
1153
+ end
1154
+
1155
+ # resource path
1156
+ local_var_path = "/crypto/prices/technicals/fi"
1157
+
1158
+ # query parameters
1159
+ query_params = {}
1160
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1161
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1162
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1163
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1164
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1165
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1166
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1167
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1168
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1169
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1170
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1171
+
1172
+ # header parameters
1173
+ header_params = {}
1174
+ # HTTP header 'Accept' (if needed)
1175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1176
+
1177
+ # form parameters
1178
+ form_params = {}
1179
+
1180
+ # http body (model)
1181
+ post_body = nil
1182
+ auth_names = ['ApiKeyAuth']
1183
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1184
+ :header_params => header_params,
1185
+ :query_params => query_params,
1186
+ :form_params => form_params,
1187
+ :body => post_body,
1188
+ :auth_names => auth_names,
1189
+ :return_type => 'ApiResponseCryptoForceIndex')
1190
+ if @api_client.config.debugging
1191
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_fi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1192
+ end
1193
+ return data, status_code, headers
1194
+ end
1195
+
1196
+ # Ichimoku Kinko Hyo
1197
+ # Returns the Ichimoku Kinko Hyo values of Crypto Currency Prices for a Crypto Currency Pair
1198
+ # @param [Hash] opts the optional parameters
1199
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1200
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1201
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1202
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo. (default to 9)
1203
+ # @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)
1204
+ # @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)
1205
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1206
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1207
+ # @option opts [Date] :start_date Return technicals on or after this date.
1208
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1209
+ # @option opts [Date] :end_date Return technicals on or before this date.
1210
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1211
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1212
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1213
+ # @return [ApiResponseCryptoIchimokuKinkoHyo]
1214
+ def get_crypto_price_technicals_ichimoku(opts = {})
1215
+ data, _status_code, _headers = get_crypto_price_technicals_ichimoku_with_http_info(opts)
1216
+ return data
1217
+ end
1218
+
1219
+ # Ichimoku Kinko Hyo
1220
+ # Returns the Ichimoku Kinko Hyo values of Crypto Currency Prices for a Crypto Currency Pair
1221
+ # @param [Hash] opts the optional parameters
1222
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1223
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1224
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1225
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo.
1226
+ # @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.
1227
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate Senkou Span B (Leading Span B) of Ichimoku Kinko Hyo.
1228
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1229
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1230
+ # @option opts [Date] :start_date Return technicals on or after this date.
1231
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1232
+ # @option opts [Date] :end_date Return technicals on or before this date.
1233
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1234
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1235
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1236
+ # @return [Array<(ApiResponseCryptoIchimokuKinkoHyo, Fixnum, Hash)>] ApiResponseCryptoIchimokuKinkoHyo data, response status code and response headers
1237
+ def get_crypto_price_technicals_ichimoku_with_http_info(opts = {})
1238
+ if @api_client.config.debugging
1239
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_ichimoku ..."
1240
+ end
1241
+ if @api_client.config.client_side_validation && !opts[:'medium_period'].nil? && opts[:'medium_period'] < 2
1242
+ fail ArgumentError, 'invalid value for "opts[:"medium_period"]" when calling TechnicalApi.get_crypto_price_technicals_ichimoku, must be greater than or equal to 2.'
1243
+ end
1244
+
1245
+ if @api_client.config.client_side_validation && !opts[:'high_period'].nil? && opts[:'high_period'] < 4
1246
+ fail ArgumentError, 'invalid value for "opts[:"high_period"]" when calling TechnicalApi.get_crypto_price_technicals_ichimoku, must be greater than or equal to 4.'
1247
+ end
1248
+
1249
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1250
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1251
+ end
1252
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1253
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1254
+ end
1255
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1256
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_ichimoku, must be smaller than or equal to 10000.'
1257
+ end
1258
+
1259
+ # resource path
1260
+ local_var_path = "/crypto/prices/technicals/ichimoku"
1261
+
1262
+ # query parameters
1263
+ query_params = {}
1264
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1265
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1266
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1267
+ query_params[:'low_period'] = opts[:'low_period'] if !opts[:'low_period'].nil?
1268
+ query_params[:'medium_period'] = opts[:'medium_period'] if !opts[:'medium_period'].nil?
1269
+ query_params[:'high_period'] = opts[:'high_period'] if !opts[:'high_period'].nil?
1270
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1271
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1272
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1273
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1274
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1275
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1276
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1277
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1278
+
1279
+ # header parameters
1280
+ header_params = {}
1281
+ # HTTP header 'Accept' (if needed)
1282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1283
+
1284
+ # form parameters
1285
+ form_params = {}
1286
+
1287
+ # http body (model)
1288
+ post_body = nil
1289
+ auth_names = ['ApiKeyAuth']
1290
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1291
+ :header_params => header_params,
1292
+ :query_params => query_params,
1293
+ :form_params => form_params,
1294
+ :body => post_body,
1295
+ :auth_names => auth_names,
1296
+ :return_type => 'ApiResponseCryptoIchimokuKinkoHyo')
1297
+ if @api_client.config.debugging
1298
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_ichimoku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1299
+ end
1300
+ return data, status_code, headers
1301
+ end
1302
+
1303
+ # Keltner Channel
1304
+ # Returns the Keltner Channel values of Crypto Currency Prices for a Crypto Currency Pair
1305
+ # @param [Hash] opts the optional parameters
1306
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1307
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1308
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1309
+ # @option opts [Integer] :period The number of observations, per period, to calculate Kelter Channel. (default to 10)
1310
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1311
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1312
+ # @option opts [Date] :start_date Return technicals on or after this date.
1313
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1314
+ # @option opts [Date] :end_date Return technicals on or before this date.
1315
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1316
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1317
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1318
+ # @return [ApiResponseCryptoKeltnerChannel]
1319
+ def get_crypto_price_technicals_kc(opts = {})
1320
+ data, _status_code, _headers = get_crypto_price_technicals_kc_with_http_info(opts)
1321
+ return data
1322
+ end
1323
+
1324
+ # Keltner Channel
1325
+ # Returns the Keltner Channel values of Crypto Currency Prices for a Crypto Currency Pair
1326
+ # @param [Hash] opts the optional parameters
1327
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1328
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1329
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1330
+ # @option opts [Integer] :period The number of observations, per period, to calculate Kelter Channel.
1331
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1332
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1333
+ # @option opts [Date] :start_date Return technicals on or after this date.
1334
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1335
+ # @option opts [Date] :end_date Return technicals on or before this date.
1336
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1337
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1338
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1339
+ # @return [Array<(ApiResponseCryptoKeltnerChannel, Fixnum, Hash)>] ApiResponseCryptoKeltnerChannel data, response status code and response headers
1340
+ def get_crypto_price_technicals_kc_with_http_info(opts = {})
1341
+ if @api_client.config.debugging
1342
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_kc ..."
1343
+ end
1344
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1345
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_kc, must be greater than or equal to 5.'
1346
+ end
1347
+
1348
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1349
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1350
+ end
1351
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1352
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1353
+ end
1354
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1355
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_kc, must be smaller than or equal to 10000.'
1356
+ end
1357
+
1358
+ # resource path
1359
+ local_var_path = "/crypto/prices/technicals/kc"
1360
+
1361
+ # query parameters
1362
+ query_params = {}
1363
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1364
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1365
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1366
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1367
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1368
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1369
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1370
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1371
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1372
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1373
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1374
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1375
+
1376
+ # header parameters
1377
+ header_params = {}
1378
+ # HTTP header 'Accept' (if needed)
1379
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1380
+
1381
+ # form parameters
1382
+ form_params = {}
1383
+
1384
+ # http body (model)
1385
+ post_body = nil
1386
+ auth_names = ['ApiKeyAuth']
1387
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1388
+ :header_params => header_params,
1389
+ :query_params => query_params,
1390
+ :form_params => form_params,
1391
+ :body => post_body,
1392
+ :auth_names => auth_names,
1393
+ :return_type => 'ApiResponseCryptoKeltnerChannel')
1394
+ if @api_client.config.debugging
1395
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_kc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1396
+ end
1397
+ return data, status_code, headers
1398
+ end
1399
+
1400
+ # Know Sure Thing
1401
+ # Returns the Know Sure Thing values of Crypto Currency Prices for a Crypto Currency Pair
1402
+ # @param [Hash] opts the optional parameters
1403
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1404
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1405
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1406
+ # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1. (default to 10)
1407
+ # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2. (default to 15)
1408
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA3. (default to 20)
1409
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA4. (default to 30)
1410
+ # @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)
1411
+ # @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)
1412
+ # @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)
1413
+ # @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)
1414
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Know Sure Thing. (default to close)
1415
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1416
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1417
+ # @option opts [Date] :start_date Return technicals on or after this date.
1418
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1419
+ # @option opts [Date] :end_date Return technicals on or before this date.
1420
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1421
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1422
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1423
+ # @return [ApiResponseCryptoKnowSureThing]
1424
+ def get_crypto_price_technicals_kst(opts = {})
1425
+ data, _status_code, _headers = get_crypto_price_technicals_kst_with_http_info(opts)
1426
+ return data
1427
+ end
1428
+
1429
+ # Know Sure Thing
1430
+ # Returns the Know Sure Thing values of Crypto Currency Prices for a Crypto Currency Pair
1431
+ # @param [Hash] opts the optional parameters
1432
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1433
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1434
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1435
+ # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1.
1436
+ # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2.
1437
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA3.
1438
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA4.
1439
+ # @option opts [Integer] :sma1 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1.
1440
+ # @option opts [Integer] :sma2 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2.
1441
+ # @option opts [Integer] :sma3 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3.
1442
+ # @option opts [Integer] :sma4 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4.
1443
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Know Sure Thing.
1444
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1445
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1446
+ # @option opts [Date] :start_date Return technicals on or after this date.
1447
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1448
+ # @option opts [Date] :end_date Return technicals on or before this date.
1449
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1450
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1451
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1452
+ # @return [Array<(ApiResponseCryptoKnowSureThing, Fixnum, Hash)>] ApiResponseCryptoKnowSureThing data, response status code and response headers
1453
+ def get_crypto_price_technicals_kst_with_http_info(opts = {})
1454
+ if @api_client.config.debugging
1455
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_kst ..."
1456
+ end
1457
+ if @api_client.config.client_side_validation && !opts[:'roc4'].nil? && opts[:'roc4'] < 3
1458
+ fail ArgumentError, 'invalid value for "opts[:"roc4"]" when calling TechnicalApi.get_crypto_price_technicals_kst, must be greater than or equal to 3.'
1459
+ end
1460
+
1461
+ if @api_client.config.client_side_validation && !opts[:'sma4'].nil? && opts[:'sma4'] < 3
1462
+ fail ArgumentError, 'invalid value for "opts[:"sma4"]" when calling TechnicalApi.get_crypto_price_technicals_kst, must be greater than or equal to 3.'
1463
+ end
1464
+
1465
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1466
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1467
+ end
1468
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1469
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1470
+ end
1471
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1472
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1473
+ end
1474
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1475
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_kst, must be smaller than or equal to 10000.'
1476
+ end
1477
+
1478
+ # resource path
1479
+ local_var_path = "/crypto/prices/technicals/kst"
1480
+
1481
+ # query parameters
1482
+ query_params = {}
1483
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1484
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1485
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1486
+ query_params[:'roc1'] = opts[:'roc1'] if !opts[:'roc1'].nil?
1487
+ query_params[:'roc2'] = opts[:'roc2'] if !opts[:'roc2'].nil?
1488
+ query_params[:'roc3'] = opts[:'roc3'] if !opts[:'roc3'].nil?
1489
+ query_params[:'roc4'] = opts[:'roc4'] if !opts[:'roc4'].nil?
1490
+ query_params[:'sma1'] = opts[:'sma1'] if !opts[:'sma1'].nil?
1491
+ query_params[:'sma2'] = opts[:'sma2'] if !opts[:'sma2'].nil?
1492
+ query_params[:'sma3'] = opts[:'sma3'] if !opts[:'sma3'].nil?
1493
+ query_params[:'sma4'] = opts[:'sma4'] if !opts[:'sma4'].nil?
1494
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1495
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1496
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1497
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1498
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1499
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1500
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1501
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1502
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1503
+
1504
+ # header parameters
1505
+ header_params = {}
1506
+ # HTTP header 'Accept' (if needed)
1507
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1508
+
1509
+ # form parameters
1510
+ form_params = {}
1511
+
1512
+ # http body (model)
1513
+ post_body = nil
1514
+ auth_names = ['ApiKeyAuth']
1515
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1516
+ :header_params => header_params,
1517
+ :query_params => query_params,
1518
+ :form_params => form_params,
1519
+ :body => post_body,
1520
+ :auth_names => auth_names,
1521
+ :return_type => 'ApiResponseCryptoKnowSureThing')
1522
+ if @api_client.config.debugging
1523
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_kst\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1524
+ end
1525
+ return data, status_code, headers
1526
+ end
1527
+
1528
+ # Moving Average Convergence Divergence
1529
+ # Returns the Moving Average Convergence Divergence values of Crypto Currency Prices for a Crypto Currency Pair
1530
+ # @param [Hash] opts the optional parameters
1531
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1532
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1533
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1534
+ # @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)
1535
+ # @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)
1536
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence. (default to 9)
1537
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Moving Average Convergence Divergence. (default to close)
1538
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1539
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1540
+ # @option opts [Date] :start_date Return technicals on or after this date.
1541
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1542
+ # @option opts [Date] :end_date Return technicals on or before this date.
1543
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1544
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1545
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1546
+ # @return [ApiResponseCryptoMovingAverageConvergenceDivergence]
1547
+ def get_crypto_price_technicals_macd(opts = {})
1548
+ data, _status_code, _headers = get_crypto_price_technicals_macd_with_http_info(opts)
1549
+ return data
1550
+ end
1551
+
1552
+ # Moving Average Convergence Divergence
1553
+ # Returns the Moving Average Convergence Divergence values of Crypto Currency Prices for a Crypto Currency Pair
1554
+ # @param [Hash] opts the optional parameters
1555
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1556
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1557
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1558
+ # @option opts [Integer] :fast_period The number of observations, per period, to calculate the fast moving Exponential Moving Average for Moving Average Convergence Divergence.
1559
+ # @option opts [Integer] :slow_period The number of observations, per period, to calculate the slow moving Exponential Moving Average for Moving Average Convergence Divergence.
1560
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence.
1561
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Moving Average Convergence Divergence.
1562
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1563
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1564
+ # @option opts [Date] :start_date Return technicals on or after this date.
1565
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1566
+ # @option opts [Date] :end_date Return technicals on or before this date.
1567
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1568
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1569
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1570
+ # @return [Array<(ApiResponseCryptoMovingAverageConvergenceDivergence, Fixnum, Hash)>] ApiResponseCryptoMovingAverageConvergenceDivergence data, response status code and response headers
1571
+ def get_crypto_price_technicals_macd_with_http_info(opts = {})
1572
+ if @api_client.config.debugging
1573
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_macd ..."
1574
+ end
1575
+ if @api_client.config.client_side_validation && !opts[:'slow_period'].nil? && opts[:'slow_period'] < 3
1576
+ fail ArgumentError, 'invalid value for "opts[:"slow_period"]" when calling TechnicalApi.get_crypto_price_technicals_macd, must be greater than or equal to 3.'
1577
+ end
1578
+
1579
+ if @api_client.config.client_side_validation && !opts[:'signal_period'].nil? && opts[:'signal_period'] < 3
1580
+ fail ArgumentError, 'invalid value for "opts[:"signal_period"]" when calling TechnicalApi.get_crypto_price_technicals_macd, must be greater than or equal to 3.'
1581
+ end
1582
+
1583
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1584
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1585
+ end
1586
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1587
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1588
+ end
1589
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1590
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1591
+ end
1592
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1593
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_macd, must be smaller than or equal to 10000.'
1594
+ end
1595
+
1596
+ # resource path
1597
+ local_var_path = "/crypto/prices/technicals/macd"
1598
+
1599
+ # query parameters
1600
+ query_params = {}
1601
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1602
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1603
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1604
+ query_params[:'fast_period'] = opts[:'fast_period'] if !opts[:'fast_period'].nil?
1605
+ query_params[:'slow_period'] = opts[:'slow_period'] if !opts[:'slow_period'].nil?
1606
+ query_params[:'signal_period'] = opts[:'signal_period'] if !opts[:'signal_period'].nil?
1607
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1608
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1609
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1610
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1611
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1612
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1613
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1614
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1615
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1616
+
1617
+ # header parameters
1618
+ header_params = {}
1619
+ # HTTP header 'Accept' (if needed)
1620
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1621
+
1622
+ # form parameters
1623
+ form_params = {}
1624
+
1625
+ # http body (model)
1626
+ post_body = nil
1627
+ auth_names = ['ApiKeyAuth']
1628
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1629
+ :header_params => header_params,
1630
+ :query_params => query_params,
1631
+ :form_params => form_params,
1632
+ :body => post_body,
1633
+ :auth_names => auth_names,
1634
+ :return_type => 'ApiResponseCryptoMovingAverageConvergenceDivergence')
1635
+ if @api_client.config.debugging
1636
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_macd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1637
+ end
1638
+ return data, status_code, headers
1639
+ end
1640
+
1641
+ # Money Flow Index
1642
+ # Returns the Money Flow Index values of Crypto Currency Prices for a Crypto Currency Pair
1643
+ # @param [Hash] opts the optional parameters
1644
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1645
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1646
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1647
+ # @option opts [Integer] :period The number of observations, per period, to calculate Money Flow Index. (default to 14)
1648
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1649
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1650
+ # @option opts [Date] :start_date Return technicals on or after this date.
1651
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1652
+ # @option opts [Date] :end_date Return technicals on or before this date.
1653
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1654
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1655
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1656
+ # @return [ApiResponseCryptoMoneyFlowIndex]
1657
+ def get_crypto_price_technicals_mfi(opts = {})
1658
+ data, _status_code, _headers = get_crypto_price_technicals_mfi_with_http_info(opts)
1659
+ return data
1660
+ end
1661
+
1662
+ # Money Flow Index
1663
+ # Returns the Money Flow Index values of Crypto Currency Prices for a Crypto Currency Pair
1664
+ # @param [Hash] opts the optional parameters
1665
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1666
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1667
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1668
+ # @option opts [Integer] :period The number of observations, per period, to calculate Money Flow Index.
1669
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1670
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1671
+ # @option opts [Date] :start_date Return technicals on or after this date.
1672
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1673
+ # @option opts [Date] :end_date Return technicals on or before this date.
1674
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1675
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1676
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1677
+ # @return [Array<(ApiResponseCryptoMoneyFlowIndex, Fixnum, Hash)>] ApiResponseCryptoMoneyFlowIndex data, response status code and response headers
1678
+ def get_crypto_price_technicals_mfi_with_http_info(opts = {})
1679
+ if @api_client.config.debugging
1680
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_mfi ..."
1681
+ end
1682
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
1683
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_mfi, must be greater than or equal to 4.'
1684
+ end
1685
+
1686
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1687
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1688
+ end
1689
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1690
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1691
+ end
1692
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1693
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_mfi, must be smaller than or equal to 10000.'
1694
+ end
1695
+
1696
+ # resource path
1697
+ local_var_path = "/crypto/prices/technicals/mfi"
1698
+
1699
+ # query parameters
1700
+ query_params = {}
1701
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1702
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1703
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1704
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1705
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1706
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1707
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1708
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1709
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1710
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1711
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1712
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1713
+
1714
+ # header parameters
1715
+ header_params = {}
1716
+ # HTTP header 'Accept' (if needed)
1717
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1718
+
1719
+ # form parameters
1720
+ form_params = {}
1721
+
1722
+ # http body (model)
1723
+ post_body = nil
1724
+ auth_names = ['ApiKeyAuth']
1725
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1726
+ :header_params => header_params,
1727
+ :query_params => query_params,
1728
+ :form_params => form_params,
1729
+ :body => post_body,
1730
+ :auth_names => auth_names,
1731
+ :return_type => 'ApiResponseCryptoMoneyFlowIndex')
1732
+ if @api_client.config.debugging
1733
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_mfi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1734
+ end
1735
+ return data, status_code, headers
1736
+ end
1737
+
1738
+ # Mass Index
1739
+ # Returns the Mass Index values of Crypto Currency Prices for a Crypto Currency Pair
1740
+ # @param [Hash] opts the optional parameters
1741
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1742
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1743
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1744
+ # @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)
1745
+ # @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)
1746
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1747
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1748
+ # @option opts [Date] :start_date Return technicals on or after this date.
1749
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1750
+ # @option opts [Date] :end_date Return technicals on or before this date.
1751
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1752
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1753
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1754
+ # @return [ApiResponseCryptoMassIndex]
1755
+ def get_crypto_price_technicals_mi(opts = {})
1756
+ data, _status_code, _headers = get_crypto_price_technicals_mi_with_http_info(opts)
1757
+ return data
1758
+ end
1759
+
1760
+ # Mass Index
1761
+ # Returns the Mass Index values of Crypto Currency Prices for a Crypto Currency Pair
1762
+ # @param [Hash] opts the optional parameters
1763
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1764
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1765
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1766
+ # @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.
1767
+ # @option opts [Integer] :sum_period The number of observations, per period, to calculate the sum of the Exponetinal Moving Average Ratios for Mass Index.
1768
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1769
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1770
+ # @option opts [Date] :start_date Return technicals on or after this date.
1771
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1772
+ # @option opts [Date] :end_date Return technicals on or before this date.
1773
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1774
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1775
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1776
+ # @return [Array<(ApiResponseCryptoMassIndex, Fixnum, Hash)>] ApiResponseCryptoMassIndex data, response status code and response headers
1777
+ def get_crypto_price_technicals_mi_with_http_info(opts = {})
1778
+ if @api_client.config.debugging
1779
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_mi ..."
1780
+ end
1781
+ if @api_client.config.client_side_validation && !opts[:'ema_period'].nil? && opts[:'ema_period'] < 2
1782
+ fail ArgumentError, 'invalid value for "opts[:"ema_period"]" when calling TechnicalApi.get_crypto_price_technicals_mi, must be greater than or equal to 2.'
1783
+ end
1784
+
1785
+ if @api_client.config.client_side_validation && !opts[:'sum_period'].nil? && opts[:'sum_period'] < 3
1786
+ fail ArgumentError, 'invalid value for "opts[:"sum_period"]" when calling TechnicalApi.get_crypto_price_technicals_mi, must be greater than or equal to 3.'
1787
+ end
1788
+
1789
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1790
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1791
+ end
1792
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1793
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1794
+ end
1795
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1796
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_mi, must be smaller than or equal to 10000.'
1797
+ end
1798
+
1799
+ # resource path
1800
+ local_var_path = "/crypto/prices/technicals/mi"
1801
+
1802
+ # query parameters
1803
+ query_params = {}
1804
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1805
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1806
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1807
+ query_params[:'ema_period'] = opts[:'ema_period'] if !opts[:'ema_period'].nil?
1808
+ query_params[:'sum_period'] = opts[:'sum_period'] if !opts[:'sum_period'].nil?
1809
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1810
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1811
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1812
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1813
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1814
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1815
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1816
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1817
+
1818
+ # header parameters
1819
+ header_params = {}
1820
+ # HTTP header 'Accept' (if needed)
1821
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1822
+
1823
+ # form parameters
1824
+ form_params = {}
1825
+
1826
+ # http body (model)
1827
+ post_body = nil
1828
+ auth_names = ['ApiKeyAuth']
1829
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1830
+ :header_params => header_params,
1831
+ :query_params => query_params,
1832
+ :form_params => form_params,
1833
+ :body => post_body,
1834
+ :auth_names => auth_names,
1835
+ :return_type => 'ApiResponseCryptoMassIndex')
1836
+ if @api_client.config.debugging
1837
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_mi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1838
+ end
1839
+ return data, status_code, headers
1840
+ end
1841
+
1842
+ # Negative Volume Index
1843
+ # Returns the Negative Volume Index values of Crypto Currency Prices for a Crypto Currency Pair
1844
+ # @param [Hash] opts the optional parameters
1845
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1846
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1847
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1848
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1849
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1850
+ # @option opts [Date] :start_date Return technicals on or after this date.
1851
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1852
+ # @option opts [Date] :end_date Return technicals on or before this date.
1853
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1854
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1855
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1856
+ # @return [ApiResponseCryptoNegativeVolumeIndex]
1857
+ def get_crypto_price_technicals_nvi(opts = {})
1858
+ data, _status_code, _headers = get_crypto_price_technicals_nvi_with_http_info(opts)
1859
+ return data
1860
+ end
1861
+
1862
+ # Negative Volume Index
1863
+ # Returns the Negative Volume Index values of Crypto Currency Prices for a Crypto Currency Pair
1864
+ # @param [Hash] opts the optional parameters
1865
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1866
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1867
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1868
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1869
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1870
+ # @option opts [Date] :start_date Return technicals on or after this date.
1871
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1872
+ # @option opts [Date] :end_date Return technicals on or before this date.
1873
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1874
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1875
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1876
+ # @return [Array<(ApiResponseCryptoNegativeVolumeIndex, Fixnum, Hash)>] ApiResponseCryptoNegativeVolumeIndex data, response status code and response headers
1877
+ def get_crypto_price_technicals_nvi_with_http_info(opts = {})
1878
+ if @api_client.config.debugging
1879
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_nvi ..."
1880
+ end
1881
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1882
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1883
+ end
1884
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1885
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1886
+ end
1887
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1888
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_nvi, must be smaller than or equal to 10000.'
1889
+ end
1890
+
1891
+ # resource path
1892
+ local_var_path = "/crypto/prices/technicals/nvi"
1893
+
1894
+ # query parameters
1895
+ query_params = {}
1896
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1897
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1898
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1899
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1900
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1901
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1902
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1903
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1904
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1905
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1906
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1907
+
1908
+ # header parameters
1909
+ header_params = {}
1910
+ # HTTP header 'Accept' (if needed)
1911
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1912
+
1913
+ # form parameters
1914
+ form_params = {}
1915
+
1916
+ # http body (model)
1917
+ post_body = nil
1918
+ auth_names = ['ApiKeyAuth']
1919
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1920
+ :header_params => header_params,
1921
+ :query_params => query_params,
1922
+ :form_params => form_params,
1923
+ :body => post_body,
1924
+ :auth_names => auth_names,
1925
+ :return_type => 'ApiResponseCryptoNegativeVolumeIndex')
1926
+ if @api_client.config.debugging
1927
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_nvi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1928
+ end
1929
+ return data, status_code, headers
1930
+ end
1931
+
1932
+ # On-balance Volume
1933
+ # Returns the On-balance Volume values of Crypto Currency Prices for a Crypto Currency Pair
1934
+ # @param [Hash] opts the optional parameters
1935
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1936
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1937
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1938
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1939
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1940
+ # @option opts [Date] :start_date Return technicals on or after this date.
1941
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1942
+ # @option opts [Date] :end_date Return technicals on or before this date.
1943
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1944
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
1945
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1946
+ # @return [ApiResponseCryptoOnBalanceVolume]
1947
+ def get_crypto_price_technicals_obv(opts = {})
1948
+ data, _status_code, _headers = get_crypto_price_technicals_obv_with_http_info(opts)
1949
+ return data
1950
+ end
1951
+
1952
+ # On-balance Volume
1953
+ # Returns the On-balance Volume values of Crypto Currency Prices for a Crypto Currency Pair
1954
+ # @param [Hash] opts the optional parameters
1955
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1956
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1957
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1958
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1959
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1960
+ # @option opts [Date] :start_date Return technicals on or after this date.
1961
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1962
+ # @option opts [Date] :end_date Return technicals on or before this date.
1963
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1964
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1965
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1966
+ # @return [Array<(ApiResponseCryptoOnBalanceVolume, Fixnum, Hash)>] ApiResponseCryptoOnBalanceVolume data, response status code and response headers
1967
+ def get_crypto_price_technicals_obv_with_http_info(opts = {})
1968
+ if @api_client.config.debugging
1969
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_obv ..."
1970
+ end
1971
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1972
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1973
+ end
1974
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
1975
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
1976
+ end
1977
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1978
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_obv, must be smaller than or equal to 10000.'
1979
+ end
1980
+
1981
+ # resource path
1982
+ local_var_path = "/crypto/prices/technicals/obv"
1983
+
1984
+ # query parameters
1985
+ query_params = {}
1986
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1987
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1988
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1989
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1990
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1991
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1992
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1993
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1994
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1995
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1996
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1997
+
1998
+ # header parameters
1999
+ header_params = {}
2000
+ # HTTP header 'Accept' (if needed)
2001
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2002
+
2003
+ # form parameters
2004
+ form_params = {}
2005
+
2006
+ # http body (model)
2007
+ post_body = nil
2008
+ auth_names = ['ApiKeyAuth']
2009
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2010
+ :header_params => header_params,
2011
+ :query_params => query_params,
2012
+ :form_params => form_params,
2013
+ :body => post_body,
2014
+ :auth_names => auth_names,
2015
+ :return_type => 'ApiResponseCryptoOnBalanceVolume')
2016
+ if @api_client.config.debugging
2017
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_obv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2018
+ end
2019
+ return data, status_code, headers
2020
+ end
2021
+
2022
+ # On-balance Volume Mean
2023
+ # Returns the On-balance Volume Mean values of Crypto Currency Prices for a Crypto Currency Pair
2024
+ # @param [Hash] opts the optional parameters
2025
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2026
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2027
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2028
+ # @option opts [Integer] :period The number of observations, per period, to calculate On-balance Volume Mean. (default to 10)
2029
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2030
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2031
+ # @option opts [Date] :start_date Return technicals on or after this date.
2032
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2033
+ # @option opts [Date] :end_date Return technicals on or before this date.
2034
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2035
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2036
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2037
+ # @return [ApiResponseCryptoOnBalanceVolumeMean]
2038
+ def get_crypto_price_technicals_obv_mean(opts = {})
2039
+ data, _status_code, _headers = get_crypto_price_technicals_obv_mean_with_http_info(opts)
2040
+ return data
2041
+ end
2042
+
2043
+ # On-balance Volume Mean
2044
+ # Returns the On-balance Volume Mean values of Crypto Currency Prices for a Crypto Currency Pair
2045
+ # @param [Hash] opts the optional parameters
2046
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2047
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2048
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2049
+ # @option opts [Integer] :period The number of observations, per period, to calculate On-balance Volume Mean.
2050
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2051
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2052
+ # @option opts [Date] :start_date Return technicals on or after this date.
2053
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2054
+ # @option opts [Date] :end_date Return technicals on or before this date.
2055
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2056
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2057
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2058
+ # @return [Array<(ApiResponseCryptoOnBalanceVolumeMean, Fixnum, Hash)>] ApiResponseCryptoOnBalanceVolumeMean data, response status code and response headers
2059
+ def get_crypto_price_technicals_obv_mean_with_http_info(opts = {})
2060
+ if @api_client.config.debugging
2061
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_obv_mean ..."
2062
+ end
2063
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2064
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_obv_mean, must be greater than or equal to 4.'
2065
+ end
2066
+
2067
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2068
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2069
+ end
2070
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2071
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2072
+ end
2073
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2074
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_obv_mean, must be smaller than or equal to 10000.'
2075
+ end
2076
+
2077
+ # resource path
2078
+ local_var_path = "/crypto/prices/technicals/obv_mean"
2079
+
2080
+ # query parameters
2081
+ query_params = {}
2082
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2083
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2084
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2085
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2086
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2087
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2088
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2089
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2090
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2091
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2092
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2093
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2094
+
2095
+ # header parameters
2096
+ header_params = {}
2097
+ # HTTP header 'Accept' (if needed)
2098
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2099
+
2100
+ # form parameters
2101
+ form_params = {}
2102
+
2103
+ # http body (model)
2104
+ post_body = nil
2105
+ auth_names = ['ApiKeyAuth']
2106
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2107
+ :header_params => header_params,
2108
+ :query_params => query_params,
2109
+ :form_params => form_params,
2110
+ :body => post_body,
2111
+ :auth_names => auth_names,
2112
+ :return_type => 'ApiResponseCryptoOnBalanceVolumeMean')
2113
+ if @api_client.config.debugging
2114
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_obv_mean\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2115
+ end
2116
+ return data, status_code, headers
2117
+ end
2118
+
2119
+ # Relative Strength Index
2120
+ # Returns the Relative Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2121
+ # @param [Hash] opts the optional parameters
2122
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2123
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2124
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2125
+ # @option opts [Integer] :period The number of observations, per period, to calculate Relative Strength Index. (default to 14)
2126
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Relative Strength Index. (default to close)
2127
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2128
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2129
+ # @option opts [Date] :start_date Return technicals on or after this date.
2130
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2131
+ # @option opts [Date] :end_date Return technicals on or before this date.
2132
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2133
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2134
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2135
+ # @return [ApiResponseCryptoRelativeStrengthIndex]
2136
+ def get_crypto_price_technicals_rsi(opts = {})
2137
+ data, _status_code, _headers = get_crypto_price_technicals_rsi_with_http_info(opts)
2138
+ return data
2139
+ end
2140
+
2141
+ # Relative Strength Index
2142
+ # Returns the Relative Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2143
+ # @param [Hash] opts the optional parameters
2144
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2145
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2146
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2147
+ # @option opts [Integer] :period The number of observations, per period, to calculate Relative Strength Index.
2148
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Relative Strength Index.
2149
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2150
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2151
+ # @option opts [Date] :start_date Return technicals on or after this date.
2152
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2153
+ # @option opts [Date] :end_date Return technicals on or before this date.
2154
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2155
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2156
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2157
+ # @return [Array<(ApiResponseCryptoRelativeStrengthIndex, Fixnum, Hash)>] ApiResponseCryptoRelativeStrengthIndex data, response status code and response headers
2158
+ def get_crypto_price_technicals_rsi_with_http_info(opts = {})
2159
+ if @api_client.config.debugging
2160
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_rsi ..."
2161
+ end
2162
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2163
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_rsi, must be greater than or equal to 4.'
2164
+ end
2165
+
2166
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2167
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2168
+ end
2169
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2170
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2171
+ end
2172
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2173
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2174
+ end
2175
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2176
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_rsi, must be smaller than or equal to 10000.'
2177
+ end
2178
+
2179
+ # resource path
2180
+ local_var_path = "/crypto/prices/technicals/rsi"
2181
+
2182
+ # query parameters
2183
+ query_params = {}
2184
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2185
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2186
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2187
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2188
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2189
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2190
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2191
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2192
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2193
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2194
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2195
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2196
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2197
+
2198
+ # header parameters
2199
+ header_params = {}
2200
+ # HTTP header 'Accept' (if needed)
2201
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2202
+
2203
+ # form parameters
2204
+ form_params = {}
2205
+
2206
+ # http body (model)
2207
+ post_body = nil
2208
+ auth_names = ['ApiKeyAuth']
2209
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2210
+ :header_params => header_params,
2211
+ :query_params => query_params,
2212
+ :form_params => form_params,
2213
+ :body => post_body,
2214
+ :auth_names => auth_names,
2215
+ :return_type => 'ApiResponseCryptoRelativeStrengthIndex')
2216
+ if @api_client.config.debugging
2217
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_rsi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2218
+ end
2219
+ return data, status_code, headers
2220
+ end
2221
+
2222
+ # Simple Moving Average
2223
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2224
+ # @param [Hash] opts the optional parameters
2225
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2226
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2227
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2228
+ # @option opts [Integer] :period The number of observations, per period, to calculate Simple Moving Average. (default to 20)
2229
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Simple Moving Average. (default to close)
2230
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2231
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2232
+ # @option opts [Date] :start_date Return technicals on or after this date.
2233
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2234
+ # @option opts [Date] :end_date Return technicals on or before this date.
2235
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2236
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2237
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2238
+ # @return [ApiResponseCryptoSimpleMovingAverage]
2239
+ def get_crypto_price_technicals_sma(opts = {})
2240
+ data, _status_code, _headers = get_crypto_price_technicals_sma_with_http_info(opts)
2241
+ return data
2242
+ end
2243
+
2244
+ # Simple Moving Average
2245
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2246
+ # @param [Hash] opts the optional parameters
2247
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2248
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2249
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2250
+ # @option opts [Integer] :period The number of observations, per period, to calculate Simple Moving Average.
2251
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Simple Moving Average.
2252
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2253
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2254
+ # @option opts [Date] :start_date Return technicals on or after this date.
2255
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2256
+ # @option opts [Date] :end_date Return technicals on or before this date.
2257
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2258
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2259
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2260
+ # @return [Array<(ApiResponseCryptoSimpleMovingAverage, Fixnum, Hash)>] ApiResponseCryptoSimpleMovingAverage data, response status code and response headers
2261
+ def get_crypto_price_technicals_sma_with_http_info(opts = {})
2262
+ if @api_client.config.debugging
2263
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_sma ..."
2264
+ end
2265
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
2266
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_sma, must be greater than or equal to 5.'
2267
+ end
2268
+
2269
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2270
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2271
+ end
2272
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2273
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2274
+ end
2275
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2276
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2277
+ end
2278
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2279
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_sma, must be smaller than or equal to 10000.'
2280
+ end
2281
+
2282
+ # resource path
2283
+ local_var_path = "/crypto/prices/technicals/sma"
2284
+
2285
+ # query parameters
2286
+ query_params = {}
2287
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2288
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2289
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2290
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2291
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2292
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2293
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2294
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2295
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2296
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2297
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2298
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2299
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2300
+
2301
+ # header parameters
2302
+ header_params = {}
2303
+ # HTTP header 'Accept' (if needed)
2304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2305
+
2306
+ # form parameters
2307
+ form_params = {}
2308
+
2309
+ # http body (model)
2310
+ post_body = nil
2311
+ auth_names = ['ApiKeyAuth']
2312
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2313
+ :header_params => header_params,
2314
+ :query_params => query_params,
2315
+ :form_params => form_params,
2316
+ :body => post_body,
2317
+ :auth_names => auth_names,
2318
+ :return_type => 'ApiResponseCryptoSimpleMovingAverage')
2319
+ if @api_client.config.debugging
2320
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_sma\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2321
+ end
2322
+ return data, status_code, headers
2323
+ end
2324
+
2325
+ # Stochastic Oscillator
2326
+ # Returns the Stochastic Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2327
+ # @param [Hash] opts the optional parameters
2328
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2329
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2330
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2331
+ # @option opts [Integer] :period The number of observations, per period, to calculate %K of Stochastic Oscillator. (default to 14)
2332
+ # @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)
2333
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2334
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2335
+ # @option opts [Date] :start_date Return technicals on or after this date.
2336
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2337
+ # @option opts [Date] :end_date Return technicals on or before this date.
2338
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2339
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2340
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2341
+ # @return [ApiResponseCryptoStochasticOscillator]
2342
+ def get_crypto_price_technicals_sr(opts = {})
2343
+ data, _status_code, _headers = get_crypto_price_technicals_sr_with_http_info(opts)
2344
+ return data
2345
+ end
2346
+
2347
+ # Stochastic Oscillator
2348
+ # Returns the Stochastic Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2349
+ # @param [Hash] opts the optional parameters
2350
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2351
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2352
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2353
+ # @option opts [Integer] :period The number of observations, per period, to calculate %K of Stochastic Oscillator.
2354
+ # @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.
2355
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2356
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2357
+ # @option opts [Date] :start_date Return technicals on or after this date.
2358
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2359
+ # @option opts [Date] :end_date Return technicals on or before this date.
2360
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2361
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2362
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2363
+ # @return [Array<(ApiResponseCryptoStochasticOscillator, Fixnum, Hash)>] ApiResponseCryptoStochasticOscillator data, response status code and response headers
2364
+ def get_crypto_price_technicals_sr_with_http_info(opts = {})
2365
+ if @api_client.config.debugging
2366
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_sr ..."
2367
+ end
2368
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 3
2369
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_sr, must be greater than or equal to 3.'
2370
+ end
2371
+
2372
+ if @api_client.config.client_side_validation && !opts[:'signal_period'].nil? && opts[:'signal_period'] < 3
2373
+ fail ArgumentError, 'invalid value for "opts[:"signal_period"]" when calling TechnicalApi.get_crypto_price_technicals_sr, must be greater than or equal to 3.'
2374
+ end
2375
+
2376
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2377
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2378
+ end
2379
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2380
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2381
+ end
2382
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2383
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_sr, must be smaller than or equal to 10000.'
2384
+ end
2385
+
2386
+ # resource path
2387
+ local_var_path = "/crypto/prices/technicals/sr"
2388
+
2389
+ # query parameters
2390
+ query_params = {}
2391
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2392
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2393
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2394
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2395
+ query_params[:'signal_period'] = opts[:'signal_period'] if !opts[:'signal_period'].nil?
2396
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2397
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2398
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2399
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2400
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2401
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2402
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2403
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2404
+
2405
+ # header parameters
2406
+ header_params = {}
2407
+ # HTTP header 'Accept' (if needed)
2408
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2409
+
2410
+ # form parameters
2411
+ form_params = {}
2412
+
2413
+ # http body (model)
2414
+ post_body = nil
2415
+ auth_names = ['ApiKeyAuth']
2416
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2417
+ :header_params => header_params,
2418
+ :query_params => query_params,
2419
+ :form_params => form_params,
2420
+ :body => post_body,
2421
+ :auth_names => auth_names,
2422
+ :return_type => 'ApiResponseCryptoStochasticOscillator')
2423
+ if @api_client.config.debugging
2424
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_sr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2425
+ end
2426
+ return data, status_code, headers
2427
+ end
2428
+
2429
+ # Triple Exponential Average
2430
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2431
+ # @param [Hash] opts the optional parameters
2432
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2433
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2434
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2435
+ # @option opts [Integer] :period The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average. (default to 15)
2436
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2437
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2438
+ # @option opts [Date] :start_date Return technicals on or after this date.
2439
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2440
+ # @option opts [Date] :end_date Return technicals on or before this date.
2441
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2442
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2443
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2444
+ # @return [ApiResponseCryptoTripleExponentialAverage]
2445
+ def get_crypto_price_technicals_trix(opts = {})
2446
+ data, _status_code, _headers = get_crypto_price_technicals_trix_with_http_info(opts)
2447
+ return data
2448
+ end
2449
+
2450
+ # Triple Exponential Average
2451
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2452
+ # @param [Hash] opts the optional parameters
2453
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2454
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2455
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2456
+ # @option opts [Integer] :period The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average.
2457
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2458
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2459
+ # @option opts [Date] :start_date Return technicals on or after this date.
2460
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2461
+ # @option opts [Date] :end_date Return technicals on or before this date.
2462
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2463
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2464
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2465
+ # @return [Array<(ApiResponseCryptoTripleExponentialAverage, Fixnum, Hash)>] ApiResponseCryptoTripleExponentialAverage data, response status code and response headers
2466
+ def get_crypto_price_technicals_trix_with_http_info(opts = {})
2467
+ if @api_client.config.debugging
2468
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_trix ..."
2469
+ end
2470
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 2
2471
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_trix, must be greater than or equal to 2.'
2472
+ end
2473
+
2474
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2475
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2476
+ end
2477
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2478
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2479
+ end
2480
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2481
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_trix, must be smaller than or equal to 10000.'
2482
+ end
2483
+
2484
+ # resource path
2485
+ local_var_path = "/crypto/prices/technicals/trix"
2486
+
2487
+ # query parameters
2488
+ query_params = {}
2489
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2490
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2491
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2492
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2493
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2494
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2495
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2496
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2497
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2498
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2499
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2500
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2501
+
2502
+ # header parameters
2503
+ header_params = {}
2504
+ # HTTP header 'Accept' (if needed)
2505
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2506
+
2507
+ # form parameters
2508
+ form_params = {}
2509
+
2510
+ # http body (model)
2511
+ post_body = nil
2512
+ auth_names = ['ApiKeyAuth']
2513
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2514
+ :header_params => header_params,
2515
+ :query_params => query_params,
2516
+ :form_params => form_params,
2517
+ :body => post_body,
2518
+ :auth_names => auth_names,
2519
+ :return_type => 'ApiResponseCryptoTripleExponentialAverage')
2520
+ if @api_client.config.debugging
2521
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_trix\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2522
+ end
2523
+ return data, status_code, headers
2524
+ end
2525
+
2526
+ # True Strength Index
2527
+ # Returns the True Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2528
+ # @param [Hash] opts the optional parameters
2529
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2530
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2531
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2532
+ # @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)
2533
+ # @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)
2534
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating True Strength Index. (default to close)
2535
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2536
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2537
+ # @option opts [Date] :start_date Return technicals on or after this date.
2538
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2539
+ # @option opts [Date] :end_date Return technicals on or before this date.
2540
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2541
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2542
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2543
+ # @return [ApiResponseCryptoTrueStrengthIndex]
2544
+ def get_crypto_price_technicals_tsi(opts = {})
2545
+ data, _status_code, _headers = get_crypto_price_technicals_tsi_with_http_info(opts)
2546
+ return data
2547
+ end
2548
+
2549
+ # True Strength Index
2550
+ # Returns the True Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2551
+ # @param [Hash] opts the optional parameters
2552
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2553
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2554
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2555
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index.
2556
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index.
2557
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating True Strength Index.
2558
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2559
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2560
+ # @option opts [Date] :start_date Return technicals on or after this date.
2561
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2562
+ # @option opts [Date] :end_date Return technicals on or before this date.
2563
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2564
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2565
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2566
+ # @return [Array<(ApiResponseCryptoTrueStrengthIndex, Fixnum, Hash)>] ApiResponseCryptoTrueStrengthIndex data, response status code and response headers
2567
+ def get_crypto_price_technicals_tsi_with_http_info(opts = {})
2568
+ if @api_client.config.debugging
2569
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_tsi ..."
2570
+ end
2571
+ if @api_client.config.client_side_validation && !opts[:'low_period'].nil? && opts[:'low_period'] < 3
2572
+ fail ArgumentError, 'invalid value for "opts[:"low_period"]" when calling TechnicalApi.get_crypto_price_technicals_tsi, must be greater than or equal to 3.'
2573
+ end
2574
+
2575
+ if @api_client.config.client_side_validation && !opts[:'high_period'].nil? && opts[:'high_period'] < 3
2576
+ fail ArgumentError, 'invalid value for "opts[:"high_period"]" when calling TechnicalApi.get_crypto_price_technicals_tsi, must be greater than or equal to 3.'
2577
+ end
2578
+
2579
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2580
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2581
+ end
2582
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2583
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2584
+ end
2585
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2586
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2587
+ end
2588
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2589
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_tsi, must be smaller than or equal to 10000.'
2590
+ end
2591
+
2592
+ # resource path
2593
+ local_var_path = "/crypto/prices/technicals/tsi"
2594
+
2595
+ # query parameters
2596
+ query_params = {}
2597
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2598
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2599
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2600
+ query_params[:'low_period'] = opts[:'low_period'] if !opts[:'low_period'].nil?
2601
+ query_params[:'high_period'] = opts[:'high_period'] if !opts[:'high_period'].nil?
2602
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2603
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2604
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2605
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2606
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2607
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2608
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2609
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2610
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2611
+
2612
+ # header parameters
2613
+ header_params = {}
2614
+ # HTTP header 'Accept' (if needed)
2615
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2616
+
2617
+ # form parameters
2618
+ form_params = {}
2619
+
2620
+ # http body (model)
2621
+ post_body = nil
2622
+ auth_names = ['ApiKeyAuth']
2623
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2624
+ :header_params => header_params,
2625
+ :query_params => query_params,
2626
+ :form_params => form_params,
2627
+ :body => post_body,
2628
+ :auth_names => auth_names,
2629
+ :return_type => 'ApiResponseCryptoTrueStrengthIndex')
2630
+ if @api_client.config.debugging
2631
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_tsi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2632
+ end
2633
+ return data, status_code, headers
2634
+ end
2635
+
2636
+ # Ultimate Oscillator
2637
+ # Returns the Ultimate Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2638
+ # @param [Hash] opts the optional parameters
2639
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2640
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2641
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2642
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate the short period for Ultimate Oscillator. (default to 7)
2643
+ # @option opts [Integer] :medium_period The number of observations, per period, to calculate the medium period for Ultimate Oscillator. (default to 14)
2644
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate the long period for Ultimate Oscillator. (default to 28)
2645
+ # @option opts [Float] :short_weight The weight of short Buying Pressure average for Ultimate Oscillator. (default to 4.0)
2646
+ # @option opts [Float] :medium_weight The weight of medium Buying Pressure average for Ultimate Oscillator. (default to 2.0)
2647
+ # @option opts [Float] :long_weight The weight of long Buying Pressure average for Ultimate Oscillator. (default to 1.0)
2648
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2649
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2650
+ # @option opts [Date] :start_date Return technicals on or after this date.
2651
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2652
+ # @option opts [Date] :end_date Return technicals on or before this date.
2653
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2654
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2655
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2656
+ # @return [ApiResponseCryptoUltimateOscillator]
2657
+ def get_crypto_price_technicals_uo(opts = {})
2658
+ data, _status_code, _headers = get_crypto_price_technicals_uo_with_http_info(opts)
2659
+ return data
2660
+ end
2661
+
2662
+ # Ultimate Oscillator
2663
+ # Returns the Ultimate Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2664
+ # @param [Hash] opts the optional parameters
2665
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2666
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2667
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2668
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate the short period for Ultimate Oscillator.
2669
+ # @option opts [Integer] :medium_period The number of observations, per period, to calculate the medium period for Ultimate Oscillator.
2670
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate the long period for Ultimate Oscillator.
2671
+ # @option opts [Float] :short_weight The weight of short Buying Pressure average for Ultimate Oscillator.
2672
+ # @option opts [Float] :medium_weight The weight of medium Buying Pressure average for Ultimate Oscillator.
2673
+ # @option opts [Float] :long_weight The weight of long Buying Pressure average for Ultimate Oscillator.
2674
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2675
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2676
+ # @option opts [Date] :start_date Return technicals on or after this date.
2677
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2678
+ # @option opts [Date] :end_date Return technicals on or before this date.
2679
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2680
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2681
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2682
+ # @return [Array<(ApiResponseCryptoUltimateOscillator, Fixnum, Hash)>] ApiResponseCryptoUltimateOscillator data, response status code and response headers
2683
+ def get_crypto_price_technicals_uo_with_http_info(opts = {})
2684
+ if @api_client.config.debugging
2685
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_uo ..."
2686
+ end
2687
+ if @api_client.config.client_side_validation && !opts[:'long_period'].nil? && opts[:'long_period'] < 4
2688
+ fail ArgumentError, 'invalid value for "opts[:"long_period"]" when calling TechnicalApi.get_crypto_price_technicals_uo, must be greater than or equal to 4.'
2689
+ end
2690
+
2691
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2692
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2693
+ end
2694
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2695
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2696
+ end
2697
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2698
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_uo, must be smaller than or equal to 10000.'
2699
+ end
2700
+
2701
+ # resource path
2702
+ local_var_path = "/crypto/prices/technicals/uo"
2703
+
2704
+ # query parameters
2705
+ query_params = {}
2706
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2707
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2708
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2709
+ query_params[:'short_period'] = opts[:'short_period'] if !opts[:'short_period'].nil?
2710
+ query_params[:'medium_period'] = opts[:'medium_period'] if !opts[:'medium_period'].nil?
2711
+ query_params[:'long_period'] = opts[:'long_period'] if !opts[:'long_period'].nil?
2712
+ query_params[:'short_weight'] = opts[:'short_weight'] if !opts[:'short_weight'].nil?
2713
+ query_params[:'medium_weight'] = opts[:'medium_weight'] if !opts[:'medium_weight'].nil?
2714
+ query_params[:'long_weight'] = opts[:'long_weight'] if !opts[:'long_weight'].nil?
2715
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2716
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2717
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2718
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2719
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2720
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2721
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2722
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2723
+
2724
+ # header parameters
2725
+ header_params = {}
2726
+ # HTTP header 'Accept' (if needed)
2727
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2728
+
2729
+ # form parameters
2730
+ form_params = {}
2731
+
2732
+ # http body (model)
2733
+ post_body = nil
2734
+ auth_names = ['ApiKeyAuth']
2735
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2736
+ :header_params => header_params,
2737
+ :query_params => query_params,
2738
+ :form_params => form_params,
2739
+ :body => post_body,
2740
+ :auth_names => auth_names,
2741
+ :return_type => 'ApiResponseCryptoUltimateOscillator')
2742
+ if @api_client.config.debugging
2743
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_uo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2744
+ end
2745
+ return data, status_code, headers
2746
+ end
2747
+
2748
+ # Vortex Indicator
2749
+ # Returns the Vortex Indicator values of Crypto Currency Prices for a Crypto Currency Pair
2750
+ # @param [Hash] opts the optional parameters
2751
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2752
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2753
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2754
+ # @option opts [Integer] :period The number of observations, per period, to calculate Vortex Indicator. (default to 14)
2755
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2756
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2757
+ # @option opts [Date] :start_date Return technicals on or after this date.
2758
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2759
+ # @option opts [Date] :end_date Return technicals on or before this date.
2760
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2761
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2762
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2763
+ # @return [ApiResponseCryptoVortexIndicator]
2764
+ def get_crypto_price_technicals_vi(opts = {})
2765
+ data, _status_code, _headers = get_crypto_price_technicals_vi_with_http_info(opts)
2766
+ return data
2767
+ end
2768
+
2769
+ # Vortex Indicator
2770
+ # Returns the Vortex Indicator values of Crypto Currency Prices for a Crypto Currency Pair
2771
+ # @param [Hash] opts the optional parameters
2772
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2773
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2774
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2775
+ # @option opts [Integer] :period The number of observations, per period, to calculate Vortex Indicator.
2776
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2777
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2778
+ # @option opts [Date] :start_date Return technicals on or after this date.
2779
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2780
+ # @option opts [Date] :end_date Return technicals on or before this date.
2781
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2782
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2783
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2784
+ # @return [Array<(ApiResponseCryptoVortexIndicator, Fixnum, Hash)>] ApiResponseCryptoVortexIndicator data, response status code and response headers
2785
+ def get_crypto_price_technicals_vi_with_http_info(opts = {})
2786
+ if @api_client.config.debugging
2787
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_vi ..."
2788
+ end
2789
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2790
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_vi, must be greater than or equal to 4.'
2791
+ end
2792
+
2793
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2794
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2795
+ end
2796
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2797
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2798
+ end
2799
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2800
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_vi, must be smaller than or equal to 10000.'
2801
+ end
2802
+
2803
+ # resource path
2804
+ local_var_path = "/crypto/prices/technicals/vi"
2805
+
2806
+ # query parameters
2807
+ query_params = {}
2808
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2809
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2810
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2811
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2812
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2813
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2814
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2815
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2816
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2817
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2818
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2819
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2820
+
2821
+ # header parameters
2822
+ header_params = {}
2823
+ # HTTP header 'Accept' (if needed)
2824
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2825
+
2826
+ # form parameters
2827
+ form_params = {}
2828
+
2829
+ # http body (model)
2830
+ post_body = nil
2831
+ auth_names = ['ApiKeyAuth']
2832
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2833
+ :header_params => header_params,
2834
+ :query_params => query_params,
2835
+ :form_params => form_params,
2836
+ :body => post_body,
2837
+ :auth_names => auth_names,
2838
+ :return_type => 'ApiResponseCryptoVortexIndicator')
2839
+ if @api_client.config.debugging
2840
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_vi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2841
+ end
2842
+ return data, status_code, headers
2843
+ end
2844
+
2845
+ # Volume-price Trend
2846
+ # Returns the Volume-price Trend values of Crypto Currency Prices for a Crypto Currency Pair
2847
+ # @param [Hash] opts the optional parameters
2848
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2849
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2850
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2851
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2852
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2853
+ # @option opts [Date] :start_date Return technicals on or after this date.
2854
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2855
+ # @option opts [Date] :end_date Return technicals on or before this date.
2856
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2857
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2858
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2859
+ # @return [ApiResponseCryptoVolumePriceTrend]
2860
+ def get_crypto_price_technicals_vpt(opts = {})
2861
+ data, _status_code, _headers = get_crypto_price_technicals_vpt_with_http_info(opts)
2862
+ return data
2863
+ end
2864
+
2865
+ # Volume-price Trend
2866
+ # Returns the Volume-price Trend values of Crypto Currency Prices for a Crypto Currency Pair
2867
+ # @param [Hash] opts the optional parameters
2868
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2869
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2870
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2871
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2872
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2873
+ # @option opts [Date] :start_date Return technicals on or after this date.
2874
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2875
+ # @option opts [Date] :end_date Return technicals on or before this date.
2876
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2877
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2878
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2879
+ # @return [Array<(ApiResponseCryptoVolumePriceTrend, Fixnum, Hash)>] ApiResponseCryptoVolumePriceTrend data, response status code and response headers
2880
+ def get_crypto_price_technicals_vpt_with_http_info(opts = {})
2881
+ if @api_client.config.debugging
2882
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_vpt ..."
2883
+ end
2884
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2885
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2886
+ end
2887
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2888
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2889
+ end
2890
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2891
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_vpt, must be smaller than or equal to 10000.'
2892
+ end
2893
+
2894
+ # resource path
2895
+ local_var_path = "/crypto/prices/technicals/vpt"
2896
+
2897
+ # query parameters
2898
+ query_params = {}
2899
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2900
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2901
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2902
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2903
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2904
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2905
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2906
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2907
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2908
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2909
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2910
+
2911
+ # header parameters
2912
+ header_params = {}
2913
+ # HTTP header 'Accept' (if needed)
2914
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2915
+
2916
+ # form parameters
2917
+ form_params = {}
2918
+
2919
+ # http body (model)
2920
+ post_body = nil
2921
+ auth_names = ['ApiKeyAuth']
2922
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2923
+ :header_params => header_params,
2924
+ :query_params => query_params,
2925
+ :form_params => form_params,
2926
+ :body => post_body,
2927
+ :auth_names => auth_names,
2928
+ :return_type => 'ApiResponseCryptoVolumePriceTrend')
2929
+ if @api_client.config.debugging
2930
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_vpt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2931
+ end
2932
+ return data, status_code, headers
2933
+ end
2934
+
2935
+ # Volume Weighted Average Price
2936
+ # Returns the Volume Weighted Average Price values of Crypto Currency Prices for a Crypto Currency Pair
2937
+ # @param [Hash] opts the optional parameters
2938
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2939
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2940
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2941
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2942
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2943
+ # @option opts [Date] :start_date Return technicals on or after this date.
2944
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2945
+ # @option opts [Date] :end_date Return technicals on or before this date.
2946
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2947
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
2948
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2949
+ # @return [ApiResponseCryptoVolumeWeightedAveragePrice]
2950
+ def get_crypto_price_technicals_vwap(opts = {})
2951
+ data, _status_code, _headers = get_crypto_price_technicals_vwap_with_http_info(opts)
2952
+ return data
2953
+ end
2954
+
2955
+ # Volume Weighted Average Price
2956
+ # Returns the Volume Weighted Average Price values of Crypto Currency Prices for a Crypto Currency Pair
2957
+ # @param [Hash] opts the optional parameters
2958
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2959
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2960
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2961
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2962
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2963
+ # @option opts [Date] :start_date Return technicals on or after this date.
2964
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2965
+ # @option opts [Date] :end_date Return technicals on or before this date.
2966
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2967
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2968
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2969
+ # @return [Array<(ApiResponseCryptoVolumeWeightedAveragePrice, Fixnum, Hash)>] ApiResponseCryptoVolumeWeightedAveragePrice data, response status code and response headers
2970
+ def get_crypto_price_technicals_vwap_with_http_info(opts = {})
2971
+ if @api_client.config.debugging
2972
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_vwap ..."
2973
+ end
2974
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2975
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2976
+ end
2977
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
2978
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
2979
+ end
2980
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2981
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_vwap, must be smaller than or equal to 10000.'
2982
+ end
2983
+
2984
+ # resource path
2985
+ local_var_path = "/crypto/prices/technicals/vwap"
2986
+
2987
+ # query parameters
2988
+ query_params = {}
2989
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2990
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2991
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2992
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2993
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2994
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2995
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2996
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2997
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2998
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2999
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3000
+
3001
+ # header parameters
3002
+ header_params = {}
3003
+ # HTTP header 'Accept' (if needed)
3004
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3005
+
3006
+ # form parameters
3007
+ form_params = {}
3008
+
3009
+ # http body (model)
3010
+ post_body = nil
3011
+ auth_names = ['ApiKeyAuth']
3012
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3013
+ :header_params => header_params,
3014
+ :query_params => query_params,
3015
+ :form_params => form_params,
3016
+ :body => post_body,
3017
+ :auth_names => auth_names,
3018
+ :return_type => 'ApiResponseCryptoVolumeWeightedAveragePrice')
3019
+ if @api_client.config.debugging
3020
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_vwap\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3021
+ end
3022
+ return data, status_code, headers
3023
+ end
3024
+
3025
+ # Williams %R
3026
+ # Returns the Williams %R values of Crypto Currency Prices for a Crypto Currency Pair
3027
+ # @param [Hash] opts the optional parameters
3028
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3029
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3030
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3031
+ # @option opts [Integer] :period The number of observations, per period, to look-back when calculating Williams %R. (default to 14)
3032
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
3033
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
3034
+ # @option opts [Date] :start_date Return technicals on or after this date.
3035
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3036
+ # @option opts [Date] :end_date Return technicals on or before this date.
3037
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3038
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page. (default to 100)
3039
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3040
+ # @return [ApiResponseCryptoWilliamsR]
3041
+ def get_crypto_price_technicals_wr(opts = {})
3042
+ data, _status_code, _headers = get_crypto_price_technicals_wr_with_http_info(opts)
3043
+ return data
3044
+ end
3045
+
3046
+ # Williams %R
3047
+ # Returns the Williams %R values of Crypto Currency Prices for a Crypto Currency Pair
3048
+ # @param [Hash] opts the optional parameters
3049
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3050
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3051
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3052
+ # @option opts [Integer] :period The number of observations, per period, to look-back when calculating Williams %R.
3053
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
3054
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
3055
+ # @option opts [Date] :start_date Return technicals on or after this date.
3056
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3057
+ # @option opts [Date] :end_date Return technicals on or before this date.
3058
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3059
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
3060
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3061
+ # @return [Array<(ApiResponseCryptoWilliamsR, Fixnum, Hash)>] ApiResponseCryptoWilliamsR data, response status code and response headers
3062
+ def get_crypto_price_technicals_wr_with_http_info(opts = {})
3063
+ if @api_client.config.debugging
3064
+ @api_client.config.logger.debug "Calling API: TechnicalApi.get_crypto_price_technicals_wr ..."
3065
+ end
3066
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
3067
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling TechnicalApi.get_crypto_price_technicals_wr, must be greater than or equal to 5.'
3068
+ end
3069
+
3070
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
3071
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
3072
+ end
3073
+ if @api_client.config.client_side_validation && opts[:'timezone'] && !['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'].include?(opts[:'timezone'])
3074
+ fail ArgumentError, 'invalid value for "timezone", must be one of Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu'
3075
+ end
3076
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
3077
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling TechnicalApi.get_crypto_price_technicals_wr, must be smaller than or equal to 10000.'
3078
+ end
3079
+
3080
+ # resource path
3081
+ local_var_path = "/crypto/prices/technicals/wr"
3082
+
3083
+ # query parameters
3084
+ query_params = {}
3085
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
3086
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
3087
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
3088
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
3089
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
3090
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
3091
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
3092
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
3093
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
3094
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
3095
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3096
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3097
+
3098
+ # header parameters
3099
+ header_params = {}
3100
+ # HTTP header 'Accept' (if needed)
3101
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3102
+
3103
+ # form parameters
3104
+ form_params = {}
3105
+
3106
+ # http body (model)
3107
+ post_body = nil
3108
+ auth_names = ['ApiKeyAuth']
3109
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3110
+ :header_params => header_params,
3111
+ :query_params => query_params,
3112
+ :form_params => form_params,
3113
+ :body => post_body,
3114
+ :auth_names => auth_names,
3115
+ :return_type => 'ApiResponseCryptoWilliamsR')
3116
+ if @api_client.config.debugging
3117
+ @api_client.config.logger.debug "API called: TechnicalApi#get_crypto_price_technicals_wr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3118
+ end
3119
+ return data, status_code, headers
3120
+ end
3121
+
23
3122
  # Accumulation/Distribution Index
24
3123
  # Returns the Accumulation/Distribution Index values of Stock Prices for the Security with the given `identifier`
25
3124
  # @param identifier A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
@@ -1109,9 +4208,8 @@ module Intrinio
1109
4208
  # @param [Hash] opts the optional parameters
1110
4209
  # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1 (default to 10)
1111
4210
  # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2 (default to 15)
1112
- # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA2 (default to 15)
1113
- # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA3 (default to 20)
1114
- # @option opts [Integer] :roc5 The number of observations, per period, to calculate the rate-of-change for RCMA4 (default to 30)
4211
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA3 (default to 20)
4212
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA4 (default to 30)
1115
4213
  # @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)
1116
4214
  # @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)
1117
4215
  # @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)
@@ -1133,9 +4231,8 @@ module Intrinio
1133
4231
  # @param [Hash] opts the optional parameters
1134
4232
  # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1
1135
4233
  # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2
1136
- # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA2
1137
- # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA3
1138
- # @option opts [Integer] :roc5 The number of observations, per period, to calculate the rate-of-change for RCMA4
4234
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA3
4235
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA4
1139
4236
  # @option opts [Integer] :sma1 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1
1140
4237
  # @option opts [Integer] :sma2 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2
1141
4238
  # @option opts [Integer] :sma3 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3
@@ -1154,8 +4251,8 @@ module Intrinio
1154
4251
  if @api_client.config.client_side_validation && identifier.nil?
1155
4252
  fail ArgumentError, "Missing the required parameter 'identifier' when calling TechnicalApi.get_security_price_technicals_kst"
1156
4253
  end
1157
- if @api_client.config.client_side_validation && !opts[:'roc5'].nil? && opts[:'roc5'] < 3
1158
- fail ArgumentError, 'invalid value for "opts[:"roc5"]" when calling TechnicalApi.get_security_price_technicals_kst, must be greater than or equal to 3.'
4254
+ if @api_client.config.client_side_validation && !opts[:'roc4'].nil? && opts[:'roc4'] < 3
4255
+ fail ArgumentError, 'invalid value for "opts[:"roc4"]" when calling TechnicalApi.get_security_price_technicals_kst, must be greater than or equal to 3.'
1159
4256
  end
1160
4257
 
1161
4258
  if @api_client.config.client_side_validation && !opts[:'sma4'].nil? && opts[:'sma4'] < 3
@@ -1176,9 +4273,8 @@ module Intrinio
1176
4273
  query_params = {}
1177
4274
  query_params[:'roc1'] = opts[:'roc1'] if !opts[:'roc1'].nil?
1178
4275
  query_params[:'roc2'] = opts[:'roc2'] if !opts[:'roc2'].nil?
1179
- query_params[:'roc2'] = opts[:'roc3'] if !opts[:'roc3'].nil?
1180
- query_params[:'roc3'] = opts[:'roc4'] if !opts[:'roc4'].nil?
1181
- query_params[:'roc4'] = opts[:'roc5'] if !opts[:'roc5'].nil?
4276
+ query_params[:'roc3'] = opts[:'roc3'] if !opts[:'roc3'].nil?
4277
+ query_params[:'roc4'] = opts[:'roc4'] if !opts[:'roc4'].nil?
1182
4278
  query_params[:'sma1'] = opts[:'sma1'] if !opts[:'sma1'].nil?
1183
4279
  query_params[:'sma2'] = opts[:'sma2'] if !opts[:'sma2'].nil?
1184
4280
  query_params[:'sma3'] = opts[:'sma3'] if !opts[:'sma3'].nil?