intrinio-sdk 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -25,15 +25,46 @@ require 'intrinio-sdk/models/api_response_company_fundamentals'
25
25
  require 'intrinio-sdk/models/api_response_company_historical_data'
26
26
  require 'intrinio-sdk/models/api_response_company_news'
27
27
  require 'intrinio-sdk/models/api_response_company_securities'
28
+ require 'intrinio-sdk/models/api_response_crypto_accumulation_distribution_index'
29
+ require 'intrinio-sdk/models/api_response_crypto_average_daily_trading_volume'
30
+ require 'intrinio-sdk/models/api_response_crypto_average_directional_index'
31
+ require 'intrinio-sdk/models/api_response_crypto_average_true_range'
32
+ require 'intrinio-sdk/models/api_response_crypto_awesome_oscillator'
33
+ require 'intrinio-sdk/models/api_response_crypto_bollinger_bands'
28
34
  require 'intrinio-sdk/models/api_response_crypto_book'
29
35
  require 'intrinio-sdk/models/api_response_crypto_book_asks'
30
36
  require 'intrinio-sdk/models/api_response_crypto_book_bids'
37
+ require 'intrinio-sdk/models/api_response_crypto_chaikin_money_flow'
38
+ require 'intrinio-sdk/models/api_response_crypto_commodity_channel_index'
31
39
  require 'intrinio-sdk/models/api_response_crypto_currencies'
40
+ require 'intrinio-sdk/models/api_response_crypto_detrended_price_oscillator'
41
+ require 'intrinio-sdk/models/api_response_crypto_donchian_channel'
42
+ require 'intrinio-sdk/models/api_response_crypto_ease_of_movement'
32
43
  require 'intrinio-sdk/models/api_response_crypto_exchanges'
44
+ require 'intrinio-sdk/models/api_response_crypto_force_index'
45
+ require 'intrinio-sdk/models/api_response_crypto_ichimoku_kinko_hyo'
46
+ require 'intrinio-sdk/models/api_response_crypto_keltner_channel'
47
+ require 'intrinio-sdk/models/api_response_crypto_know_sure_thing'
48
+ require 'intrinio-sdk/models/api_response_crypto_mass_index'
49
+ require 'intrinio-sdk/models/api_response_crypto_money_flow_index'
50
+ require 'intrinio-sdk/models/api_response_crypto_moving_average_convergence_divergence'
51
+ require 'intrinio-sdk/models/api_response_crypto_negative_volume_index'
52
+ require 'intrinio-sdk/models/api_response_crypto_on_balance_volume'
53
+ require 'intrinio-sdk/models/api_response_crypto_on_balance_volume_mean'
33
54
  require 'intrinio-sdk/models/api_response_crypto_pairs'
34
55
  require 'intrinio-sdk/models/api_response_crypto_prices'
56
+ require 'intrinio-sdk/models/api_response_crypto_relative_strength_index'
57
+ require 'intrinio-sdk/models/api_response_crypto_simple_moving_average'
35
58
  require 'intrinio-sdk/models/api_response_crypto_snapshot'
36
59
  require 'intrinio-sdk/models/api_response_crypto_stats'
60
+ require 'intrinio-sdk/models/api_response_crypto_stochastic_oscillator'
61
+ require 'intrinio-sdk/models/api_response_crypto_triple_exponential_average'
62
+ require 'intrinio-sdk/models/api_response_crypto_true_strength_index'
63
+ require 'intrinio-sdk/models/api_response_crypto_ultimate_oscillator'
64
+ require 'intrinio-sdk/models/api_response_crypto_volume_price_trend'
65
+ require 'intrinio-sdk/models/api_response_crypto_volume_weighted_average_price'
66
+ require 'intrinio-sdk/models/api_response_crypto_vortex_indicator'
67
+ require 'intrinio-sdk/models/api_response_crypto_williams_r'
37
68
  require 'intrinio-sdk/models/api_response_data_tags'
38
69
  require 'intrinio-sdk/models/api_response_data_tags_search'
39
70
  require 'intrinio-sdk/models/api_response_economic_index_historical_data'
@@ -94,6 +125,10 @@ require 'intrinio-sdk/models/api_response_security_volume_price_trend'
94
125
  require 'intrinio-sdk/models/api_response_security_volume_weighted_average_price'
95
126
  require 'intrinio-sdk/models/api_response_security_vortex_indicator'
96
127
  require 'intrinio-sdk/models/api_response_security_williams_r'
128
+ require 'intrinio-sdk/models/api_response_security_zacks_analyst_ratings'
129
+ require 'intrinio-sdk/models/api_response_security_zacks_analyst_ratings_snapshot'
130
+ require 'intrinio-sdk/models/api_response_security_zacks_eps_surprises'
131
+ require 'intrinio-sdk/models/api_response_security_zacks_sales_surprises'
97
132
  require 'intrinio-sdk/models/api_response_standardized_financials'
98
133
  require 'intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices'
99
134
  require 'intrinio-sdk/models/api_response_stock_exchange_securities'
@@ -103,6 +138,9 @@ require 'intrinio-sdk/models/api_response_stock_exchanges'
103
138
  require 'intrinio-sdk/models/api_response_stock_market_index_historical_data'
104
139
  require 'intrinio-sdk/models/api_response_stock_market_indices'
105
140
  require 'intrinio-sdk/models/api_response_stock_market_indices_search'
141
+ require 'intrinio-sdk/models/api_response_zacks_analyst_ratings'
142
+ require 'intrinio-sdk/models/api_response_zacks_eps_surprises'
143
+ require 'intrinio-sdk/models/api_response_zacks_sales_surprises'
106
144
  require 'intrinio-sdk/models/average_daily_trading_volume_technical_value'
107
145
  require 'intrinio-sdk/models/average_directional_index_technical_value'
108
146
  require 'intrinio-sdk/models/average_true_range_technical_value'
@@ -193,6 +231,13 @@ require 'intrinio-sdk/models/volume_price_trend_technical_value'
193
231
  require 'intrinio-sdk/models/volume_weighted_average_price_value'
194
232
  require 'intrinio-sdk/models/vortex_indicator_technical_value'
195
233
  require 'intrinio-sdk/models/williams_r_technical_value'
234
+ require 'intrinio-sdk/models/zacks_analyst_rating'
235
+ require 'intrinio-sdk/models/zacks_analyst_rating_snapshot'
236
+ require 'intrinio-sdk/models/zacks_analyst_rating_summary'
237
+ require 'intrinio-sdk/models/zacks_eps_surprise'
238
+ require 'intrinio-sdk/models/zacks_eps_surprise_summary'
239
+ require 'intrinio-sdk/models/zacks_sales_surprise'
240
+ require 'intrinio-sdk/models/zacks_sales_surprise_summary'
196
241
 
197
242
  # APIs
198
243
  require 'intrinio-sdk/api/company_api'
@@ -209,6 +254,7 @@ require 'intrinio-sdk/api/options_api'
209
254
  require 'intrinio-sdk/api/security_api'
210
255
  require 'intrinio-sdk/api/stock_exchange_api'
211
256
  require 'intrinio-sdk/api/technical_api'
257
+ require 'intrinio-sdk/api/zacks_api'
212
258
 
213
259
  module Intrinio
214
260
  class << self
@@ -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
@@ -29,7 +29,7 @@ module Intrinio
29
29
  # @option opts [String] :sector Industry sector
30
30
  # @option opts [String] :industry_category Industry category
31
31
  # @option opts [String] :industry_group Industry group
32
- # @option opts [Float] :page_size The number of results to return (default to 100)
32
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
33
33
  # @option opts [String] :next_page Gets the next page of data from a previous API call
34
34
  # @return [ApiResponseCompanies]
35
35
  def get_all_companies(opts = {})
@@ -46,7 +46,7 @@ module Intrinio
46
46
  # @option opts [String] :sector Industry sector
47
47
  # @option opts [String] :industry_category Industry category
48
48
  # @option opts [String] :industry_group Industry group
49
- # @option opts [Float] :page_size The number of results to return
49
+ # @option opts [Integer] :page_size The number of results to return
50
50
  # @option opts [String] :next_page Gets the next page of data from a previous API call
51
51
  # @return [Array<(ApiResponseCompanies, Fixnum, Hash)>] ApiResponseCompanies data, response status code and response headers
52
52
  def get_all_companies_with_http_info(opts = {})
@@ -101,7 +101,7 @@ module Intrinio
101
101
  # All News
102
102
  # Returns all News for all Companies
103
103
  # @param [Hash] opts the optional parameters
104
- # @option opts [Float] :page_size The number of results to return (default to 100)
104
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
105
105
  # @option opts [String] :next_page Gets the next page of data from a previous API call
106
106
  # @return [ApiResponseNews]
107
107
  def get_all_company_news(opts = {})
@@ -112,7 +112,7 @@ module Intrinio
112
112
  # All News
113
113
  # Returns all News for all Companies
114
114
  # @param [Hash] opts the optional parameters
115
- # @option opts [Float] :page_size The number of results to return
115
+ # @option opts [Integer] :page_size The number of results to return
116
116
  # @option opts [String] :next_page Gets the next page of data from a previous API call
117
117
  # @return [Array<(ApiResponseNews, Fixnum, Hash)>] ApiResponseNews data, response status code and response headers
118
118
  def get_all_company_news_with_http_info(opts = {})
@@ -209,9 +209,9 @@ module Intrinio
209
209
  end
210
210
 
211
211
  # Data Point (Number) for Company
212
- # $$v2_company_data_point_number_description$$
213
- # @param identifier $$v2_company_data_point_identifier_description$$
214
- # @param tag $$v2_company_data_point_item_description$$
212
+ # Returns a numeric value for the given `tag` for the Company with the given `identifier`
213
+ # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
214
+ # @param tag An Intrinio data tag ID or code (&lt;a href&#x3D;&#39;https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a&gt;)
215
215
  # @param [Hash] opts the optional parameters
216
216
  # @return [Float]
217
217
  def get_company_data_point_number(identifier, tag, opts = {})
@@ -220,9 +220,9 @@ module Intrinio
220
220
  end
221
221
 
222
222
  # Data Point (Number) for Company
223
- # $$v2_company_data_point_number_description$$
224
- # @param identifier $$v2_company_data_point_identifier_description$$
225
- # @param tag $$v2_company_data_point_item_description$$
223
+ # Returns a numeric value for the given &#x60;tag&#x60; for the Company with the given &#x60;identifier&#x60;
224
+ # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
225
+ # @param tag An Intrinio data tag ID or code (&lt;a href&#x3D;&#39;https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a&gt;)
226
226
  # @param [Hash] opts the optional parameters
227
227
  # @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
228
228
  def get_company_data_point_number_with_http_info(identifier, tag, opts = {})
@@ -268,9 +268,9 @@ module Intrinio
268
268
  end
269
269
 
270
270
  # Data Point (Text) for Company
271
- # $$v2_company_data_point_text_description$$
272
- # @param identifier $$v2_company_data_point_identifier_description$$
273
- # @param tag $$v2_company_data_point_item_description$$
271
+ # Returns a text value for the given `tag` for the Company with the given `identifier`
272
+ # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
273
+ # @param tag An Intrinio data tag ID or code (&lt;a href&#x3D;&#39;https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a&gt;)
274
274
  # @param [Hash] opts the optional parameters
275
275
  # @return [String]
276
276
  def get_company_data_point_text(identifier, tag, opts = {})
@@ -279,9 +279,9 @@ module Intrinio
279
279
  end
280
280
 
281
281
  # Data Point (Text) for Company
282
- # $$v2_company_data_point_text_description$$
283
- # @param identifier $$v2_company_data_point_identifier_description$$
284
- # @param tag $$v2_company_data_point_item_description$$
282
+ # Returns a text value for the given &#x60;tag&#x60; for the Company with the given &#x60;identifier&#x60;
283
+ # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
284
+ # @param tag An Intrinio data tag ID or code (&lt;a href&#x3D;&#39;https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a&gt;)
285
285
  # @param [Hash] opts the optional parameters
286
286
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
287
287
  def get_company_data_point_text_with_http_info(identifier, tag, opts = {})
@@ -330,7 +330,7 @@ module Intrinio
330
330
  # Returns a complete list of SEC filings for the Company with the given `identifier`
331
331
  # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
332
332
  # @param [Hash] opts the optional parameters
333
- # @option opts [Float] :page_size The number of results to return (default to 100)
333
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
334
334
  # @option opts [String] :next_page Gets the next page of data from a previous API call
335
335
  # @return [ApiResponseCompanyFilings]
336
336
  def get_company_filings(identifier, opts = {})
@@ -342,7 +342,7 @@ module Intrinio
342
342
  # Returns a complete list of SEC filings for the Company with the given &#x60;identifier&#x60;
343
343
  # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
344
344
  # @param [Hash] opts the optional parameters
345
- # @option opts [Float] :page_size The number of results to return
345
+ # @option opts [Integer] :page_size The number of results to return
346
346
  # @option opts [String] :next_page Gets the next page of data from a previous API call
347
347
  # @return [Array<(ApiResponseCompanyFilings, Fixnum, Hash)>] ApiResponseCompanyFilings data, response status code and response headers
348
348
  def get_company_filings_with_http_info(identifier, opts = {})
@@ -401,7 +401,7 @@ module Intrinio
401
401
  # @option opts [String] :type Only of the given type
402
402
  # @option opts [Date] :start_date Only on or after the given date
403
403
  # @option opts [Date] :end_date Only on or before the given date
404
- # @option opts [Float] :page_size The number of results to return (default to 100)
404
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
405
405
  # @option opts [String] :next_page Gets the next page of data from a previous API call
406
406
  # @return [ApiResponseCompanyFundamentals]
407
407
  def get_company_fundamentals(identifier, opts = {})
@@ -421,7 +421,7 @@ module Intrinio
421
421
  # @option opts [String] :type Only of the given type
422
422
  # @option opts [Date] :start_date Only on or after the given date
423
423
  # @option opts [Date] :end_date Only on or before the given date
424
- # @option opts [Float] :page_size The number of results to return
424
+ # @option opts [Integer] :page_size The number of results to return
425
425
  # @option opts [String] :next_page Gets the next page of data from a previous API call
426
426
  # @return [Array<(ApiResponseCompanyFundamentals, Fixnum, Hash)>] ApiResponseCompanyFundamentals data, response status code and response headers
427
427
  def get_company_fundamentals_with_http_info(identifier, opts = {})
@@ -483,16 +483,16 @@ module Intrinio
483
483
  end
484
484
 
485
485
  # Historical Data for Company
486
- # $$v2_company_historical_data_description$$
487
- # @param identifier $$v2_company_historical_data_identifier_description$$
488
- # @param tag $$v2_company_historical_data_item_description$$
486
+ # Returns historical values for the given `tag` and the Company with the given `identifier`
487
+ # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
488
+ # @param tag An Intrinio data tag ID or code (&lt;a href&#x3D;&#39;https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a&gt;)
489
489
  # @param [Hash] opts the optional parameters
490
490
  # @option opts [String] :frequency Return historical data in the given frequency (default to daily)
491
491
  # @option opts [String] :type Filter by type, when applicable
492
492
  # @option opts [Date] :start_date Get historical data on or after this date
493
493
  # @option opts [Date] :end_date Get historical data on or before this date
494
494
  # @option opts [String] :sort_order Sort by date &#x60;asc&#x60; or &#x60;desc&#x60; (default to desc)
495
- # @option opts [Float] :page_size The number of results to return (default to 100)
495
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
496
496
  # @option opts [String] :next_page Gets the next page of data from a previous API call
497
497
  # @return [ApiResponseCompanyHistoricalData]
498
498
  def get_company_historical_data(identifier, tag, opts = {})
@@ -501,16 +501,16 @@ module Intrinio
501
501
  end
502
502
 
503
503
  # Historical Data for Company
504
- # $$v2_company_historical_data_description$$
505
- # @param identifier $$v2_company_historical_data_identifier_description$$
506
- # @param tag $$v2_company_historical_data_item_description$$
504
+ # Returns historical values for the given &#x60;tag&#x60; and the Company with the given &#x60;identifier&#x60;
505
+ # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
506
+ # @param tag An Intrinio data tag ID or code (&lt;a href&#x3D;&#39;https://data.intrinio.com/data-tags&#39;&gt;reference&lt;/a&gt;)
507
507
  # @param [Hash] opts the optional parameters
508
508
  # @option opts [String] :frequency Return historical data in the given frequency
509
509
  # @option opts [String] :type Filter by type, when applicable
510
510
  # @option opts [Date] :start_date Get historical data on or after this date
511
511
  # @option opts [Date] :end_date Get historical data on or before this date
512
512
  # @option opts [String] :sort_order Sort by date &#x60;asc&#x60; or &#x60;desc&#x60;
513
- # @option opts [Float] :page_size The number of results to return
513
+ # @option opts [Integer] :page_size The number of results to return
514
514
  # @option opts [String] :next_page Gets the next page of data from a previous API call
515
515
  # @return [Array<(ApiResponseCompanyHistoricalData, Fixnum, Hash)>] ApiResponseCompanyHistoricalData data, response status code and response headers
516
516
  def get_company_historical_data_with_http_info(identifier, tag, opts = {})
@@ -576,7 +576,7 @@ module Intrinio
576
576
  # Returns news for the Company with the given `identifier`
577
577
  # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
578
578
  # @param [Hash] opts the optional parameters
579
- # @option opts [Float] :page_size The number of results to return (default to 100)
579
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
580
580
  # @option opts [String] :next_page Gets the next page of data from a previous API call
581
581
  # @return [ApiResponseCompanyNews]
582
582
  def get_company_news(identifier, opts = {})
@@ -588,7 +588,7 @@ module Intrinio
588
588
  # Returns news for the Company with the given &#x60;identifier&#x60;
589
589
  # @param identifier A Company identifier (Ticker, CIK, LEI, Intrinio ID)
590
590
  # @param [Hash] opts the optional parameters
591
- # @option opts [Float] :page_size The number of results to return
591
+ # @option opts [Integer] :page_size The number of results to return
592
592
  # @option opts [String] :next_page Gets the next page of data from a previous API call
593
593
  # @return [Array<(ApiResponseCompanyNews, Fixnum, Hash)>] ApiResponseCompanyNews data, response status code and response headers
594
594
  def get_company_news_with_http_info(identifier, opts = {})
@@ -774,7 +774,7 @@ module Intrinio
774
774
  # Searches for Companies matching the text `query`
775
775
  # @param query Search parameters
776
776
  # @param [Hash] opts the optional parameters
777
- # @option opts [Float] :page_size The number of results to return (default to 100)
777
+ # @option opts [Integer] :page_size The number of results to return (default to 100)
778
778
  # @return [ApiResponseCompaniesSearch]
779
779
  def search_companies(query, opts = {})
780
780
  data, _status_code, _headers = search_companies_with_http_info(query, opts)
@@ -785,7 +785,7 @@ module Intrinio
785
785
  # Searches for Companies matching the text &#x60;query&#x60;
786
786
  # @param query Search parameters
787
787
  # @param [Hash] opts the optional parameters
788
- # @option opts [Float] :page_size The number of results to return
788
+ # @option opts [Integer] :page_size The number of results to return
789
789
  # @return [Array<(ApiResponseCompaniesSearch, Fixnum, Hash)>] ApiResponseCompaniesSearch data, response status code and response headers
790
790
  def search_companies_with_http_info(query, opts = {})
791
791
  if @api_client.config.debugging
@@ -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
@@ -244,7 +244,7 @@ module Intrinio
244
244
  # Crypto Exchanges
245
245
  # Returns a list of Crypto Exchanges for which prices are available.
246
246
  # @param [Hash] opts the optional parameters
247
- # @option opts [String] :pair Returns Crypto Currencies traded on the given Crypto Exchange.
247
+ # @option opts [String] :pair Filter exchanges based on whether or not prices are available on the exchange for the crypto currency pair.
248
248
  # @return [ApiResponseCryptoExchanges]
249
249
  def get_crypto_exchanges(opts = {})
250
250
  data, _status_code, _headers = get_crypto_exchanges_with_http_info(opts)
@@ -254,7 +254,7 @@ module Intrinio
254
254
  # Crypto Exchanges
255
255
  # Returns a list of Crypto Exchanges for which prices are available.
256
256
  # @param [Hash] opts the optional parameters
257
- # @option opts [String] :pair Returns Crypto Currencies traded on the given Crypto Exchange.
257
+ # @option opts [String] :pair Filter exchanges based on whether or not prices are available on the exchange for the crypto currency pair.
258
258
  # @return [Array<(ApiResponseCryptoExchanges, Fixnum, Hash)>] ApiResponseCryptoExchanges data, response status code and response headers
259
259
  def get_crypto_exchanges_with_http_info(opts = {})
260
260
  if @api_client.config.debugging
@@ -354,6 +354,3105 @@ module Intrinio
354
354
  return data, status_code, headers
355
355
  end
356
356
 
357
+ # Accumulation/Distribution Index
358
+ # Returns the Accumulation/Distribution Index values of Crypto Currency Prices for a Crypto Currency Pair
359
+ # @param [Hash] opts the optional parameters
360
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
361
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
362
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
363
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
364
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
365
+ # @option opts [Date] :start_date Return technicals on or after this date.
366
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
367
+ # @option opts [Date] :end_date Return technicals on or before this date.
368
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
369
+ # @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)
370
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
371
+ # @return [ApiResponseCryptoAccumulationDistributionIndex]
372
+ def get_crypto_price_technicals_adi(opts = {})
373
+ data, _status_code, _headers = get_crypto_price_technicals_adi_with_http_info(opts)
374
+ return data
375
+ end
376
+
377
+ # Accumulation/Distribution Index
378
+ # Returns the Accumulation/Distribution Index values of Crypto Currency Prices for a Crypto Currency Pair
379
+ # @param [Hash] opts the optional parameters
380
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
381
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
382
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
383
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
384
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
385
+ # @option opts [Date] :start_date Return technicals on or after this date.
386
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
387
+ # @option opts [Date] :end_date Return technicals on or before this date.
388
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
389
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
390
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
391
+ # @return [Array<(ApiResponseCryptoAccumulationDistributionIndex, Fixnum, Hash)>] ApiResponseCryptoAccumulationDistributionIndex data, response status code and response headers
392
+ def get_crypto_price_technicals_adi_with_http_info(opts = {})
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_adi ..."
395
+ end
396
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
397
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
398
+ end
399
+ 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'])
400
+ 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'
401
+ end
402
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
403
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_adi, must be smaller than or equal to 10000.'
404
+ end
405
+
406
+ # resource path
407
+ local_var_path = "/crypto/prices/technicals/adi"
408
+
409
+ # query parameters
410
+ query_params = {}
411
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
412
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
413
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
414
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
415
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
416
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
417
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
418
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
419
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
420
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
421
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
422
+
423
+ # header parameters
424
+ header_params = {}
425
+ # HTTP header 'Accept' (if needed)
426
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
427
+
428
+ # form parameters
429
+ form_params = {}
430
+
431
+ # http body (model)
432
+ post_body = nil
433
+ auth_names = ['ApiKeyAuth']
434
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
435
+ :header_params => header_params,
436
+ :query_params => query_params,
437
+ :form_params => form_params,
438
+ :body => post_body,
439
+ :auth_names => auth_names,
440
+ :return_type => 'ApiResponseCryptoAccumulationDistributionIndex')
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_adi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
443
+ end
444
+ return data, status_code, headers
445
+ end
446
+
447
+ # Average Daily Trading Volume
448
+ # Returns the Average Daily Trading Volume values of Crypto Currency Prices for a Crypto Currency Pair
449
+ # @param [Hash] opts the optional parameters
450
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
451
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
452
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
453
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Daily Trading Volume. (default to 22)
454
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
455
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
456
+ # @option opts [Date] :start_date Return technicals on or after this date.
457
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
458
+ # @option opts [Date] :end_date Return technicals on or before this date.
459
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
460
+ # @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)
461
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
462
+ # @return [ApiResponseCryptoAverageDailyTradingVolume]
463
+ def get_crypto_price_technicals_adtv(opts = {})
464
+ data, _status_code, _headers = get_crypto_price_technicals_adtv_with_http_info(opts)
465
+ return data
466
+ end
467
+
468
+ # Average Daily Trading Volume
469
+ # Returns the Average Daily Trading Volume values of Crypto Currency Prices for a Crypto Currency Pair
470
+ # @param [Hash] opts the optional parameters
471
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
472
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
473
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
474
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Daily Trading Volume.
475
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
476
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
477
+ # @option opts [Date] :start_date Return technicals on or after this date.
478
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
479
+ # @option opts [Date] :end_date Return technicals on or before this date.
480
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
481
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
482
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
483
+ # @return [Array<(ApiResponseCryptoAverageDailyTradingVolume, Fixnum, Hash)>] ApiResponseCryptoAverageDailyTradingVolume data, response status code and response headers
484
+ def get_crypto_price_technicals_adtv_with_http_info(opts = {})
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_adtv ..."
487
+ end
488
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
489
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_adtv, must be greater than or equal to 5.'
490
+ end
491
+
492
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
493
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
494
+ end
495
+ 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'])
496
+ 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'
497
+ end
498
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
499
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_adtv, must be smaller than or equal to 10000.'
500
+ end
501
+
502
+ # resource path
503
+ local_var_path = "/crypto/prices/technicals/adtv"
504
+
505
+ # query parameters
506
+ query_params = {}
507
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
508
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
509
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
510
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
511
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
512
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
513
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
514
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
515
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
516
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
517
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
518
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
519
+
520
+ # header parameters
521
+ header_params = {}
522
+ # HTTP header 'Accept' (if needed)
523
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
524
+
525
+ # form parameters
526
+ form_params = {}
527
+
528
+ # http body (model)
529
+ post_body = nil
530
+ auth_names = ['ApiKeyAuth']
531
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
532
+ :header_params => header_params,
533
+ :query_params => query_params,
534
+ :form_params => form_params,
535
+ :body => post_body,
536
+ :auth_names => auth_names,
537
+ :return_type => 'ApiResponseCryptoAverageDailyTradingVolume')
538
+ if @api_client.config.debugging
539
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_adtv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
+ end
541
+ return data, status_code, headers
542
+ end
543
+
544
+ # Average Directional Index
545
+ # Returns the Average Directional Index values of Crypto Currency Prices for a Crypto Currency Pair
546
+ # @param [Hash] opts the optional parameters
547
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
548
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
549
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
550
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Directional Index. (default to 22)
551
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
552
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
553
+ # @option opts [Date] :start_date Return technicals on or after this date.
554
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
555
+ # @option opts [Date] :end_date Return technicals on or before this date.
556
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
557
+ # @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)
558
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
559
+ # @return [ApiResponseCryptoAverageDirectionalIndex]
560
+ def get_crypto_price_technicals_adx(opts = {})
561
+ data, _status_code, _headers = get_crypto_price_technicals_adx_with_http_info(opts)
562
+ return data
563
+ end
564
+
565
+ # Average Directional Index
566
+ # Returns the Average Directional Index values of Crypto Currency Prices for a Crypto Currency Pair
567
+ # @param [Hash] opts the optional parameters
568
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
569
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
570
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
571
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average Directional Index.
572
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
573
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
574
+ # @option opts [Date] :start_date Return technicals on or after this date.
575
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
576
+ # @option opts [Date] :end_date Return technicals on or before this date.
577
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
578
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
579
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
580
+ # @return [Array<(ApiResponseCryptoAverageDirectionalIndex, Fixnum, Hash)>] ApiResponseCryptoAverageDirectionalIndex data, response status code and response headers
581
+ def get_crypto_price_technicals_adx_with_http_info(opts = {})
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_adx ..."
584
+ end
585
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
586
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_adx, must be greater than or equal to 5.'
587
+ end
588
+
589
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
590
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
591
+ end
592
+ 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'])
593
+ 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'
594
+ end
595
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
596
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_adx, must be smaller than or equal to 10000.'
597
+ end
598
+
599
+ # resource path
600
+ local_var_path = "/crypto/prices/technicals/adx"
601
+
602
+ # query parameters
603
+ query_params = {}
604
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
605
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
606
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
607
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
608
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
609
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
610
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
611
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
612
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
613
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
614
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
615
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
616
+
617
+ # header parameters
618
+ header_params = {}
619
+ # HTTP header 'Accept' (if needed)
620
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
621
+
622
+ # form parameters
623
+ form_params = {}
624
+
625
+ # http body (model)
626
+ post_body = nil
627
+ auth_names = ['ApiKeyAuth']
628
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
629
+ :header_params => header_params,
630
+ :query_params => query_params,
631
+ :form_params => form_params,
632
+ :body => post_body,
633
+ :auth_names => auth_names,
634
+ :return_type => 'ApiResponseCryptoAverageDirectionalIndex')
635
+ if @api_client.config.debugging
636
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_adx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
637
+ end
638
+ return data, status_code, headers
639
+ end
640
+
641
+ # Awesome Oscillator
642
+ # Returns the Awesome Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
643
+ # @param [Hash] opts the optional parameters
644
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
645
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
646
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
647
+ # @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)
648
+ # @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)
649
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
650
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
651
+ # @option opts [Date] :start_date Return technicals on or after this date.
652
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
653
+ # @option opts [Date] :end_date Return technicals on or before this date.
654
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
655
+ # @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)
656
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
657
+ # @return [ApiResponseCryptoAwesomeOscillator]
658
+ def get_crypto_price_technicals_ao(opts = {})
659
+ data, _status_code, _headers = get_crypto_price_technicals_ao_with_http_info(opts)
660
+ return data
661
+ end
662
+
663
+ # Awesome Oscillator
664
+ # Returns the Awesome Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
665
+ # @param [Hash] opts the optional parameters
666
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
667
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
668
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
669
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate short period Simple Moving Average of the Awesome Oscillator.
670
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate long period Simple Moving Average of the Awesome Oscillator.
671
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
672
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
673
+ # @option opts [Date] :start_date Return technicals on or after this date.
674
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
675
+ # @option opts [Date] :end_date Return technicals on or before this date.
676
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
677
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
678
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
679
+ # @return [Array<(ApiResponseCryptoAwesomeOscillator, Fixnum, Hash)>] ApiResponseCryptoAwesomeOscillator data, response status code and response headers
680
+ def get_crypto_price_technicals_ao_with_http_info(opts = {})
681
+ if @api_client.config.debugging
682
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_ao ..."
683
+ end
684
+ if @api_client.config.client_side_validation && !opts[:'long_period'].nil? && opts[:'long_period'] < 5
685
+ fail ArgumentError, 'invalid value for "opts[:"long_period"]" when calling CryptoApi.get_crypto_price_technicals_ao, must be greater than or equal to 5.'
686
+ end
687
+
688
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
689
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
690
+ end
691
+ 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'])
692
+ 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'
693
+ end
694
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
695
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_ao, must be smaller than or equal to 10000.'
696
+ end
697
+
698
+ # resource path
699
+ local_var_path = "/crypto/prices/technicals/ao"
700
+
701
+ # query parameters
702
+ query_params = {}
703
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
704
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
705
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
706
+ query_params[:'short_period'] = opts[:'short_period'] if !opts[:'short_period'].nil?
707
+ query_params[:'long_period'] = opts[:'long_period'] if !opts[:'long_period'].nil?
708
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
709
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
710
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
711
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
712
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
713
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
714
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
715
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
716
+
717
+ # header parameters
718
+ header_params = {}
719
+ # HTTP header 'Accept' (if needed)
720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
721
+
722
+ # form parameters
723
+ form_params = {}
724
+
725
+ # http body (model)
726
+ post_body = nil
727
+ auth_names = ['ApiKeyAuth']
728
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
729
+ :header_params => header_params,
730
+ :query_params => query_params,
731
+ :form_params => form_params,
732
+ :body => post_body,
733
+ :auth_names => auth_names,
734
+ :return_type => 'ApiResponseCryptoAwesomeOscillator')
735
+ if @api_client.config.debugging
736
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_ao\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
737
+ end
738
+ return data, status_code, headers
739
+ end
740
+
741
+ # Average True Range
742
+ # Returns the Average True Range values of Crypto Currency Prices for Crypto Currency Pair
743
+ # @param [Hash] opts the optional parameters
744
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
745
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
746
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
747
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average True Range. (default to 22)
748
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
749
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
750
+ # @option opts [Date] :start_date Return technicals on or after this date.
751
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
752
+ # @option opts [Date] :end_date Return technicals on or before this date.
753
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
754
+ # @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)
755
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
756
+ # @return [ApiResponseCryptoAverageTrueRange]
757
+ def get_crypto_price_technicals_atr(opts = {})
758
+ data, _status_code, _headers = get_crypto_price_technicals_atr_with_http_info(opts)
759
+ return data
760
+ end
761
+
762
+ # Average True Range
763
+ # Returns the Average True Range values of Crypto Currency Prices for Crypto Currency Pair
764
+ # @param [Hash] opts the optional parameters
765
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
766
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
767
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
768
+ # @option opts [Integer] :period The number of observations, per period, to calculate Average True Range.
769
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
770
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
771
+ # @option opts [Date] :start_date Return technicals on or after this date.
772
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
773
+ # @option opts [Date] :end_date Return technicals on or before this date.
774
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
775
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
776
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
777
+ # @return [Array<(ApiResponseCryptoAverageTrueRange, Fixnum, Hash)>] ApiResponseCryptoAverageTrueRange data, response status code and response headers
778
+ def get_crypto_price_technicals_atr_with_http_info(opts = {})
779
+ if @api_client.config.debugging
780
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_atr ..."
781
+ end
782
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
783
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_atr, must be greater than or equal to 5.'
784
+ end
785
+
786
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
787
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
788
+ end
789
+ 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'])
790
+ 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'
791
+ end
792
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
793
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_atr, must be smaller than or equal to 10000.'
794
+ end
795
+
796
+ # resource path
797
+ local_var_path = "/crypto/prices/technicals/atr"
798
+
799
+ # query parameters
800
+ query_params = {}
801
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
802
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
803
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
804
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
805
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
806
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
807
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
808
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
809
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
810
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
811
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
812
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
813
+
814
+ # header parameters
815
+ header_params = {}
816
+ # HTTP header 'Accept' (if needed)
817
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
818
+
819
+ # form parameters
820
+ form_params = {}
821
+
822
+ # http body (model)
823
+ post_body = nil
824
+ auth_names = ['ApiKeyAuth']
825
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
826
+ :header_params => header_params,
827
+ :query_params => query_params,
828
+ :form_params => form_params,
829
+ :body => post_body,
830
+ :auth_names => auth_names,
831
+ :return_type => 'ApiResponseCryptoAverageTrueRange')
832
+ if @api_client.config.debugging
833
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_atr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
834
+ end
835
+ return data, status_code, headers
836
+ end
837
+
838
+ # Bollinger Bands
839
+ # Returns the Bollinger Bands values of Crypto Currency Prices for a Crypto Currency Pair
840
+ # @param [Hash] opts the optional parameters
841
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
842
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
843
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
844
+ # @option opts [Integer] :period The number of observations, per period, to calculate Bollinger Bands. (default to 20)
845
+ # @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)
846
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Bollinger Bands. (default to close)
847
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
848
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
849
+ # @option opts [Date] :start_date Return technicals on or after this date.
850
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
851
+ # @option opts [Date] :end_date Return technicals on or before this date.
852
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
853
+ # @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)
854
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
855
+ # @return [ApiResponseCryptoBollingerBands]
856
+ def get_crypto_price_technicals_bb(opts = {})
857
+ data, _status_code, _headers = get_crypto_price_technicals_bb_with_http_info(opts)
858
+ return data
859
+ end
860
+
861
+ # Bollinger Bands
862
+ # Returns the Bollinger Bands values of Crypto Currency Prices for a Crypto Currency Pair
863
+ # @param [Hash] opts the optional parameters
864
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
865
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
866
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
867
+ # @option opts [Integer] :period The number of observations, per period, to calculate Bollinger Bands.
868
+ # @option opts [Float] :standard_deviations The number of standard deviations to calculate the upper and lower bands of the Bollinger Bands.
869
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Bollinger Bands.
870
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
871
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
872
+ # @option opts [Date] :start_date Return technicals on or after this date.
873
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
874
+ # @option opts [Date] :end_date Return technicals on or before this date.
875
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
876
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
877
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
878
+ # @return [Array<(ApiResponseCryptoBollingerBands, Fixnum, Hash)>] ApiResponseCryptoBollingerBands data, response status code and response headers
879
+ def get_crypto_price_technicals_bb_with_http_info(opts = {})
880
+ if @api_client.config.debugging
881
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_bb ..."
882
+ end
883
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
884
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_bb, must be greater than or equal to 5.'
885
+ end
886
+
887
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
888
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
889
+ end
890
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
891
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
892
+ end
893
+ 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'])
894
+ 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'
895
+ end
896
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
897
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_bb, must be smaller than or equal to 10000.'
898
+ end
899
+
900
+ # resource path
901
+ local_var_path = "/crypto/prices/technicals/bb"
902
+
903
+ # query parameters
904
+ query_params = {}
905
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
906
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
907
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
908
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
909
+ query_params[:'standard_deviations'] = opts[:'standard_deviations'] if !opts[:'standard_deviations'].nil?
910
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
911
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
912
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
913
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
914
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
915
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
916
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
917
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
918
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
919
+
920
+ # header parameters
921
+ header_params = {}
922
+ # HTTP header 'Accept' (if needed)
923
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
924
+
925
+ # form parameters
926
+ form_params = {}
927
+
928
+ # http body (model)
929
+ post_body = nil
930
+ auth_names = ['ApiKeyAuth']
931
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
932
+ :header_params => header_params,
933
+ :query_params => query_params,
934
+ :form_params => form_params,
935
+ :body => post_body,
936
+ :auth_names => auth_names,
937
+ :return_type => 'ApiResponseCryptoBollingerBands')
938
+ if @api_client.config.debugging
939
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_bb\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
940
+ end
941
+ return data, status_code, headers
942
+ end
943
+
944
+ # Commodity Channel Index
945
+ # Returns the Commodity Channel Index values of Crypto Currency Prices for Crypto Currency Pair
946
+ # @param [Hash] opts the optional parameters
947
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
948
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
949
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
950
+ # @option opts [Integer] :period The number of observations, per period, to calculate Commodity Channel Index. (default to 20)
951
+ # @option opts [Float] :constant The number of observations, per period, to calculate Commodity Channel Index. (default to 0.015)
952
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
953
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
954
+ # @option opts [Date] :start_date Return technicals on or after this date.
955
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
956
+ # @option opts [Date] :end_date Return technicals on or before this date.
957
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
958
+ # @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)
959
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
960
+ # @return [ApiResponseCryptoCommodityChannelIndex]
961
+ def get_crypto_price_technicals_cci(opts = {})
962
+ data, _status_code, _headers = get_crypto_price_technicals_cci_with_http_info(opts)
963
+ return data
964
+ end
965
+
966
+ # Commodity Channel Index
967
+ # Returns the Commodity Channel Index values of Crypto Currency Prices for Crypto Currency Pair
968
+ # @param [Hash] opts the optional parameters
969
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
970
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
971
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
972
+ # @option opts [Integer] :period The number of observations, per period, to calculate Commodity Channel Index.
973
+ # @option opts [Float] :constant The number of observations, per period, to calculate Commodity Channel Index.
974
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
975
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
976
+ # @option opts [Date] :start_date Return technicals on or after this date.
977
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
978
+ # @option opts [Date] :end_date Return technicals on or before this date.
979
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
980
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
981
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
982
+ # @return [Array<(ApiResponseCryptoCommodityChannelIndex, Fixnum, Hash)>] ApiResponseCryptoCommodityChannelIndex data, response status code and response headers
983
+ def get_crypto_price_technicals_cci_with_http_info(opts = {})
984
+ if @api_client.config.debugging
985
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_cci ..."
986
+ end
987
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
988
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_cci, must be greater than or equal to 5.'
989
+ end
990
+
991
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
992
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
993
+ end
994
+ 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'])
995
+ 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'
996
+ end
997
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
998
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_cci, must be smaller than or equal to 10000.'
999
+ end
1000
+
1001
+ # resource path
1002
+ local_var_path = "/crypto/prices/technicals/cci"
1003
+
1004
+ # query parameters
1005
+ query_params = {}
1006
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1007
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1008
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1009
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1010
+ query_params[:'constant'] = opts[:'constant'] if !opts[:'constant'].nil?
1011
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1012
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1013
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1014
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1015
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1016
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1017
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1018
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1019
+
1020
+ # header parameters
1021
+ header_params = {}
1022
+ # HTTP header 'Accept' (if needed)
1023
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1024
+
1025
+ # form parameters
1026
+ form_params = {}
1027
+
1028
+ # http body (model)
1029
+ post_body = nil
1030
+ auth_names = ['ApiKeyAuth']
1031
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1032
+ :header_params => header_params,
1033
+ :query_params => query_params,
1034
+ :form_params => form_params,
1035
+ :body => post_body,
1036
+ :auth_names => auth_names,
1037
+ :return_type => 'ApiResponseCryptoCommodityChannelIndex')
1038
+ if @api_client.config.debugging
1039
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_cci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1040
+ end
1041
+ return data, status_code, headers
1042
+ end
1043
+
1044
+ # Chaikin Money Flow
1045
+ # Returns the Chaikin Money Flow values of Crypto Currency Prices for a Crypto Currency Pair
1046
+ # @param [Hash] opts the optional parameters
1047
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1048
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1049
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1050
+ # @option opts [Integer] :period The number of observations, per period, to calculate Chaikin Money Flow. (default to 20)
1051
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1052
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1053
+ # @option opts [Date] :start_date Return technicals on or after this date.
1054
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1055
+ # @option opts [Date] :end_date Return technicals on or before this date.
1056
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1057
+ # @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)
1058
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1059
+ # @return [ApiResponseCryptoChaikinMoneyFlow]
1060
+ def get_crypto_price_technicals_cmf(opts = {})
1061
+ data, _status_code, _headers = get_crypto_price_technicals_cmf_with_http_info(opts)
1062
+ return data
1063
+ end
1064
+
1065
+ # Chaikin Money Flow
1066
+ # Returns the Chaikin Money Flow values of Crypto Currency Prices for a Crypto Currency Pair
1067
+ # @param [Hash] opts the optional parameters
1068
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1069
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1070
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1071
+ # @option opts [Integer] :period The number of observations, per period, to calculate Chaikin Money Flow.
1072
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1073
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1074
+ # @option opts [Date] :start_date Return technicals on or after this date.
1075
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1076
+ # @option opts [Date] :end_date Return technicals on or before this date.
1077
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1078
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1079
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1080
+ # @return [Array<(ApiResponseCryptoChaikinMoneyFlow, Fixnum, Hash)>] ApiResponseCryptoChaikinMoneyFlow data, response status code and response headers
1081
+ def get_crypto_price_technicals_cmf_with_http_info(opts = {})
1082
+ if @api_client.config.debugging
1083
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_cmf ..."
1084
+ end
1085
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1086
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_cmf, must be greater than or equal to 5.'
1087
+ end
1088
+
1089
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1090
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1091
+ end
1092
+ 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'])
1093
+ 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'
1094
+ end
1095
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1096
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_cmf, must be smaller than or equal to 10000.'
1097
+ end
1098
+
1099
+ # resource path
1100
+ local_var_path = "/crypto/prices/technicals/cmf"
1101
+
1102
+ # query parameters
1103
+ query_params = {}
1104
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1105
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1106
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1107
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1108
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1109
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1110
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1111
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1112
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1113
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1114
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1115
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1116
+
1117
+ # header parameters
1118
+ header_params = {}
1119
+ # HTTP header 'Accept' (if needed)
1120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1121
+
1122
+ # form parameters
1123
+ form_params = {}
1124
+
1125
+ # http body (model)
1126
+ post_body = nil
1127
+ auth_names = ['ApiKeyAuth']
1128
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1129
+ :header_params => header_params,
1130
+ :query_params => query_params,
1131
+ :form_params => form_params,
1132
+ :body => post_body,
1133
+ :auth_names => auth_names,
1134
+ :return_type => 'ApiResponseCryptoChaikinMoneyFlow')
1135
+ if @api_client.config.debugging
1136
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_cmf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1137
+ end
1138
+ return data, status_code, headers
1139
+ end
1140
+
1141
+ # Donchian Channel
1142
+ # Returns the Donchian Channel values of Crypto Currency Prices for a Crypto Currency Pair
1143
+ # @param [Hash] opts the optional parameters
1144
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1145
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1146
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1147
+ # @option opts [Integer] :period The number of observations, per period, to calculate Donchian Channel. (default to 20)
1148
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Donchian Channel. (default to close)
1149
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1150
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1151
+ # @option opts [Date] :start_date Return technicals on or after this date.
1152
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1153
+ # @option opts [Date] :end_date Return technicals on or before this date.
1154
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1155
+ # @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)
1156
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1157
+ # @return [ApiResponseCryptoDonchianChannel]
1158
+ def get_crypto_price_technicals_dc(opts = {})
1159
+ data, _status_code, _headers = get_crypto_price_technicals_dc_with_http_info(opts)
1160
+ return data
1161
+ end
1162
+
1163
+ # Donchian Channel
1164
+ # Returns the Donchian Channel values of Crypto Currency Prices for a Crypto Currency Pair
1165
+ # @param [Hash] opts the optional parameters
1166
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1167
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1168
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1169
+ # @option opts [Integer] :period The number of observations, per period, to calculate Donchian Channel.
1170
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Donchian Channel.
1171
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1172
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1173
+ # @option opts [Date] :start_date Return technicals on or after this date.
1174
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1175
+ # @option opts [Date] :end_date Return technicals on or before this date.
1176
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1177
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1178
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1179
+ # @return [Array<(ApiResponseCryptoDonchianChannel, Fixnum, Hash)>] ApiResponseCryptoDonchianChannel data, response status code and response headers
1180
+ def get_crypto_price_technicals_dc_with_http_info(opts = {})
1181
+ if @api_client.config.debugging
1182
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_dc ..."
1183
+ end
1184
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1185
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_dc, must be greater than or equal to 5.'
1186
+ end
1187
+
1188
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1189
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1190
+ end
1191
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1192
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1193
+ end
1194
+ 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'])
1195
+ 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'
1196
+ end
1197
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1198
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_dc, must be smaller than or equal to 10000.'
1199
+ end
1200
+
1201
+ # resource path
1202
+ local_var_path = "/crypto/prices/technicals/dc"
1203
+
1204
+ # query parameters
1205
+ query_params = {}
1206
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1207
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1208
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1209
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1210
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1211
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1212
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1213
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1214
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1215
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1216
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1217
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1218
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1219
+
1220
+ # header parameters
1221
+ header_params = {}
1222
+ # HTTP header 'Accept' (if needed)
1223
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1224
+
1225
+ # form parameters
1226
+ form_params = {}
1227
+
1228
+ # http body (model)
1229
+ post_body = nil
1230
+ auth_names = ['ApiKeyAuth']
1231
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1232
+ :header_params => header_params,
1233
+ :query_params => query_params,
1234
+ :form_params => form_params,
1235
+ :body => post_body,
1236
+ :auth_names => auth_names,
1237
+ :return_type => 'ApiResponseCryptoDonchianChannel')
1238
+ if @api_client.config.debugging
1239
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_dc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1240
+ end
1241
+ return data, status_code, headers
1242
+ end
1243
+
1244
+ # Detrended Price Oscillator
1245
+ # Returns the Detrended Price Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
1246
+ # @param [Hash] opts the optional parameters
1247
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1248
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1249
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1250
+ # @option opts [Integer] :period The number of observations, per period, to calculate Detrended Price Oscillator. (default to 20)
1251
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Detrended Price Oscillator. (default to close)
1252
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1253
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1254
+ # @option opts [Date] :start_date Return technicals on or after this date.
1255
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1256
+ # @option opts [Date] :end_date Return technicals on or before this date.
1257
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1258
+ # @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)
1259
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1260
+ # @return [ApiResponseCryptoDetrendedPriceOscillator]
1261
+ def get_crypto_price_technicals_dpo(opts = {})
1262
+ data, _status_code, _headers = get_crypto_price_technicals_dpo_with_http_info(opts)
1263
+ return data
1264
+ end
1265
+
1266
+ # Detrended Price Oscillator
1267
+ # Returns the Detrended Price Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
1268
+ # @param [Hash] opts the optional parameters
1269
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1270
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1271
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1272
+ # @option opts [Integer] :period The number of observations, per period, to calculate Detrended Price Oscillator.
1273
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Detrended Price Oscillator.
1274
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1275
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1276
+ # @option opts [Date] :start_date Return technicals on or after this date.
1277
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1278
+ # @option opts [Date] :end_date Return technicals on or before this date.
1279
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1280
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1281
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1282
+ # @return [Array<(ApiResponseCryptoDetrendedPriceOscillator, Fixnum, Hash)>] ApiResponseCryptoDetrendedPriceOscillator data, response status code and response headers
1283
+ def get_crypto_price_technicals_dpo_with_http_info(opts = {})
1284
+ if @api_client.config.debugging
1285
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_dpo ..."
1286
+ end
1287
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1288
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1289
+ end
1290
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1291
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1292
+ end
1293
+ 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'])
1294
+ 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'
1295
+ end
1296
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1297
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_dpo, must be smaller than or equal to 10000.'
1298
+ end
1299
+
1300
+ # resource path
1301
+ local_var_path = "/crypto/prices/technicals/dpo"
1302
+
1303
+ # query parameters
1304
+ query_params = {}
1305
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1306
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1307
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1308
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1309
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1310
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1311
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1312
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1313
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1314
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1315
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1316
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1317
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1318
+
1319
+ # header parameters
1320
+ header_params = {}
1321
+ # HTTP header 'Accept' (if needed)
1322
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1323
+
1324
+ # form parameters
1325
+ form_params = {}
1326
+
1327
+ # http body (model)
1328
+ post_body = nil
1329
+ auth_names = ['ApiKeyAuth']
1330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1331
+ :header_params => header_params,
1332
+ :query_params => query_params,
1333
+ :form_params => form_params,
1334
+ :body => post_body,
1335
+ :auth_names => auth_names,
1336
+ :return_type => 'ApiResponseCryptoDetrendedPriceOscillator')
1337
+ if @api_client.config.debugging
1338
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_dpo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1339
+ end
1340
+ return data, status_code, headers
1341
+ end
1342
+
1343
+ # Ease of Movement
1344
+ # Returns the Ease of Movement values of Crypto Currency Prices for a Crypto Currency Pair
1345
+ # @param [Hash] opts the optional parameters
1346
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1347
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1348
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1349
+ # @option opts [Integer] :period The number of observations, per period, to calculate Ease of Movement. (default to 20)
1350
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1351
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1352
+ # @option opts [Date] :start_date Return technicals on or after this date.
1353
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1354
+ # @option opts [Date] :end_date Return technicals on or before this date.
1355
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1356
+ # @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)
1357
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1358
+ # @return [ApiResponseCryptoEaseOfMovement]
1359
+ def get_crypto_price_technicals_eom(opts = {})
1360
+ data, _status_code, _headers = get_crypto_price_technicals_eom_with_http_info(opts)
1361
+ return data
1362
+ end
1363
+
1364
+ # Ease of Movement
1365
+ # Returns the Ease of Movement values of Crypto Currency Prices for a Crypto Currency Pair
1366
+ # @param [Hash] opts the optional parameters
1367
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1368
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1369
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1370
+ # @option opts [Integer] :period The number of observations, per period, to calculate Ease of Movement.
1371
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1372
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1373
+ # @option opts [Date] :start_date Return technicals on or after this date.
1374
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1375
+ # @option opts [Date] :end_date Return technicals on or before this date.
1376
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1377
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1378
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1379
+ # @return [Array<(ApiResponseCryptoEaseOfMovement, Fixnum, Hash)>] ApiResponseCryptoEaseOfMovement data, response status code and response headers
1380
+ def get_crypto_price_technicals_eom_with_http_info(opts = {})
1381
+ if @api_client.config.debugging
1382
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_eom ..."
1383
+ end
1384
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
1385
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_eom, must be greater than or equal to 4.'
1386
+ end
1387
+
1388
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1389
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1390
+ end
1391
+ 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'])
1392
+ 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'
1393
+ end
1394
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1395
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_eom, must be smaller than or equal to 10000.'
1396
+ end
1397
+
1398
+ # resource path
1399
+ local_var_path = "/crypto/prices/technicals/eom"
1400
+
1401
+ # query parameters
1402
+ query_params = {}
1403
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1404
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1405
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1406
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1407
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1408
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1409
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1410
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1411
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1412
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1413
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1414
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1415
+
1416
+ # header parameters
1417
+ header_params = {}
1418
+ # HTTP header 'Accept' (if needed)
1419
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1420
+
1421
+ # form parameters
1422
+ form_params = {}
1423
+
1424
+ # http body (model)
1425
+ post_body = nil
1426
+ auth_names = ['ApiKeyAuth']
1427
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1428
+ :header_params => header_params,
1429
+ :query_params => query_params,
1430
+ :form_params => form_params,
1431
+ :body => post_body,
1432
+ :auth_names => auth_names,
1433
+ :return_type => 'ApiResponseCryptoEaseOfMovement')
1434
+ if @api_client.config.debugging
1435
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_eom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1436
+ end
1437
+ return data, status_code, headers
1438
+ end
1439
+
1440
+ # Force Index
1441
+ # Returns the Force Index values of Crypto Currency Prices for a Crypto Currency Pair
1442
+ # @param [Hash] opts the optional parameters
1443
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1444
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1445
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1446
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1447
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1448
+ # @option opts [Date] :start_date Return technicals on or after this date.
1449
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1450
+ # @option opts [Date] :end_date Return technicals on or before this date.
1451
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1452
+ # @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)
1453
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1454
+ # @return [ApiResponseCryptoForceIndex]
1455
+ def get_crypto_price_technicals_fi(opts = {})
1456
+ data, _status_code, _headers = get_crypto_price_technicals_fi_with_http_info(opts)
1457
+ return data
1458
+ end
1459
+
1460
+ # Force Index
1461
+ # Returns the Force Index values of Crypto Currency Prices for a Crypto Currency Pair
1462
+ # @param [Hash] opts the optional parameters
1463
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1464
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1465
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1466
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1467
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1468
+ # @option opts [Date] :start_date Return technicals on or after this date.
1469
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1470
+ # @option opts [Date] :end_date Return technicals on or before this date.
1471
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1472
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1473
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1474
+ # @return [Array<(ApiResponseCryptoForceIndex, Fixnum, Hash)>] ApiResponseCryptoForceIndex data, response status code and response headers
1475
+ def get_crypto_price_technicals_fi_with_http_info(opts = {})
1476
+ if @api_client.config.debugging
1477
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_fi ..."
1478
+ end
1479
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1480
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1481
+ end
1482
+ 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'])
1483
+ 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'
1484
+ end
1485
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1486
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_fi, must be smaller than or equal to 10000.'
1487
+ end
1488
+
1489
+ # resource path
1490
+ local_var_path = "/crypto/prices/technicals/fi"
1491
+
1492
+ # query parameters
1493
+ query_params = {}
1494
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1495
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1496
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1497
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1498
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1499
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1500
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1501
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1502
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1503
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1504
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1505
+
1506
+ # header parameters
1507
+ header_params = {}
1508
+ # HTTP header 'Accept' (if needed)
1509
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1510
+
1511
+ # form parameters
1512
+ form_params = {}
1513
+
1514
+ # http body (model)
1515
+ post_body = nil
1516
+ auth_names = ['ApiKeyAuth']
1517
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1518
+ :header_params => header_params,
1519
+ :query_params => query_params,
1520
+ :form_params => form_params,
1521
+ :body => post_body,
1522
+ :auth_names => auth_names,
1523
+ :return_type => 'ApiResponseCryptoForceIndex')
1524
+ if @api_client.config.debugging
1525
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_fi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1526
+ end
1527
+ return data, status_code, headers
1528
+ end
1529
+
1530
+ # Ichimoku Kinko Hyo
1531
+ # Returns the Ichimoku Kinko Hyo values of Crypto Currency Prices for a Crypto Currency Pair
1532
+ # @param [Hash] opts the optional parameters
1533
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1534
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1535
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1536
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo. (default to 9)
1537
+ # @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)
1538
+ # @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)
1539
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1540
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1541
+ # @option opts [Date] :start_date Return technicals on or after this date.
1542
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1543
+ # @option opts [Date] :end_date Return technicals on or before this date.
1544
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1545
+ # @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)
1546
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1547
+ # @return [ApiResponseCryptoIchimokuKinkoHyo]
1548
+ def get_crypto_price_technicals_ichimoku(opts = {})
1549
+ data, _status_code, _headers = get_crypto_price_technicals_ichimoku_with_http_info(opts)
1550
+ return data
1551
+ end
1552
+
1553
+ # Ichimoku Kinko Hyo
1554
+ # Returns the Ichimoku Kinko Hyo values of Crypto Currency Prices for a Crypto Currency Pair
1555
+ # @param [Hash] opts the optional parameters
1556
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1557
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1558
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1559
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate Tenkan Sen (Conversion Line) of Ichimoku Kinko Hyo.
1560
+ # @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.
1561
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate Senkou Span B (Leading Span B) of Ichimoku Kinko Hyo.
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<(ApiResponseCryptoIchimokuKinkoHyo, Fixnum, Hash)>] ApiResponseCryptoIchimokuKinkoHyo data, response status code and response headers
1571
+ def get_crypto_price_technicals_ichimoku_with_http_info(opts = {})
1572
+ if @api_client.config.debugging
1573
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_ichimoku ..."
1574
+ end
1575
+ if @api_client.config.client_side_validation && !opts[:'medium_period'].nil? && opts[:'medium_period'] < 2
1576
+ fail ArgumentError, 'invalid value for "opts[:"medium_period"]" when calling CryptoApi.get_crypto_price_technicals_ichimoku, must be greater than or equal to 2.'
1577
+ end
1578
+
1579
+ if @api_client.config.client_side_validation && !opts[:'high_period'].nil? && opts[:'high_period'] < 4
1580
+ fail ArgumentError, 'invalid value for "opts[:"high_period"]" when calling CryptoApi.get_crypto_price_technicals_ichimoku, must be greater than or equal to 4.'
1581
+ end
1582
+
1583
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1584
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1585
+ end
1586
+ 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'])
1587
+ 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'
1588
+ end
1589
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1590
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_ichimoku, must be smaller than or equal to 10000.'
1591
+ end
1592
+
1593
+ # resource path
1594
+ local_var_path = "/crypto/prices/technicals/ichimoku"
1595
+
1596
+ # query parameters
1597
+ query_params = {}
1598
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1599
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1600
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1601
+ query_params[:'low_period'] = opts[:'low_period'] if !opts[:'low_period'].nil?
1602
+ query_params[:'medium_period'] = opts[:'medium_period'] if !opts[:'medium_period'].nil?
1603
+ query_params[:'high_period'] = opts[:'high_period'] if !opts[:'high_period'].nil?
1604
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1605
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1606
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1607
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1608
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1609
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1610
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1611
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1612
+
1613
+ # header parameters
1614
+ header_params = {}
1615
+ # HTTP header 'Accept' (if needed)
1616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1617
+
1618
+ # form parameters
1619
+ form_params = {}
1620
+
1621
+ # http body (model)
1622
+ post_body = nil
1623
+ auth_names = ['ApiKeyAuth']
1624
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1625
+ :header_params => header_params,
1626
+ :query_params => query_params,
1627
+ :form_params => form_params,
1628
+ :body => post_body,
1629
+ :auth_names => auth_names,
1630
+ :return_type => 'ApiResponseCryptoIchimokuKinkoHyo')
1631
+ if @api_client.config.debugging
1632
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_ichimoku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1633
+ end
1634
+ return data, status_code, headers
1635
+ end
1636
+
1637
+ # Keltner Channel
1638
+ # Returns the Keltner Channel values of Crypto Currency Prices for a Crypto Currency Pair
1639
+ # @param [Hash] opts the optional parameters
1640
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1641
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1642
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1643
+ # @option opts [Integer] :period The number of observations, per period, to calculate Kelter Channel. (default to 10)
1644
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1645
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1646
+ # @option opts [Date] :start_date Return technicals on or after this date.
1647
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1648
+ # @option opts [Date] :end_date Return technicals on or before this date.
1649
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1650
+ # @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)
1651
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1652
+ # @return [ApiResponseCryptoKeltnerChannel]
1653
+ def get_crypto_price_technicals_kc(opts = {})
1654
+ data, _status_code, _headers = get_crypto_price_technicals_kc_with_http_info(opts)
1655
+ return data
1656
+ end
1657
+
1658
+ # Keltner Channel
1659
+ # Returns the Keltner Channel values of Crypto Currency Prices for a Crypto Currency Pair
1660
+ # @param [Hash] opts the optional parameters
1661
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1662
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1663
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1664
+ # @option opts [Integer] :period The number of observations, per period, to calculate Kelter Channel.
1665
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1666
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1667
+ # @option opts [Date] :start_date Return technicals on or after this date.
1668
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1669
+ # @option opts [Date] :end_date Return technicals on or before this date.
1670
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1671
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1672
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1673
+ # @return [Array<(ApiResponseCryptoKeltnerChannel, Fixnum, Hash)>] ApiResponseCryptoKeltnerChannel data, response status code and response headers
1674
+ def get_crypto_price_technicals_kc_with_http_info(opts = {})
1675
+ if @api_client.config.debugging
1676
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_kc ..."
1677
+ end
1678
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
1679
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_kc, must be greater than or equal to 5.'
1680
+ end
1681
+
1682
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1683
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1684
+ end
1685
+ 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'])
1686
+ 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'
1687
+ end
1688
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1689
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_kc, must be smaller than or equal to 10000.'
1690
+ end
1691
+
1692
+ # resource path
1693
+ local_var_path = "/crypto/prices/technicals/kc"
1694
+
1695
+ # query parameters
1696
+ query_params = {}
1697
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1698
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1699
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1700
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1701
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1702
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1703
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1704
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1705
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1706
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1707
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1708
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1709
+
1710
+ # header parameters
1711
+ header_params = {}
1712
+ # HTTP header 'Accept' (if needed)
1713
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1714
+
1715
+ # form parameters
1716
+ form_params = {}
1717
+
1718
+ # http body (model)
1719
+ post_body = nil
1720
+ auth_names = ['ApiKeyAuth']
1721
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1722
+ :header_params => header_params,
1723
+ :query_params => query_params,
1724
+ :form_params => form_params,
1725
+ :body => post_body,
1726
+ :auth_names => auth_names,
1727
+ :return_type => 'ApiResponseCryptoKeltnerChannel')
1728
+ if @api_client.config.debugging
1729
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_kc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1730
+ end
1731
+ return data, status_code, headers
1732
+ end
1733
+
1734
+ # Know Sure Thing
1735
+ # Returns the Know Sure Thing values of Crypto Currency Prices for a Crypto Currency Pair
1736
+ # @param [Hash] opts the optional parameters
1737
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1738
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1739
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1740
+ # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1. (default to 10)
1741
+ # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2. (default to 15)
1742
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA3. (default to 20)
1743
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA4. (default to 30)
1744
+ # @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)
1745
+ # @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)
1746
+ # @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)
1747
+ # @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)
1748
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Know Sure Thing. (default to close)
1749
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1750
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1751
+ # @option opts [Date] :start_date Return technicals on or after this date.
1752
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1753
+ # @option opts [Date] :end_date Return technicals on or before this date.
1754
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1755
+ # @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)
1756
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1757
+ # @return [ApiResponseCryptoKnowSureThing]
1758
+ def get_crypto_price_technicals_kst(opts = {})
1759
+ data, _status_code, _headers = get_crypto_price_technicals_kst_with_http_info(opts)
1760
+ return data
1761
+ end
1762
+
1763
+ # Know Sure Thing
1764
+ # Returns the Know Sure Thing values of Crypto Currency Prices for a Crypto Currency Pair
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1767
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1768
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1769
+ # @option opts [Integer] :roc1 The number of observations, per period, to calculate the rate-of-change for RCMA1.
1770
+ # @option opts [Integer] :roc2 The number of observations, per period, to calculate the rate-of-change for RCMA2.
1771
+ # @option opts [Integer] :roc3 The number of observations, per period, to calculate the rate-of-change for RCMA3.
1772
+ # @option opts [Integer] :roc4 The number of observations, per period, to calculate the rate-of-change for RCMA4.
1773
+ # @option opts [Integer] :sma1 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1.
1774
+ # @option opts [Integer] :sma2 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2.
1775
+ # @option opts [Integer] :sma3 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3.
1776
+ # @option opts [Integer] :sma4 The number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4.
1777
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Know Sure Thing.
1778
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1779
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1780
+ # @option opts [Date] :start_date Return technicals on or after this date.
1781
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1782
+ # @option opts [Date] :end_date Return technicals on or before this date.
1783
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1784
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1785
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1786
+ # @return [Array<(ApiResponseCryptoKnowSureThing, Fixnum, Hash)>] ApiResponseCryptoKnowSureThing data, response status code and response headers
1787
+ def get_crypto_price_technicals_kst_with_http_info(opts = {})
1788
+ if @api_client.config.debugging
1789
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_kst ..."
1790
+ end
1791
+ if @api_client.config.client_side_validation && !opts[:'roc4'].nil? && opts[:'roc4'] < 3
1792
+ fail ArgumentError, 'invalid value for "opts[:"roc4"]" when calling CryptoApi.get_crypto_price_technicals_kst, must be greater than or equal to 3.'
1793
+ end
1794
+
1795
+ if @api_client.config.client_side_validation && !opts[:'sma4'].nil? && opts[:'sma4'] < 3
1796
+ fail ArgumentError, 'invalid value for "opts[:"sma4"]" when calling CryptoApi.get_crypto_price_technicals_kst, must be greater than or equal to 3.'
1797
+ end
1798
+
1799
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1800
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1801
+ end
1802
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1803
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1804
+ end
1805
+ 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'])
1806
+ 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'
1807
+ end
1808
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1809
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_kst, must be smaller than or equal to 10000.'
1810
+ end
1811
+
1812
+ # resource path
1813
+ local_var_path = "/crypto/prices/technicals/kst"
1814
+
1815
+ # query parameters
1816
+ query_params = {}
1817
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1818
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1819
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1820
+ query_params[:'roc1'] = opts[:'roc1'] if !opts[:'roc1'].nil?
1821
+ query_params[:'roc2'] = opts[:'roc2'] if !opts[:'roc2'].nil?
1822
+ query_params[:'roc3'] = opts[:'roc3'] if !opts[:'roc3'].nil?
1823
+ query_params[:'roc4'] = opts[:'roc4'] if !opts[:'roc4'].nil?
1824
+ query_params[:'sma1'] = opts[:'sma1'] if !opts[:'sma1'].nil?
1825
+ query_params[:'sma2'] = opts[:'sma2'] if !opts[:'sma2'].nil?
1826
+ query_params[:'sma3'] = opts[:'sma3'] if !opts[:'sma3'].nil?
1827
+ query_params[:'sma4'] = opts[:'sma4'] if !opts[:'sma4'].nil?
1828
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1829
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1830
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1831
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1832
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1833
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1834
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1835
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1836
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1837
+
1838
+ # header parameters
1839
+ header_params = {}
1840
+ # HTTP header 'Accept' (if needed)
1841
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1842
+
1843
+ # form parameters
1844
+ form_params = {}
1845
+
1846
+ # http body (model)
1847
+ post_body = nil
1848
+ auth_names = ['ApiKeyAuth']
1849
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1850
+ :header_params => header_params,
1851
+ :query_params => query_params,
1852
+ :form_params => form_params,
1853
+ :body => post_body,
1854
+ :auth_names => auth_names,
1855
+ :return_type => 'ApiResponseCryptoKnowSureThing')
1856
+ if @api_client.config.debugging
1857
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_kst\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1858
+ end
1859
+ return data, status_code, headers
1860
+ end
1861
+
1862
+ # Moving Average Convergence Divergence
1863
+ # Returns the Moving Average Convergence Divergence 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 [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)
1869
+ # @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)
1870
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence. (default to 9)
1871
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Moving Average Convergence Divergence. (default to close)
1872
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1873
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1874
+ # @option opts [Date] :start_date Return technicals on or after this date.
1875
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1876
+ # @option opts [Date] :end_date Return technicals on or before this date.
1877
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1878
+ # @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)
1879
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1880
+ # @return [ApiResponseCryptoMovingAverageConvergenceDivergence]
1881
+ def get_crypto_price_technicals_macd(opts = {})
1882
+ data, _status_code, _headers = get_crypto_price_technicals_macd_with_http_info(opts)
1883
+ return data
1884
+ end
1885
+
1886
+ # Moving Average Convergence Divergence
1887
+ # Returns the Moving Average Convergence Divergence values of Crypto Currency Prices for a Crypto Currency Pair
1888
+ # @param [Hash] opts the optional parameters
1889
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1890
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1891
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1892
+ # @option opts [Integer] :fast_period The number of observations, per period, to calculate the fast moving Exponential Moving Average for Moving Average Convergence Divergence.
1893
+ # @option opts [Integer] :slow_period The number of observations, per period, to calculate the slow moving Exponential Moving Average for Moving Average Convergence Divergence.
1894
+ # @option opts [Integer] :signal_period The number of observations, per period, to calculate the signal line for Moving Average Convergence Divergence.
1895
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Moving Average Convergence Divergence.
1896
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
1897
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
1898
+ # @option opts [Date] :start_date Return technicals on or after this date.
1899
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1900
+ # @option opts [Date] :end_date Return technicals on or before this date.
1901
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1902
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
1903
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1904
+ # @return [Array<(ApiResponseCryptoMovingAverageConvergenceDivergence, Fixnum, Hash)>] ApiResponseCryptoMovingAverageConvergenceDivergence data, response status code and response headers
1905
+ def get_crypto_price_technicals_macd_with_http_info(opts = {})
1906
+ if @api_client.config.debugging
1907
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_macd ..."
1908
+ end
1909
+ if @api_client.config.client_side_validation && !opts[:'slow_period'].nil? && opts[:'slow_period'] < 3
1910
+ fail ArgumentError, 'invalid value for "opts[:"slow_period"]" when calling CryptoApi.get_crypto_price_technicals_macd, must be greater than or equal to 3.'
1911
+ end
1912
+
1913
+ if @api_client.config.client_side_validation && !opts[:'signal_period'].nil? && opts[:'signal_period'] < 3
1914
+ fail ArgumentError, 'invalid value for "opts[:"signal_period"]" when calling CryptoApi.get_crypto_price_technicals_macd, must be greater than or equal to 3.'
1915
+ end
1916
+
1917
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
1918
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
1919
+ end
1920
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
1921
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
1922
+ end
1923
+ 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'])
1924
+ 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'
1925
+ end
1926
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
1927
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_macd, must be smaller than or equal to 10000.'
1928
+ end
1929
+
1930
+ # resource path
1931
+ local_var_path = "/crypto/prices/technicals/macd"
1932
+
1933
+ # query parameters
1934
+ query_params = {}
1935
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
1936
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
1937
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
1938
+ query_params[:'fast_period'] = opts[:'fast_period'] if !opts[:'fast_period'].nil?
1939
+ query_params[:'slow_period'] = opts[:'slow_period'] if !opts[:'slow_period'].nil?
1940
+ query_params[:'signal_period'] = opts[:'signal_period'] if !opts[:'signal_period'].nil?
1941
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
1942
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
1943
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
1944
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
1945
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1946
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
1947
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1948
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1949
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
1950
+
1951
+ # header parameters
1952
+ header_params = {}
1953
+ # HTTP header 'Accept' (if needed)
1954
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1955
+
1956
+ # form parameters
1957
+ form_params = {}
1958
+
1959
+ # http body (model)
1960
+ post_body = nil
1961
+ auth_names = ['ApiKeyAuth']
1962
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1963
+ :header_params => header_params,
1964
+ :query_params => query_params,
1965
+ :form_params => form_params,
1966
+ :body => post_body,
1967
+ :auth_names => auth_names,
1968
+ :return_type => 'ApiResponseCryptoMovingAverageConvergenceDivergence')
1969
+ if @api_client.config.debugging
1970
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_macd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1971
+ end
1972
+ return data, status_code, headers
1973
+ end
1974
+
1975
+ # Money Flow Index
1976
+ # Returns the Money Flow Index values of Crypto Currency Prices for a Crypto Currency Pair
1977
+ # @param [Hash] opts the optional parameters
1978
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
1979
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
1980
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
1981
+ # @option opts [Integer] :period The number of observations, per period, to calculate Money Flow Index. (default to 14)
1982
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
1983
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
1984
+ # @option opts [Date] :start_date Return technicals on or after this date.
1985
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
1986
+ # @option opts [Date] :end_date Return technicals on or before this date.
1987
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
1988
+ # @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)
1989
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
1990
+ # @return [ApiResponseCryptoMoneyFlowIndex]
1991
+ def get_crypto_price_technicals_mfi(opts = {})
1992
+ data, _status_code, _headers = get_crypto_price_technicals_mfi_with_http_info(opts)
1993
+ return data
1994
+ end
1995
+
1996
+ # Money Flow Index
1997
+ # Returns the Money Flow Index values of Crypto Currency Prices for a Crypto Currency Pair
1998
+ # @param [Hash] opts the optional parameters
1999
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2000
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2001
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2002
+ # @option opts [Integer] :period The number of observations, per period, to calculate Money Flow Index.
2003
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2004
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2005
+ # @option opts [Date] :start_date Return technicals on or after this date.
2006
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2007
+ # @option opts [Date] :end_date Return technicals on or before this date.
2008
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2009
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2010
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2011
+ # @return [Array<(ApiResponseCryptoMoneyFlowIndex, Fixnum, Hash)>] ApiResponseCryptoMoneyFlowIndex data, response status code and response headers
2012
+ def get_crypto_price_technicals_mfi_with_http_info(opts = {})
2013
+ if @api_client.config.debugging
2014
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_mfi ..."
2015
+ end
2016
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2017
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_mfi, must be greater than or equal to 4.'
2018
+ end
2019
+
2020
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2021
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2022
+ end
2023
+ 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'])
2024
+ 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'
2025
+ end
2026
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2027
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_mfi, must be smaller than or equal to 10000.'
2028
+ end
2029
+
2030
+ # resource path
2031
+ local_var_path = "/crypto/prices/technicals/mfi"
2032
+
2033
+ # query parameters
2034
+ query_params = {}
2035
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2036
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2037
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2038
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2039
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2040
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2041
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2042
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2043
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2044
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2045
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2046
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2047
+
2048
+ # header parameters
2049
+ header_params = {}
2050
+ # HTTP header 'Accept' (if needed)
2051
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2052
+
2053
+ # form parameters
2054
+ form_params = {}
2055
+
2056
+ # http body (model)
2057
+ post_body = nil
2058
+ auth_names = ['ApiKeyAuth']
2059
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2060
+ :header_params => header_params,
2061
+ :query_params => query_params,
2062
+ :form_params => form_params,
2063
+ :body => post_body,
2064
+ :auth_names => auth_names,
2065
+ :return_type => 'ApiResponseCryptoMoneyFlowIndex')
2066
+ if @api_client.config.debugging
2067
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_mfi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2068
+ end
2069
+ return data, status_code, headers
2070
+ end
2071
+
2072
+ # Mass Index
2073
+ # Returns the Mass Index values of Crypto Currency Prices for a Crypto Currency Pair
2074
+ # @param [Hash] opts the optional parameters
2075
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2076
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2077
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2078
+ # @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)
2079
+ # @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)
2080
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2081
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2082
+ # @option opts [Date] :start_date Return technicals on or after this date.
2083
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2084
+ # @option opts [Date] :end_date Return technicals on or before this date.
2085
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2086
+ # @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)
2087
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2088
+ # @return [ApiResponseCryptoMassIndex]
2089
+ def get_crypto_price_technicals_mi(opts = {})
2090
+ data, _status_code, _headers = get_crypto_price_technicals_mi_with_http_info(opts)
2091
+ return data
2092
+ end
2093
+
2094
+ # Mass Index
2095
+ # Returns the Mass Index values of Crypto Currency Prices for a Crypto Currency Pair
2096
+ # @param [Hash] opts the optional parameters
2097
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2098
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2099
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2100
+ # @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.
2101
+ # @option opts [Integer] :sum_period The number of observations, per period, to calculate the sum of the Exponetinal Moving Average Ratios for Mass Index.
2102
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2103
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2104
+ # @option opts [Date] :start_date Return technicals on or after this date.
2105
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2106
+ # @option opts [Date] :end_date Return technicals on or before this date.
2107
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2108
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2109
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2110
+ # @return [Array<(ApiResponseCryptoMassIndex, Fixnum, Hash)>] ApiResponseCryptoMassIndex data, response status code and response headers
2111
+ def get_crypto_price_technicals_mi_with_http_info(opts = {})
2112
+ if @api_client.config.debugging
2113
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_mi ..."
2114
+ end
2115
+ if @api_client.config.client_side_validation && !opts[:'ema_period'].nil? && opts[:'ema_period'] < 2
2116
+ fail ArgumentError, 'invalid value for "opts[:"ema_period"]" when calling CryptoApi.get_crypto_price_technicals_mi, must be greater than or equal to 2.'
2117
+ end
2118
+
2119
+ if @api_client.config.client_side_validation && !opts[:'sum_period'].nil? && opts[:'sum_period'] < 3
2120
+ fail ArgumentError, 'invalid value for "opts[:"sum_period"]" when calling CryptoApi.get_crypto_price_technicals_mi, must be greater than or equal to 3.'
2121
+ end
2122
+
2123
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2124
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2125
+ end
2126
+ 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'])
2127
+ 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'
2128
+ end
2129
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2130
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_mi, must be smaller than or equal to 10000.'
2131
+ end
2132
+
2133
+ # resource path
2134
+ local_var_path = "/crypto/prices/technicals/mi"
2135
+
2136
+ # query parameters
2137
+ query_params = {}
2138
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2139
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2140
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2141
+ query_params[:'ema_period'] = opts[:'ema_period'] if !opts[:'ema_period'].nil?
2142
+ query_params[:'sum_period'] = opts[:'sum_period'] if !opts[:'sum_period'].nil?
2143
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2144
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2145
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2146
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2147
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2148
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2149
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2150
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2151
+
2152
+ # header parameters
2153
+ header_params = {}
2154
+ # HTTP header 'Accept' (if needed)
2155
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2156
+
2157
+ # form parameters
2158
+ form_params = {}
2159
+
2160
+ # http body (model)
2161
+ post_body = nil
2162
+ auth_names = ['ApiKeyAuth']
2163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2164
+ :header_params => header_params,
2165
+ :query_params => query_params,
2166
+ :form_params => form_params,
2167
+ :body => post_body,
2168
+ :auth_names => auth_names,
2169
+ :return_type => 'ApiResponseCryptoMassIndex')
2170
+ if @api_client.config.debugging
2171
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_mi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2172
+ end
2173
+ return data, status_code, headers
2174
+ end
2175
+
2176
+ # Negative Volume Index
2177
+ # Returns the Negative Volume Index values of Crypto Currency Prices for a Crypto Currency Pair
2178
+ # @param [Hash] opts the optional parameters
2179
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2180
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2181
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2182
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2183
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2184
+ # @option opts [Date] :start_date Return technicals on or after this date.
2185
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2186
+ # @option opts [Date] :end_date Return technicals on or before this date.
2187
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2188
+ # @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)
2189
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2190
+ # @return [ApiResponseCryptoNegativeVolumeIndex]
2191
+ def get_crypto_price_technicals_nvi(opts = {})
2192
+ data, _status_code, _headers = get_crypto_price_technicals_nvi_with_http_info(opts)
2193
+ return data
2194
+ end
2195
+
2196
+ # Negative Volume Index
2197
+ # Returns the Negative Volume Index values of Crypto Currency Prices for a Crypto Currency Pair
2198
+ # @param [Hash] opts the optional parameters
2199
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2200
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2201
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2202
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2203
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2204
+ # @option opts [Date] :start_date Return technicals on or after this date.
2205
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2206
+ # @option opts [Date] :end_date Return technicals on or before this date.
2207
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2208
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2209
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2210
+ # @return [Array<(ApiResponseCryptoNegativeVolumeIndex, Fixnum, Hash)>] ApiResponseCryptoNegativeVolumeIndex data, response status code and response headers
2211
+ def get_crypto_price_technicals_nvi_with_http_info(opts = {})
2212
+ if @api_client.config.debugging
2213
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_nvi ..."
2214
+ end
2215
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2216
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2217
+ end
2218
+ 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'])
2219
+ 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'
2220
+ end
2221
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2222
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_nvi, must be smaller than or equal to 10000.'
2223
+ end
2224
+
2225
+ # resource path
2226
+ local_var_path = "/crypto/prices/technicals/nvi"
2227
+
2228
+ # query parameters
2229
+ query_params = {}
2230
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2231
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2232
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2233
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2234
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2235
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2236
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2237
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2238
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2239
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2240
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2241
+
2242
+ # header parameters
2243
+ header_params = {}
2244
+ # HTTP header 'Accept' (if needed)
2245
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2246
+
2247
+ # form parameters
2248
+ form_params = {}
2249
+
2250
+ # http body (model)
2251
+ post_body = nil
2252
+ auth_names = ['ApiKeyAuth']
2253
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2254
+ :header_params => header_params,
2255
+ :query_params => query_params,
2256
+ :form_params => form_params,
2257
+ :body => post_body,
2258
+ :auth_names => auth_names,
2259
+ :return_type => 'ApiResponseCryptoNegativeVolumeIndex')
2260
+ if @api_client.config.debugging
2261
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_nvi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2262
+ end
2263
+ return data, status_code, headers
2264
+ end
2265
+
2266
+ # On-balance Volume
2267
+ # Returns the On-balance Volume values of Crypto Currency Prices for a Crypto Currency Pair
2268
+ # @param [Hash] opts the optional parameters
2269
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2270
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2271
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2272
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2273
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2274
+ # @option opts [Date] :start_date Return technicals on or after this date.
2275
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2276
+ # @option opts [Date] :end_date Return technicals on or before this date.
2277
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2278
+ # @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)
2279
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2280
+ # @return [ApiResponseCryptoOnBalanceVolume]
2281
+ def get_crypto_price_technicals_obv(opts = {})
2282
+ data, _status_code, _headers = get_crypto_price_technicals_obv_with_http_info(opts)
2283
+ return data
2284
+ end
2285
+
2286
+ # On-balance Volume
2287
+ # Returns the On-balance Volume values of Crypto Currency Prices for a Crypto Currency Pair
2288
+ # @param [Hash] opts the optional parameters
2289
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2290
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2291
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2292
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2293
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2294
+ # @option opts [Date] :start_date Return technicals on or after this date.
2295
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2296
+ # @option opts [Date] :end_date Return technicals on or before this date.
2297
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2298
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2299
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2300
+ # @return [Array<(ApiResponseCryptoOnBalanceVolume, Fixnum, Hash)>] ApiResponseCryptoOnBalanceVolume data, response status code and response headers
2301
+ def get_crypto_price_technicals_obv_with_http_info(opts = {})
2302
+ if @api_client.config.debugging
2303
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_obv ..."
2304
+ end
2305
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2306
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2307
+ end
2308
+ 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'])
2309
+ 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'
2310
+ end
2311
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2312
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_obv, must be smaller than or equal to 10000.'
2313
+ end
2314
+
2315
+ # resource path
2316
+ local_var_path = "/crypto/prices/technicals/obv"
2317
+
2318
+ # query parameters
2319
+ query_params = {}
2320
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2321
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2322
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2323
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2324
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2325
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2326
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2327
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2328
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2329
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2330
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2331
+
2332
+ # header parameters
2333
+ header_params = {}
2334
+ # HTTP header 'Accept' (if needed)
2335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2336
+
2337
+ # form parameters
2338
+ form_params = {}
2339
+
2340
+ # http body (model)
2341
+ post_body = nil
2342
+ auth_names = ['ApiKeyAuth']
2343
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2344
+ :header_params => header_params,
2345
+ :query_params => query_params,
2346
+ :form_params => form_params,
2347
+ :body => post_body,
2348
+ :auth_names => auth_names,
2349
+ :return_type => 'ApiResponseCryptoOnBalanceVolume')
2350
+ if @api_client.config.debugging
2351
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_obv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2352
+ end
2353
+ return data, status_code, headers
2354
+ end
2355
+
2356
+ # On-balance Volume Mean
2357
+ # Returns the On-balance Volume Mean values of Crypto Currency Prices for a Crypto Currency Pair
2358
+ # @param [Hash] opts the optional parameters
2359
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2360
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2361
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2362
+ # @option opts [Integer] :period The number of observations, per period, to calculate On-balance Volume Mean. (default to 10)
2363
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2364
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2365
+ # @option opts [Date] :start_date Return technicals on or after this date.
2366
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2367
+ # @option opts [Date] :end_date Return technicals on or before this date.
2368
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2369
+ # @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)
2370
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2371
+ # @return [ApiResponseCryptoOnBalanceVolumeMean]
2372
+ def get_crypto_price_technicals_obv_mean(opts = {})
2373
+ data, _status_code, _headers = get_crypto_price_technicals_obv_mean_with_http_info(opts)
2374
+ return data
2375
+ end
2376
+
2377
+ # On-balance Volume Mean
2378
+ # Returns the On-balance Volume Mean values of Crypto Currency Prices for a Crypto Currency Pair
2379
+ # @param [Hash] opts the optional parameters
2380
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2381
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2382
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2383
+ # @option opts [Integer] :period The number of observations, per period, to calculate On-balance Volume Mean.
2384
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2385
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2386
+ # @option opts [Date] :start_date Return technicals on or after this date.
2387
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2388
+ # @option opts [Date] :end_date Return technicals on or before this date.
2389
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2390
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2391
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2392
+ # @return [Array<(ApiResponseCryptoOnBalanceVolumeMean, Fixnum, Hash)>] ApiResponseCryptoOnBalanceVolumeMean data, response status code and response headers
2393
+ def get_crypto_price_technicals_obv_mean_with_http_info(opts = {})
2394
+ if @api_client.config.debugging
2395
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_obv_mean ..."
2396
+ end
2397
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2398
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_obv_mean, must be greater than or equal to 4.'
2399
+ end
2400
+
2401
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2402
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2403
+ end
2404
+ 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'])
2405
+ 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'
2406
+ end
2407
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2408
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_obv_mean, must be smaller than or equal to 10000.'
2409
+ end
2410
+
2411
+ # resource path
2412
+ local_var_path = "/crypto/prices/technicals/obv_mean"
2413
+
2414
+ # query parameters
2415
+ query_params = {}
2416
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2417
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2418
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2419
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2420
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2421
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2422
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2423
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2424
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2425
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2426
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2427
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2428
+
2429
+ # header parameters
2430
+ header_params = {}
2431
+ # HTTP header 'Accept' (if needed)
2432
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2433
+
2434
+ # form parameters
2435
+ form_params = {}
2436
+
2437
+ # http body (model)
2438
+ post_body = nil
2439
+ auth_names = ['ApiKeyAuth']
2440
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2441
+ :header_params => header_params,
2442
+ :query_params => query_params,
2443
+ :form_params => form_params,
2444
+ :body => post_body,
2445
+ :auth_names => auth_names,
2446
+ :return_type => 'ApiResponseCryptoOnBalanceVolumeMean')
2447
+ if @api_client.config.debugging
2448
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_obv_mean\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2449
+ end
2450
+ return data, status_code, headers
2451
+ end
2452
+
2453
+ # Relative Strength Index
2454
+ # Returns the Relative Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2455
+ # @param [Hash] opts the optional parameters
2456
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2457
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2458
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2459
+ # @option opts [Integer] :period The number of observations, per period, to calculate Relative Strength Index. (default to 14)
2460
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Relative Strength Index. (default to close)
2461
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2462
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2463
+ # @option opts [Date] :start_date Return technicals on or after this date.
2464
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2465
+ # @option opts [Date] :end_date Return technicals on or before this date.
2466
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2467
+ # @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)
2468
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2469
+ # @return [ApiResponseCryptoRelativeStrengthIndex]
2470
+ def get_crypto_price_technicals_rsi(opts = {})
2471
+ data, _status_code, _headers = get_crypto_price_technicals_rsi_with_http_info(opts)
2472
+ return data
2473
+ end
2474
+
2475
+ # Relative Strength Index
2476
+ # Returns the Relative Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2477
+ # @param [Hash] opts the optional parameters
2478
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2479
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2480
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2481
+ # @option opts [Integer] :period The number of observations, per period, to calculate Relative Strength Index.
2482
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Relative Strength Index.
2483
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2484
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2485
+ # @option opts [Date] :start_date Return technicals on or after this date.
2486
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2487
+ # @option opts [Date] :end_date Return technicals on or before this date.
2488
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2489
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2490
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2491
+ # @return [Array<(ApiResponseCryptoRelativeStrengthIndex, Fixnum, Hash)>] ApiResponseCryptoRelativeStrengthIndex data, response status code and response headers
2492
+ def get_crypto_price_technicals_rsi_with_http_info(opts = {})
2493
+ if @api_client.config.debugging
2494
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_rsi ..."
2495
+ end
2496
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
2497
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_rsi, must be greater than or equal to 4.'
2498
+ end
2499
+
2500
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2501
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2502
+ end
2503
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2504
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2505
+ end
2506
+ 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'])
2507
+ 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'
2508
+ end
2509
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2510
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_rsi, must be smaller than or equal to 10000.'
2511
+ end
2512
+
2513
+ # resource path
2514
+ local_var_path = "/crypto/prices/technicals/rsi"
2515
+
2516
+ # query parameters
2517
+ query_params = {}
2518
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2519
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2520
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2521
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2522
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2523
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2524
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2525
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2526
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2527
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2528
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2529
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2530
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2531
+
2532
+ # header parameters
2533
+ header_params = {}
2534
+ # HTTP header 'Accept' (if needed)
2535
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2536
+
2537
+ # form parameters
2538
+ form_params = {}
2539
+
2540
+ # http body (model)
2541
+ post_body = nil
2542
+ auth_names = ['ApiKeyAuth']
2543
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2544
+ :header_params => header_params,
2545
+ :query_params => query_params,
2546
+ :form_params => form_params,
2547
+ :body => post_body,
2548
+ :auth_names => auth_names,
2549
+ :return_type => 'ApiResponseCryptoRelativeStrengthIndex')
2550
+ if @api_client.config.debugging
2551
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_rsi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2552
+ end
2553
+ return data, status_code, headers
2554
+ end
2555
+
2556
+ # Simple Moving Average
2557
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2558
+ # @param [Hash] opts the optional parameters
2559
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2560
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2561
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2562
+ # @option opts [Integer] :period The number of observations, per period, to calculate Simple Moving Average. (default to 20)
2563
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Simple Moving Average. (default to close)
2564
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2565
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2566
+ # @option opts [Date] :start_date Return technicals on or after this date.
2567
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2568
+ # @option opts [Date] :end_date Return technicals on or before this date.
2569
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2570
+ # @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)
2571
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2572
+ # @return [ApiResponseCryptoSimpleMovingAverage]
2573
+ def get_crypto_price_technicals_sma(opts = {})
2574
+ data, _status_code, _headers = get_crypto_price_technicals_sma_with_http_info(opts)
2575
+ return data
2576
+ end
2577
+
2578
+ # Simple Moving Average
2579
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2580
+ # @param [Hash] opts the optional parameters
2581
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2582
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2583
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2584
+ # @option opts [Integer] :period The number of observations, per period, to calculate Simple Moving Average.
2585
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating Simple Moving Average.
2586
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2587
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2588
+ # @option opts [Date] :start_date Return technicals on or after this date.
2589
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2590
+ # @option opts [Date] :end_date Return technicals on or before this date.
2591
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2592
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2593
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2594
+ # @return [Array<(ApiResponseCryptoSimpleMovingAverage, Fixnum, Hash)>] ApiResponseCryptoSimpleMovingAverage data, response status code and response headers
2595
+ def get_crypto_price_technicals_sma_with_http_info(opts = {})
2596
+ if @api_client.config.debugging
2597
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_sma ..."
2598
+ end
2599
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
2600
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_sma, must be greater than or equal to 5.'
2601
+ end
2602
+
2603
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2604
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2605
+ end
2606
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2607
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2608
+ end
2609
+ 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'])
2610
+ 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'
2611
+ end
2612
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2613
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_sma, must be smaller than or equal to 10000.'
2614
+ end
2615
+
2616
+ # resource path
2617
+ local_var_path = "/crypto/prices/technicals/sma"
2618
+
2619
+ # query parameters
2620
+ query_params = {}
2621
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2622
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2623
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2624
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2625
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2626
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2627
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2628
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2629
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2630
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2631
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2632
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2633
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2634
+
2635
+ # header parameters
2636
+ header_params = {}
2637
+ # HTTP header 'Accept' (if needed)
2638
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2639
+
2640
+ # form parameters
2641
+ form_params = {}
2642
+
2643
+ # http body (model)
2644
+ post_body = nil
2645
+ auth_names = ['ApiKeyAuth']
2646
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2647
+ :header_params => header_params,
2648
+ :query_params => query_params,
2649
+ :form_params => form_params,
2650
+ :body => post_body,
2651
+ :auth_names => auth_names,
2652
+ :return_type => 'ApiResponseCryptoSimpleMovingAverage')
2653
+ if @api_client.config.debugging
2654
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_sma\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2655
+ end
2656
+ return data, status_code, headers
2657
+ end
2658
+
2659
+ # Stochastic Oscillator
2660
+ # Returns the Stochastic Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2661
+ # @param [Hash] opts the optional parameters
2662
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2663
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2664
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2665
+ # @option opts [Integer] :period The number of observations, per period, to calculate %K of Stochastic Oscillator. (default to 14)
2666
+ # @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)
2667
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2668
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2669
+ # @option opts [Date] :start_date Return technicals on or after this date.
2670
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2671
+ # @option opts [Date] :end_date Return technicals on or before this date.
2672
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2673
+ # @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)
2674
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2675
+ # @return [ApiResponseCryptoStochasticOscillator]
2676
+ def get_crypto_price_technicals_sr(opts = {})
2677
+ data, _status_code, _headers = get_crypto_price_technicals_sr_with_http_info(opts)
2678
+ return data
2679
+ end
2680
+
2681
+ # Stochastic Oscillator
2682
+ # Returns the Stochastic Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2683
+ # @param [Hash] opts the optional parameters
2684
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2685
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2686
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2687
+ # @option opts [Integer] :period The number of observations, per period, to calculate %K of Stochastic Oscillator.
2688
+ # @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.
2689
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2690
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2691
+ # @option opts [Date] :start_date Return technicals on or after this date.
2692
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2693
+ # @option opts [Date] :end_date Return technicals on or before this date.
2694
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2695
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2696
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2697
+ # @return [Array<(ApiResponseCryptoStochasticOscillator, Fixnum, Hash)>] ApiResponseCryptoStochasticOscillator data, response status code and response headers
2698
+ def get_crypto_price_technicals_sr_with_http_info(opts = {})
2699
+ if @api_client.config.debugging
2700
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_sr ..."
2701
+ end
2702
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 3
2703
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_sr, must be greater than or equal to 3.'
2704
+ end
2705
+
2706
+ if @api_client.config.client_side_validation && !opts[:'signal_period'].nil? && opts[:'signal_period'] < 3
2707
+ fail ArgumentError, 'invalid value for "opts[:"signal_period"]" when calling CryptoApi.get_crypto_price_technicals_sr, must be greater than or equal to 3.'
2708
+ end
2709
+
2710
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2711
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2712
+ end
2713
+ 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'])
2714
+ 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'
2715
+ end
2716
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2717
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_sr, must be smaller than or equal to 10000.'
2718
+ end
2719
+
2720
+ # resource path
2721
+ local_var_path = "/crypto/prices/technicals/sr"
2722
+
2723
+ # query parameters
2724
+ query_params = {}
2725
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2726
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2727
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2728
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2729
+ query_params[:'signal_period'] = opts[:'signal_period'] if !opts[:'signal_period'].nil?
2730
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2731
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2732
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2733
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2734
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2735
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2736
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2737
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2738
+
2739
+ # header parameters
2740
+ header_params = {}
2741
+ # HTTP header 'Accept' (if needed)
2742
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2743
+
2744
+ # form parameters
2745
+ form_params = {}
2746
+
2747
+ # http body (model)
2748
+ post_body = nil
2749
+ auth_names = ['ApiKeyAuth']
2750
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2751
+ :header_params => header_params,
2752
+ :query_params => query_params,
2753
+ :form_params => form_params,
2754
+ :body => post_body,
2755
+ :auth_names => auth_names,
2756
+ :return_type => 'ApiResponseCryptoStochasticOscillator')
2757
+ if @api_client.config.debugging
2758
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_sr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2759
+ end
2760
+ return data, status_code, headers
2761
+ end
2762
+
2763
+ # Triple Exponential Average
2764
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2765
+ # @param [Hash] opts the optional parameters
2766
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2767
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2768
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2769
+ # @option opts [Integer] :period The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average. (default to 15)
2770
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2771
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2772
+ # @option opts [Date] :start_date Return technicals on or after this date.
2773
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2774
+ # @option opts [Date] :end_date Return technicals on or before this date.
2775
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2776
+ # @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)
2777
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2778
+ # @return [ApiResponseCryptoTripleExponentialAverage]
2779
+ def get_crypto_price_technicals_trix(opts = {})
2780
+ data, _status_code, _headers = get_crypto_price_technicals_trix_with_http_info(opts)
2781
+ return data
2782
+ end
2783
+
2784
+ # Triple Exponential Average
2785
+ # Returns the Simple Moving Average values of Crypto Currency Prices for a Crypto Currency Pair
2786
+ # @param [Hash] opts the optional parameters
2787
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2788
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2789
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2790
+ # @option opts [Integer] :period The number of observations, per period, to calculate Exponential Moving Average for Triple Exponential Average.
2791
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2792
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2793
+ # @option opts [Date] :start_date Return technicals on or after this date.
2794
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2795
+ # @option opts [Date] :end_date Return technicals on or before this date.
2796
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2797
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2798
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2799
+ # @return [Array<(ApiResponseCryptoTripleExponentialAverage, Fixnum, Hash)>] ApiResponseCryptoTripleExponentialAverage data, response status code and response headers
2800
+ def get_crypto_price_technicals_trix_with_http_info(opts = {})
2801
+ if @api_client.config.debugging
2802
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_trix ..."
2803
+ end
2804
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 2
2805
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_trix, must be greater than or equal to 2.'
2806
+ end
2807
+
2808
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2809
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2810
+ end
2811
+ 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'])
2812
+ 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'
2813
+ end
2814
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2815
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_trix, must be smaller than or equal to 10000.'
2816
+ end
2817
+
2818
+ # resource path
2819
+ local_var_path = "/crypto/prices/technicals/trix"
2820
+
2821
+ # query parameters
2822
+ query_params = {}
2823
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2824
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2825
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2826
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2827
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2828
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2829
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2830
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2831
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2832
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2833
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2834
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2835
+
2836
+ # header parameters
2837
+ header_params = {}
2838
+ # HTTP header 'Accept' (if needed)
2839
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2840
+
2841
+ # form parameters
2842
+ form_params = {}
2843
+
2844
+ # http body (model)
2845
+ post_body = nil
2846
+ auth_names = ['ApiKeyAuth']
2847
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2848
+ :header_params => header_params,
2849
+ :query_params => query_params,
2850
+ :form_params => form_params,
2851
+ :body => post_body,
2852
+ :auth_names => auth_names,
2853
+ :return_type => 'ApiResponseCryptoTripleExponentialAverage')
2854
+ if @api_client.config.debugging
2855
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_trix\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2856
+ end
2857
+ return data, status_code, headers
2858
+ end
2859
+
2860
+ # True Strength Index
2861
+ # Returns the True Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2862
+ # @param [Hash] opts the optional parameters
2863
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2864
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2865
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2866
+ # @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)
2867
+ # @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)
2868
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating True Strength Index. (default to close)
2869
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2870
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2871
+ # @option opts [Date] :start_date Return technicals on or after this date.
2872
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2873
+ # @option opts [Date] :end_date Return technicals on or before this date.
2874
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2875
+ # @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)
2876
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2877
+ # @return [ApiResponseCryptoTrueStrengthIndex]
2878
+ def get_crypto_price_technicals_tsi(opts = {})
2879
+ data, _status_code, _headers = get_crypto_price_technicals_tsi_with_http_info(opts)
2880
+ return data
2881
+ end
2882
+
2883
+ # True Strength Index
2884
+ # Returns the True Strength Index values of Crypto Currency Prices for a Crypto Currency Pair
2885
+ # @param [Hash] opts the optional parameters
2886
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2887
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2888
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2889
+ # @option opts [Integer] :low_period The number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index.
2890
+ # @option opts [Integer] :high_period The number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index.
2891
+ # @option opts [String] :price_key The Crypto Currency Price field to use when calculating True Strength Index.
2892
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
2893
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
2894
+ # @option opts [Date] :start_date Return technicals on or after this date.
2895
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2896
+ # @option opts [Date] :end_date Return technicals on or before this date.
2897
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2898
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
2899
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2900
+ # @return [Array<(ApiResponseCryptoTrueStrengthIndex, Fixnum, Hash)>] ApiResponseCryptoTrueStrengthIndex data, response status code and response headers
2901
+ def get_crypto_price_technicals_tsi_with_http_info(opts = {})
2902
+ if @api_client.config.debugging
2903
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_tsi ..."
2904
+ end
2905
+ if @api_client.config.client_side_validation && !opts[:'low_period'].nil? && opts[:'low_period'] < 3
2906
+ fail ArgumentError, 'invalid value for "opts[:"low_period"]" when calling CryptoApi.get_crypto_price_technicals_tsi, must be greater than or equal to 3.'
2907
+ end
2908
+
2909
+ if @api_client.config.client_side_validation && !opts[:'high_period'].nil? && opts[:'high_period'] < 3
2910
+ fail ArgumentError, 'invalid value for "opts[:"high_period"]" when calling CryptoApi.get_crypto_price_technicals_tsi, must be greater than or equal to 3.'
2911
+ end
2912
+
2913
+ if @api_client.config.client_side_validation && opts[:'price_key'] && !['open', 'high', 'low', 'close', 'volume'].include?(opts[:'price_key'])
2914
+ fail ArgumentError, 'invalid value for "price_key", must be one of open, high, low, close, volume'
2915
+ end
2916
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
2917
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
2918
+ end
2919
+ 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'])
2920
+ 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'
2921
+ end
2922
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
2923
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_tsi, must be smaller than or equal to 10000.'
2924
+ end
2925
+
2926
+ # resource path
2927
+ local_var_path = "/crypto/prices/technicals/tsi"
2928
+
2929
+ # query parameters
2930
+ query_params = {}
2931
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
2932
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
2933
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
2934
+ query_params[:'low_period'] = opts[:'low_period'] if !opts[:'low_period'].nil?
2935
+ query_params[:'high_period'] = opts[:'high_period'] if !opts[:'high_period'].nil?
2936
+ query_params[:'price_key'] = opts[:'price_key'] if !opts[:'price_key'].nil?
2937
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
2938
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
2939
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
2940
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
2941
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
2942
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2943
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2944
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
2945
+
2946
+ # header parameters
2947
+ header_params = {}
2948
+ # HTTP header 'Accept' (if needed)
2949
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2950
+
2951
+ # form parameters
2952
+ form_params = {}
2953
+
2954
+ # http body (model)
2955
+ post_body = nil
2956
+ auth_names = ['ApiKeyAuth']
2957
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2958
+ :header_params => header_params,
2959
+ :query_params => query_params,
2960
+ :form_params => form_params,
2961
+ :body => post_body,
2962
+ :auth_names => auth_names,
2963
+ :return_type => 'ApiResponseCryptoTrueStrengthIndex')
2964
+ if @api_client.config.debugging
2965
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_tsi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2966
+ end
2967
+ return data, status_code, headers
2968
+ end
2969
+
2970
+ # Ultimate Oscillator
2971
+ # Returns the Ultimate Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2972
+ # @param [Hash] opts the optional parameters
2973
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
2974
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
2975
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
2976
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate the short period for Ultimate Oscillator. (default to 7)
2977
+ # @option opts [Integer] :medium_period The number of observations, per period, to calculate the medium period for Ultimate Oscillator. (default to 14)
2978
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate the long period for Ultimate Oscillator. (default to 28)
2979
+ # @option opts [Float] :short_weight The weight of short Buying Pressure average for Ultimate Oscillator. (default to 4.0)
2980
+ # @option opts [Float] :medium_weight The weight of medium Buying Pressure average for Ultimate Oscillator. (default to 2.0)
2981
+ # @option opts [Float] :long_weight The weight of long Buying Pressure average for Ultimate Oscillator. (default to 1.0)
2982
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
2983
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
2984
+ # @option opts [Date] :start_date Return technicals on or after this date.
2985
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
2986
+ # @option opts [Date] :end_date Return technicals on or before this date.
2987
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
2988
+ # @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)
2989
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
2990
+ # @return [ApiResponseCryptoUltimateOscillator]
2991
+ def get_crypto_price_technicals_uo(opts = {})
2992
+ data, _status_code, _headers = get_crypto_price_technicals_uo_with_http_info(opts)
2993
+ return data
2994
+ end
2995
+
2996
+ # Ultimate Oscillator
2997
+ # Returns the Ultimate Oscillator values of Crypto Currency Prices for a Crypto Currency Pair
2998
+ # @param [Hash] opts the optional parameters
2999
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3000
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3001
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3002
+ # @option opts [Integer] :short_period The number of observations, per period, to calculate the short period for Ultimate Oscillator.
3003
+ # @option opts [Integer] :medium_period The number of observations, per period, to calculate the medium period for Ultimate Oscillator.
3004
+ # @option opts [Integer] :long_period The number of observations, per period, to calculate the long period for Ultimate Oscillator.
3005
+ # @option opts [Float] :short_weight The weight of short Buying Pressure average for Ultimate Oscillator.
3006
+ # @option opts [Float] :medium_weight The weight of medium Buying Pressure average for Ultimate Oscillator.
3007
+ # @option opts [Float] :long_weight The weight of long Buying Pressure average for Ultimate Oscillator.
3008
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
3009
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
3010
+ # @option opts [Date] :start_date Return technicals on or after this date.
3011
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3012
+ # @option opts [Date] :end_date Return technicals on or before this date.
3013
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3014
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
3015
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3016
+ # @return [Array<(ApiResponseCryptoUltimateOscillator, Fixnum, Hash)>] ApiResponseCryptoUltimateOscillator data, response status code and response headers
3017
+ def get_crypto_price_technicals_uo_with_http_info(opts = {})
3018
+ if @api_client.config.debugging
3019
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_uo ..."
3020
+ end
3021
+ if @api_client.config.client_side_validation && !opts[:'long_period'].nil? && opts[:'long_period'] < 4
3022
+ fail ArgumentError, 'invalid value for "opts[:"long_period"]" when calling CryptoApi.get_crypto_price_technicals_uo, must be greater than or equal to 4.'
3023
+ end
3024
+
3025
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
3026
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
3027
+ end
3028
+ 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'])
3029
+ 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'
3030
+ end
3031
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
3032
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_uo, must be smaller than or equal to 10000.'
3033
+ end
3034
+
3035
+ # resource path
3036
+ local_var_path = "/crypto/prices/technicals/uo"
3037
+
3038
+ # query parameters
3039
+ query_params = {}
3040
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
3041
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
3042
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
3043
+ query_params[:'short_period'] = opts[:'short_period'] if !opts[:'short_period'].nil?
3044
+ query_params[:'medium_period'] = opts[:'medium_period'] if !opts[:'medium_period'].nil?
3045
+ query_params[:'long_period'] = opts[:'long_period'] if !opts[:'long_period'].nil?
3046
+ query_params[:'short_weight'] = opts[:'short_weight'] if !opts[:'short_weight'].nil?
3047
+ query_params[:'medium_weight'] = opts[:'medium_weight'] if !opts[:'medium_weight'].nil?
3048
+ query_params[:'long_weight'] = opts[:'long_weight'] if !opts[:'long_weight'].nil?
3049
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
3050
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
3051
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
3052
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
3053
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
3054
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
3055
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3056
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3057
+
3058
+ # header parameters
3059
+ header_params = {}
3060
+ # HTTP header 'Accept' (if needed)
3061
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3062
+
3063
+ # form parameters
3064
+ form_params = {}
3065
+
3066
+ # http body (model)
3067
+ post_body = nil
3068
+ auth_names = ['ApiKeyAuth']
3069
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3070
+ :header_params => header_params,
3071
+ :query_params => query_params,
3072
+ :form_params => form_params,
3073
+ :body => post_body,
3074
+ :auth_names => auth_names,
3075
+ :return_type => 'ApiResponseCryptoUltimateOscillator')
3076
+ if @api_client.config.debugging
3077
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_uo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3078
+ end
3079
+ return data, status_code, headers
3080
+ end
3081
+
3082
+ # Vortex Indicator
3083
+ # Returns the Vortex Indicator values of Crypto Currency Prices for a Crypto Currency Pair
3084
+ # @param [Hash] opts the optional parameters
3085
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3086
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3087
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3088
+ # @option opts [Integer] :period The number of observations, per period, to calculate Vortex Indicator. (default to 14)
3089
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
3090
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
3091
+ # @option opts [Date] :start_date Return technicals on or after this date.
3092
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3093
+ # @option opts [Date] :end_date Return technicals on or before this date.
3094
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3095
+ # @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)
3096
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3097
+ # @return [ApiResponseCryptoVortexIndicator]
3098
+ def get_crypto_price_technicals_vi(opts = {})
3099
+ data, _status_code, _headers = get_crypto_price_technicals_vi_with_http_info(opts)
3100
+ return data
3101
+ end
3102
+
3103
+ # Vortex Indicator
3104
+ # Returns the Vortex Indicator values of Crypto Currency Prices for a Crypto Currency Pair
3105
+ # @param [Hash] opts the optional parameters
3106
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3107
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3108
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3109
+ # @option opts [Integer] :period The number of observations, per period, to calculate Vortex Indicator.
3110
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
3111
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
3112
+ # @option opts [Date] :start_date Return technicals on or after this date.
3113
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3114
+ # @option opts [Date] :end_date Return technicals on or before this date.
3115
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3116
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
3117
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3118
+ # @return [Array<(ApiResponseCryptoVortexIndicator, Fixnum, Hash)>] ApiResponseCryptoVortexIndicator data, response status code and response headers
3119
+ def get_crypto_price_technicals_vi_with_http_info(opts = {})
3120
+ if @api_client.config.debugging
3121
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_vi ..."
3122
+ end
3123
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 4
3124
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_vi, must be greater than or equal to 4.'
3125
+ end
3126
+
3127
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
3128
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
3129
+ end
3130
+ 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'])
3131
+ 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'
3132
+ end
3133
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
3134
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_vi, must be smaller than or equal to 10000.'
3135
+ end
3136
+
3137
+ # resource path
3138
+ local_var_path = "/crypto/prices/technicals/vi"
3139
+
3140
+ # query parameters
3141
+ query_params = {}
3142
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
3143
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
3144
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
3145
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
3146
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
3147
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
3148
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
3149
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
3150
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
3151
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
3152
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3153
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3154
+
3155
+ # header parameters
3156
+ header_params = {}
3157
+ # HTTP header 'Accept' (if needed)
3158
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3159
+
3160
+ # form parameters
3161
+ form_params = {}
3162
+
3163
+ # http body (model)
3164
+ post_body = nil
3165
+ auth_names = ['ApiKeyAuth']
3166
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3167
+ :header_params => header_params,
3168
+ :query_params => query_params,
3169
+ :form_params => form_params,
3170
+ :body => post_body,
3171
+ :auth_names => auth_names,
3172
+ :return_type => 'ApiResponseCryptoVortexIndicator')
3173
+ if @api_client.config.debugging
3174
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_vi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3175
+ end
3176
+ return data, status_code, headers
3177
+ end
3178
+
3179
+ # Volume-price Trend
3180
+ # Returns the Volume-price Trend values of Crypto Currency Prices for a Crypto Currency Pair
3181
+ # @param [Hash] opts the optional parameters
3182
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3183
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3184
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3185
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
3186
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
3187
+ # @option opts [Date] :start_date Return technicals on or after this date.
3188
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3189
+ # @option opts [Date] :end_date Return technicals on or before this date.
3190
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3191
+ # @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)
3192
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3193
+ # @return [ApiResponseCryptoVolumePriceTrend]
3194
+ def get_crypto_price_technicals_vpt(opts = {})
3195
+ data, _status_code, _headers = get_crypto_price_technicals_vpt_with_http_info(opts)
3196
+ return data
3197
+ end
3198
+
3199
+ # Volume-price Trend
3200
+ # Returns the Volume-price Trend values of Crypto Currency Prices for a Crypto Currency Pair
3201
+ # @param [Hash] opts the optional parameters
3202
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3203
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3204
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3205
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
3206
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
3207
+ # @option opts [Date] :start_date Return technicals on or after this date.
3208
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3209
+ # @option opts [Date] :end_date Return technicals on or before this date.
3210
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3211
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
3212
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3213
+ # @return [Array<(ApiResponseCryptoVolumePriceTrend, Fixnum, Hash)>] ApiResponseCryptoVolumePriceTrend data, response status code and response headers
3214
+ def get_crypto_price_technicals_vpt_with_http_info(opts = {})
3215
+ if @api_client.config.debugging
3216
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_vpt ..."
3217
+ end
3218
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
3219
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
3220
+ end
3221
+ 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'])
3222
+ 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'
3223
+ end
3224
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
3225
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_vpt, must be smaller than or equal to 10000.'
3226
+ end
3227
+
3228
+ # resource path
3229
+ local_var_path = "/crypto/prices/technicals/vpt"
3230
+
3231
+ # query parameters
3232
+ query_params = {}
3233
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
3234
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
3235
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
3236
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
3237
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
3238
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
3239
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
3240
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
3241
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
3242
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3243
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3244
+
3245
+ # header parameters
3246
+ header_params = {}
3247
+ # HTTP header 'Accept' (if needed)
3248
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3249
+
3250
+ # form parameters
3251
+ form_params = {}
3252
+
3253
+ # http body (model)
3254
+ post_body = nil
3255
+ auth_names = ['ApiKeyAuth']
3256
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3257
+ :header_params => header_params,
3258
+ :query_params => query_params,
3259
+ :form_params => form_params,
3260
+ :body => post_body,
3261
+ :auth_names => auth_names,
3262
+ :return_type => 'ApiResponseCryptoVolumePriceTrend')
3263
+ if @api_client.config.debugging
3264
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_vpt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3265
+ end
3266
+ return data, status_code, headers
3267
+ end
3268
+
3269
+ # Volume Weighted Average Price
3270
+ # Returns the Volume Weighted Average Price values of Crypto Currency Prices for a Crypto Currency Pair
3271
+ # @param [Hash] opts the optional parameters
3272
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3273
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3274
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3275
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
3276
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
3277
+ # @option opts [Date] :start_date Return technicals on or after this date.
3278
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3279
+ # @option opts [Date] :end_date Return technicals on or before this date.
3280
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3281
+ # @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)
3282
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3283
+ # @return [ApiResponseCryptoVolumeWeightedAveragePrice]
3284
+ def get_crypto_price_technicals_vwap(opts = {})
3285
+ data, _status_code, _headers = get_crypto_price_technicals_vwap_with_http_info(opts)
3286
+ return data
3287
+ end
3288
+
3289
+ # Volume Weighted Average Price
3290
+ # Returns the Volume Weighted Average Price values of Crypto Currency Prices for a Crypto Currency Pair
3291
+ # @param [Hash] opts the optional parameters
3292
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3293
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3294
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3295
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
3296
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
3297
+ # @option opts [Date] :start_date Return technicals on or after this date.
3298
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3299
+ # @option opts [Date] :end_date Return technicals on or before this date.
3300
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3301
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
3302
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3303
+ # @return [Array<(ApiResponseCryptoVolumeWeightedAveragePrice, Fixnum, Hash)>] ApiResponseCryptoVolumeWeightedAveragePrice data, response status code and response headers
3304
+ def get_crypto_price_technicals_vwap_with_http_info(opts = {})
3305
+ if @api_client.config.debugging
3306
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_vwap ..."
3307
+ end
3308
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
3309
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
3310
+ end
3311
+ 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'])
3312
+ 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'
3313
+ end
3314
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
3315
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_vwap, must be smaller than or equal to 10000.'
3316
+ end
3317
+
3318
+ # resource path
3319
+ local_var_path = "/crypto/prices/technicals/vwap"
3320
+
3321
+ # query parameters
3322
+ query_params = {}
3323
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
3324
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
3325
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
3326
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
3327
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
3328
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
3329
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
3330
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
3331
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
3332
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3333
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3334
+
3335
+ # header parameters
3336
+ header_params = {}
3337
+ # HTTP header 'Accept' (if needed)
3338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3339
+
3340
+ # form parameters
3341
+ form_params = {}
3342
+
3343
+ # http body (model)
3344
+ post_body = nil
3345
+ auth_names = ['ApiKeyAuth']
3346
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3347
+ :header_params => header_params,
3348
+ :query_params => query_params,
3349
+ :form_params => form_params,
3350
+ :body => post_body,
3351
+ :auth_names => auth_names,
3352
+ :return_type => 'ApiResponseCryptoVolumeWeightedAveragePrice')
3353
+ if @api_client.config.debugging
3354
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_vwap\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3355
+ end
3356
+ return data, status_code, headers
3357
+ end
3358
+
3359
+ # Williams %R
3360
+ # Returns the Williams %R values of Crypto Currency Prices for a Crypto Currency Pair
3361
+ # @param [Hash] opts the optional parameters
3362
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3363
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3364
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3365
+ # @option opts [Integer] :period The number of observations, per period, to look-back when calculating Williams %R. (default to 14)
3366
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals. (default to d1)
3367
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
3368
+ # @option opts [Date] :start_date Return technicals on or after this date.
3369
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3370
+ # @option opts [Date] :end_date Return technicals on or before this date.
3371
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3372
+ # @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)
3373
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3374
+ # @return [ApiResponseCryptoWilliamsR]
3375
+ def get_crypto_price_technicals_wr(opts = {})
3376
+ data, _status_code, _headers = get_crypto_price_technicals_wr_with_http_info(opts)
3377
+ return data
3378
+ end
3379
+
3380
+ # Williams %R
3381
+ # Returns the Williams %R values of Crypto Currency Prices for a Crypto Currency Pair
3382
+ # @param [Hash] opts the optional parameters
3383
+ # @option opts [String] :pair Return technicals for the given Crypto Currency Pair.
3384
+ # @option opts [String] :exchange Return technicals for a Crypto Currency on the given Crypto Exchange.
3385
+ # @option opts [String] :currency Return technicals for the given Crypto Currency.
3386
+ # @option opts [Integer] :period The number of observations, per period, to look-back when calculating Williams %R.
3387
+ # @option opts [String] :timeframe The time interval for the prices when calculating technicals.
3388
+ # @option opts [String] :timezone Return technical date/times in this timezone, also interpret start/end date/time parameters in this timezone.
3389
+ # @option opts [Date] :start_date Return technicals on or after this date.
3390
+ # @option opts [String] :start_time Return technicals at or after this time (24-hour).
3391
+ # @option opts [Date] :end_date Return technicals on or before this date.
3392
+ # @option opts [String] :end_time Return technicals at or before this time (24-hour).
3393
+ # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
3394
+ # @option opts [String] :next_page Gets the next page of data from a previous API call
3395
+ # @return [Array<(ApiResponseCryptoWilliamsR, Fixnum, Hash)>] ApiResponseCryptoWilliamsR data, response status code and response headers
3396
+ def get_crypto_price_technicals_wr_with_http_info(opts = {})
3397
+ if @api_client.config.debugging
3398
+ @api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_price_technicals_wr ..."
3399
+ end
3400
+ if @api_client.config.client_side_validation && !opts[:'period'].nil? && opts[:'period'] < 5
3401
+ fail ArgumentError, 'invalid value for "opts[:"period"]" when calling CryptoApi.get_crypto_price_technicals_wr, must be greater than or equal to 5.'
3402
+ end
3403
+
3404
+ if @api_client.config.client_side_validation && opts[:'timeframe'] && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(opts[:'timeframe'])
3405
+ fail ArgumentError, 'invalid value for "timeframe", must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1'
3406
+ end
3407
+ 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'])
3408
+ 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'
3409
+ end
3410
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
3411
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_price_technicals_wr, must be smaller than or equal to 10000.'
3412
+ end
3413
+
3414
+ # resource path
3415
+ local_var_path = "/crypto/prices/technicals/wr"
3416
+
3417
+ # query parameters
3418
+ query_params = {}
3419
+ query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
3420
+ query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
3421
+ query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
3422
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
3423
+ query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
3424
+ query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
3425
+ query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
3426
+ query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
3427
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
3428
+ query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
3429
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3430
+ query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
3431
+
3432
+ # header parameters
3433
+ header_params = {}
3434
+ # HTTP header 'Accept' (if needed)
3435
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3436
+
3437
+ # form parameters
3438
+ form_params = {}
3439
+
3440
+ # http body (model)
3441
+ post_body = nil
3442
+ auth_names = ['ApiKeyAuth']
3443
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3444
+ :header_params => header_params,
3445
+ :query_params => query_params,
3446
+ :form_params => form_params,
3447
+ :body => post_body,
3448
+ :auth_names => auth_names,
3449
+ :return_type => 'ApiResponseCryptoWilliamsR')
3450
+ if @api_client.config.debugging
3451
+ @api_client.config.logger.debug "API called: CryptoApi#get_crypto_price_technicals_wr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3452
+ end
3453
+ return data, status_code, headers
3454
+ end
3455
+
357
3456
  # Crypto Prices
358
3457
  # Returns a list of available Crypto Currency Prices.
359
3458
  # @param timeframe The time interval for the prices.
@@ -362,9 +3461,9 @@ module Intrinio
362
3461
  # @option opts [String] :exchange Return prices for a Crypto Currency on the given Crypto Exchange.
363
3462
  # @option opts [String] :currency Return prices for the given Crypto Currency.
364
3463
  # @option opts [String] :timezone Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
365
- # @option opts [String] :start_date Return Crypto Prices on or after this date.
3464
+ # @option opts [Date] :start_date Return Crypto Prices on or after this date.
366
3465
  # @option opts [String] :start_time Return Crypto Prices at or after this time (24-hour).
367
- # @option opts [String] :end_date Return Crypto Prices on or before this date.
3466
+ # @option opts [Date] :end_date Return Crypto Prices on or before this date.
368
3467
  # @option opts [String] :end_time Return Crypto Prices at or before this time (24-hour).
369
3468
  # @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)
370
3469
  # @option opts [String] :next_page Gets the next page of data from a previous API call
@@ -382,9 +3481,9 @@ module Intrinio
382
3481
  # @option opts [String] :exchange Return prices for a Crypto Currency on the given Crypto Exchange.
383
3482
  # @option opts [String] :currency Return prices for the given Crypto Currency.
384
3483
  # @option opts [String] :timezone Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone.
385
- # @option opts [String] :start_date Return Crypto Prices on or after this date.
3484
+ # @option opts [Date] :start_date Return Crypto Prices on or after this date.
386
3485
  # @option opts [String] :start_time Return Crypto Prices at or after this time (24-hour).
387
- # @option opts [String] :end_date Return Crypto Prices on or before this date.
3486
+ # @option opts [Date] :end_date Return Crypto Prices on or before this date.
388
3487
  # @option opts [String] :end_time Return Crypto Prices at or before this time (24-hour).
389
3488
  # @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
390
3489
  # @option opts [String] :next_page Gets the next page of data from a previous API call
@@ -409,10 +3508,11 @@ module Intrinio
409
3508
  end
410
3509
 
411
3510
  # resource path
412
- local_var_path = "/crypto/prices".sub('{' + 'timeframe' + '}', timeframe.to_s)
3511
+ local_var_path = "/crypto/prices"
413
3512
 
414
3513
  # query parameters
415
3514
  query_params = {}
3515
+ query_params[:'timeframe'] = timeframe
416
3516
  query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
417
3517
  query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
418
3518
  query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?