intrinio-sdk 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -124
- data/docs/CompanyApi.md +2 -15
- data/docs/DataPointApi.md +0 -2
- data/docs/DataTagApi.md +0 -3
- data/docs/DividendRecord.md +1 -0
- data/docs/EarningsRecord.md +1 -0
- data/docs/FilingApi.md +0 -8
- data/docs/ForexApi.md +0 -3
- data/docs/Fundamental.md +1 -0
- data/docs/FundamentalsApi.md +0 -4
- data/docs/HistoricalDataApi.md +0 -1
- data/docs/IndexApi.md +0 -18
- data/docs/MunicipalityApi.md +0 -3
- data/docs/OptionsApi.md +1 -5
- data/docs/SecurityApi.md +0 -48
- data/docs/StockExchangeApi.md +0 -6
- data/docs/TechnicalApi.md +0 -3396
- data/docs/ZacksApi.md +0 -3
- data/intrinio-sdk.gemspec +2 -2
- data/lib/intrinio-sdk.rb +2 -54
- data/lib/intrinio-sdk/api/company_api.rb +4 -4
- data/lib/intrinio-sdk/api/data_point_api.rb +2 -2
- data/lib/intrinio-sdk/api/data_tag_api.rb +2 -2
- data/lib/intrinio-sdk/api/filing_api.rb +2 -2
- data/lib/intrinio-sdk/api/forex_api.rb +2 -2
- data/lib/intrinio-sdk/api/fundamentals_api.rb +2 -2
- data/lib/intrinio-sdk/api/historical_data_api.rb +2 -2
- data/lib/intrinio-sdk/api/index_api.rb +2 -2
- data/lib/intrinio-sdk/api/municipality_api.rb +2 -2
- data/lib/intrinio-sdk/api/options_api.rb +2 -2
- data/lib/intrinio-sdk/api/security_api.rb +2 -2
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +2 -2
- data/lib/intrinio-sdk/api/technical_api.rb +2 -3101
- data/lib/intrinio-sdk/api/zacks_api.rb +2 -2
- data/lib/intrinio-sdk/api_client.rb +2 -2
- data/lib/intrinio-sdk/api_error.rb +2 -2
- data/lib/intrinio-sdk/configuration.rb +2 -2
- data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_companies.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_companies_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_news.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filing_fundamentals.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filing_notes.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_filings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_forex_currencies.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_forex_pairs.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_forex_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_initial_public_offerings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_municipalities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_news.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_option_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_options.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_options_chain.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_options_expirations.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_securities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_securities_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_accumulation_distribution_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_force_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_know_sure_thing.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_mass_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_money_flow_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_moving_average_convergence_divergence.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_negative_volume_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume_mean.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_relative_strength_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_simple_moving_average.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_stochastic_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_triple_exponential_average.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_true_strength_index.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_ultimate_oscillator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_volume_price_trend.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_volume_weighted_average_price.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_vortex_indicator.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_williams_r.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings_snapshot.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_eps_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_security_zacks_sales_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_zacks_analyst_ratings.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_zacks_eps_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/api_response_zacks_sales_surprises.rb +2 -2
- data/lib/intrinio-sdk/models/average_daily_trading_volume_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/average_directional_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/average_true_range_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/awesome_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/bollinger_bands_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/chaikin_money_flow_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/commodity_channel_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/company.rb +2 -2
- data/lib/intrinio-sdk/models/company_filing.rb +2 -2
- data/lib/intrinio-sdk/models/company_initial_public_offering.rb +2 -2
- data/lib/intrinio-sdk/models/company_news.rb +2 -2
- data/lib/intrinio-sdk/models/company_news_summary.rb +2 -2
- data/lib/intrinio-sdk/models/company_summary.rb +2 -2
- data/lib/intrinio-sdk/models/data_tag.rb +2 -2
- data/lib/intrinio-sdk/models/data_tag_summary.rb +2 -2
- data/lib/intrinio-sdk/models/detrended_price_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/dividend_record.rb +13 -3
- data/lib/intrinio-sdk/models/donchian_channel_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/earnings_record.rb +13 -3
- data/lib/intrinio-sdk/models/ease_of_movement_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/economic_index.rb +2 -2
- data/lib/intrinio-sdk/models/economic_index_summary.rb +2 -2
- data/lib/intrinio-sdk/models/filing.rb +2 -2
- data/lib/intrinio-sdk/models/filing_note.rb +2 -2
- data/lib/intrinio-sdk/models/filing_note_filing.rb +2 -2
- data/lib/intrinio-sdk/models/filing_note_summary.rb +2 -2
- data/lib/intrinio-sdk/models/filing_summary.rb +2 -2
- data/lib/intrinio-sdk/models/force_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/forex_currency.rb +2 -2
- data/lib/intrinio-sdk/models/forex_pair.rb +2 -2
- data/lib/intrinio-sdk/models/forex_price.rb +2 -2
- data/lib/intrinio-sdk/models/fundamental.rb +13 -3
- data/lib/intrinio-sdk/models/fundamental_summary.rb +2 -2
- data/lib/intrinio-sdk/models/historical_data.rb +2 -2
- data/lib/intrinio-sdk/models/ichimoku_kinko_hyo_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/mass_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/municipality.rb +2 -2
- data/lib/intrinio-sdk/models/municipality_financial.rb +2 -2
- data/lib/intrinio-sdk/models/negative_volume_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/option.rb +2 -2
- data/lib/intrinio-sdk/models/option_chain.rb +2 -2
- data/lib/intrinio-sdk/models/option_price.rb +2 -2
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +2 -2
- data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/reported_financial.rb +2 -2
- data/lib/intrinio-sdk/models/reported_financial_dimension.rb +2 -2
- data/lib/intrinio-sdk/models/reported_tag.rb +2 -2
- data/lib/intrinio-sdk/models/security.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_clause.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_group.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_result.rb +2 -2
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +2 -2
- data/lib/intrinio-sdk/models/security_summary.rb +2 -2
- data/lib/intrinio-sdk/models/sic_index.rb +2 -2
- data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/standardized_financial.rb +2 -2
- data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/stock_exchange.rb +2 -2
- data/lib/intrinio-sdk/models/stock_market_index.rb +2 -2
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +2 -2
- data/lib/intrinio-sdk/models/stock_price_summary.rb +2 -2
- data/lib/intrinio-sdk/models/technical_indicator.rb +2 -2
- data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +2 -2
- data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/williams_r_technical_value.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_analyst_rating.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_analyst_rating_snapshot.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_analyst_rating_summary.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_eps_surprise.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_eps_surprise_summary.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_sales_surprise.rb +2 -2
- data/lib/intrinio-sdk/models/zacks_sales_surprise_summary.rb +2 -2
- data/lib/intrinio-sdk/version.rb +3 -3
- data/spec/api/company_api_spec.rb +3 -3
- data/spec/api/data_point_api_spec.rb +2 -2
- data/spec/api/data_tag_api_spec.rb +2 -2
- data/spec/api/filing_api_spec.rb +2 -2
- data/spec/api/forex_api_spec.rb +2 -2
- data/spec/api/fundamentals_api_spec.rb +2 -2
- data/spec/api/historical_data_api_spec.rb +2 -2
- data/spec/api/index_api_spec.rb +2 -2
- data/spec/api/municipality_api_spec.rb +2 -2
- data/spec/api/options_api_spec.rb +2 -2
- data/spec/api/security_api_spec.rb +2 -2
- data/spec/api/stock_exchange_api_spec.rb +2 -2
- data/spec/api/technical_api_spec.rb +2 -739
- data/spec/api/zacks_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/accumulation_distribution_index_technical_value_spec.rb +2 -2
- data/spec/models/api_response_companies_search_spec.rb +2 -2
- data/spec/models/api_response_companies_spec.rb +2 -2
- data/spec/models/api_response_company_filings_spec.rb +2 -2
- data/spec/models/api_response_company_fundamentals_spec.rb +2 -2
- data/spec/models/api_response_company_historical_data_spec.rb +2 -2
- data/spec/models/api_response_company_news_spec.rb +2 -2
- data/spec/models/api_response_company_securities_spec.rb +2 -2
- data/spec/models/api_response_data_tags_search_spec.rb +2 -2
- data/spec/models/api_response_data_tags_spec.rb +2 -2
- data/spec/models/api_response_economic_index_historical_data_spec.rb +2 -2
- data/spec/models/api_response_economic_indices_search_spec.rb +2 -2
- data/spec/models/api_response_economic_indices_spec.rb +2 -2
- data/spec/models/api_response_filing_fundamentals_spec.rb +2 -2
- data/spec/models/api_response_filing_notes_search_spec.rb +2 -2
- data/spec/models/api_response_filing_notes_spec.rb +2 -2
- data/spec/models/api_response_filings_spec.rb +2 -2
- data/spec/models/api_response_forex_currencies_spec.rb +2 -2
- data/spec/models/api_response_forex_pairs_spec.rb +2 -2
- data/spec/models/api_response_forex_prices_spec.rb +2 -2
- data/spec/models/api_response_historical_data_spec.rb +2 -2
- data/spec/models/api_response_initial_public_offerings_spec.rb +2 -2
- data/spec/models/api_response_municipalities_spec.rb +2 -2
- data/spec/models/api_response_municipalitiy_financials_spec.rb +2 -2
- data/spec/models/api_response_news_spec.rb +2 -2
- data/spec/models/api_response_option_prices_spec.rb +2 -2
- data/spec/models/api_response_options_chain_spec.rb +2 -2
- data/spec/models/api_response_options_expirations_spec.rb +2 -2
- data/spec/models/api_response_options_spec.rb +2 -2
- data/spec/models/api_response_reported_financials_spec.rb +2 -2
- data/spec/models/api_response_securities_search_spec.rb +2 -2
- data/spec/models/api_response_securities_spec.rb +2 -2
- data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +2 -2
- data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +2 -2
- data/spec/models/api_response_security_average_directional_index_spec.rb +2 -2
- data/spec/models/api_response_security_average_true_range_spec.rb +2 -2
- data/spec/models/api_response_security_awesome_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_bollinger_bands_spec.rb +2 -2
- data/spec/models/api_response_security_chaikin_money_flow_spec.rb +2 -2
- data/spec/models/api_response_security_commodity_channel_index_spec.rb +2 -2
- data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_donchian_channel_spec.rb +2 -2
- data/spec/models/api_response_security_ease_of_movement_spec.rb +2 -2
- data/spec/models/api_response_security_force_index_spec.rb +2 -2
- data/spec/models/api_response_security_historical_data_spec.rb +2 -2
- data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +2 -2
- data/spec/models/api_response_security_intraday_prices_spec.rb +2 -2
- data/spec/models/api_response_security_keltner_channel_spec.rb +2 -2
- data/spec/models/api_response_security_know_sure_thing_spec.rb +2 -2
- data/spec/models/api_response_security_mass_index_spec.rb +2 -2
- data/spec/models/api_response_security_money_flow_index_spec.rb +2 -2
- data/spec/models/api_response_security_moving_average_convergence_divergence_spec.rb +2 -2
- data/spec/models/api_response_security_negative_volume_index_spec.rb +2 -2
- data/spec/models/api_response_security_on_balance_volume_mean_spec.rb +2 -2
- data/spec/models/api_response_security_on_balance_volume_spec.rb +2 -2
- data/spec/models/api_response_security_relative_strength_index_spec.rb +2 -2
- data/spec/models/api_response_security_simple_moving_average_spec.rb +2 -2
- data/spec/models/api_response_security_stochastic_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +2 -2
- data/spec/models/api_response_security_stock_prices_spec.rb +2 -2
- data/spec/models/api_response_security_triple_exponential_average_spec.rb +2 -2
- data/spec/models/api_response_security_true_strength_index_spec.rb +2 -2
- data/spec/models/api_response_security_ultimate_oscillator_spec.rb +2 -2
- data/spec/models/api_response_security_volume_price_trend_spec.rb +2 -2
- data/spec/models/api_response_security_volume_weighted_average_price_spec.rb +2 -2
- data/spec/models/api_response_security_vortex_indicator_spec.rb +2 -2
- data/spec/models/api_response_security_williams_r_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_analyst_ratings_snapshot_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_analyst_ratings_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_eps_surprises_spec.rb +2 -2
- data/spec/models/api_response_security_zacks_sales_surprises_spec.rb +2 -2
- data/spec/models/api_response_sic_index_historical_data_spec.rb +2 -2
- data/spec/models/api_response_sic_indices_search_spec.rb +2 -2
- data/spec/models/api_response_sic_indices_spec.rb +2 -2
- data/spec/models/api_response_standardized_financials_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_realtime_stock_prices_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_securities_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +2 -2
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +2 -2
- data/spec/models/api_response_stock_exchanges_spec.rb +2 -2
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +2 -2
- data/spec/models/api_response_stock_market_indices_search_spec.rb +2 -2
- data/spec/models/api_response_stock_market_indices_spec.rb +2 -2
- data/spec/models/api_response_zacks_analyst_ratings_spec.rb +2 -2
- data/spec/models/api_response_zacks_eps_surprises_spec.rb +2 -2
- data/spec/models/api_response_zacks_sales_surprises_spec.rb +2 -2
- data/spec/models/average_daily_trading_volume_technical_value_spec.rb +2 -2
- data/spec/models/average_directional_index_technical_value_spec.rb +2 -2
- data/spec/models/average_true_range_technical_value_spec.rb +2 -2
- data/spec/models/awesome_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/bollinger_bands_technical_value_spec.rb +2 -2
- data/spec/models/chaikin_money_flow_technical_value_spec.rb +2 -2
- data/spec/models/commodity_channel_index_technical_value_spec.rb +2 -2
- data/spec/models/company_filing_spec.rb +2 -2
- data/spec/models/company_initial_public_offering_spec.rb +2 -2
- data/spec/models/company_news_spec.rb +2 -2
- data/spec/models/company_news_summary_spec.rb +2 -2
- data/spec/models/company_spec.rb +2 -2
- data/spec/models/company_summary_spec.rb +2 -2
- data/spec/models/data_tag_spec.rb +2 -2
- data/spec/models/data_tag_summary_spec.rb +2 -2
- data/spec/models/detrended_price_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/dividend_record_spec.rb +8 -2
- data/spec/models/donchian_channel_technical_value_spec.rb +2 -2
- data/spec/models/earnings_record_spec.rb +8 -2
- data/spec/models/ease_of_movement_technical_value_spec.rb +2 -2
- data/spec/models/economic_index_spec.rb +2 -2
- data/spec/models/economic_index_summary_spec.rb +2 -2
- data/spec/models/filing_note_filing_spec.rb +2 -2
- data/spec/models/filing_note_spec.rb +2 -2
- data/spec/models/filing_note_summary_spec.rb +2 -2
- data/spec/models/filing_spec.rb +2 -2
- data/spec/models/filing_summary_spec.rb +2 -2
- data/spec/models/force_index_technical_value_spec.rb +2 -2
- data/spec/models/forex_currency_spec.rb +2 -2
- data/spec/models/forex_pair_spec.rb +2 -2
- data/spec/models/forex_price_spec.rb +2 -2
- data/spec/models/fundamental_spec.rb +8 -2
- data/spec/models/fundamental_summary_spec.rb +2 -2
- data/spec/models/historical_data_spec.rb +2 -2
- data/spec/models/ichimoku_kinko_hyo_technical_value_spec.rb +2 -2
- data/spec/models/intraday_stock_price_spec.rb +2 -2
- data/spec/models/keltner_channel_technical_value_spec.rb +2 -2
- data/spec/models/know_sure_thing_technical_value_spec.rb +2 -2
- data/spec/models/mass_index_technical_value_spec.rb +2 -2
- data/spec/models/money_flow_index_technical_value_spec.rb +2 -2
- data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +2 -2
- data/spec/models/municipality_financial_spec.rb +2 -2
- data/spec/models/municipality_spec.rb +2 -2
- data/spec/models/negative_volume_index_technical_value_spec.rb +2 -2
- data/spec/models/on_balance_volume_mean_technical_value_spec.rb +2 -2
- data/spec/models/on_balance_volume_technical_value_spec.rb +2 -2
- data/spec/models/option_chain_spec.rb +2 -2
- data/spec/models/option_price_spec.rb +2 -2
- data/spec/models/option_spec.rb +2 -2
- data/spec/models/realtime_stock_price_security_spec.rb +2 -2
- data/spec/models/realtime_stock_price_spec.rb +2 -2
- data/spec/models/relative_strength_index_technical_value_spec.rb +2 -2
- data/spec/models/reported_financial_dimension_spec.rb +2 -2
- data/spec/models/reported_financial_spec.rb +2 -2
- data/spec/models/reported_tag_spec.rb +2 -2
- data/spec/models/security_screen_clause_spec.rb +2 -2
- data/spec/models/security_screen_group_spec.rb +2 -2
- data/spec/models/security_screen_result_data_spec.rb +2 -2
- data/spec/models/security_screen_result_spec.rb +2 -2
- data/spec/models/security_spec.rb +2 -2
- data/spec/models/security_summary_spec.rb +2 -2
- data/spec/models/sic_index_spec.rb +2 -2
- data/spec/models/simple_moving_average_technical_value_spec.rb +2 -2
- data/spec/models/standardized_financial_spec.rb +2 -2
- data/spec/models/stochastic_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/stock_exchange_spec.rb +2 -2
- data/spec/models/stock_market_index_spec.rb +2 -2
- data/spec/models/stock_market_index_summary_spec.rb +2 -2
- data/spec/models/stock_price_adjustment_spec.rb +2 -2
- data/spec/models/stock_price_adjustment_summary_spec.rb +2 -2
- data/spec/models/stock_price_spec.rb +2 -2
- data/spec/models/stock_price_summary_spec.rb +2 -2
- data/spec/models/technical_indicator_spec.rb +2 -2
- data/spec/models/triple_exponential_average_technical_value_spec.rb +2 -2
- data/spec/models/true_strength_index_technical_value_spec.rb +2 -2
- data/spec/models/ultimate_oscillator_technical_value_spec.rb +2 -2
- data/spec/models/volume_price_trend_technical_value_spec.rb +2 -2
- data/spec/models/volume_weighted_average_price_value_spec.rb +2 -2
- data/spec/models/vortex_indicator_technical_value_spec.rb +2 -2
- data/spec/models/williams_r_technical_value_spec.rb +2 -2
- data/spec/models/zacks_analyst_rating_snapshot_spec.rb +2 -2
- data/spec/models/zacks_analyst_rating_spec.rb +2 -2
- data/spec/models/zacks_analyst_rating_summary_spec.rb +2 -2
- data/spec/models/zacks_eps_surprise_spec.rb +2 -2
- data/spec/models/zacks_eps_surprise_summary_spec.rb +2 -2
- data/spec/models/zacks_sales_surprise_spec.rb +2 -2
- data/spec/models/zacks_sales_surprise_summary_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +2 -210
- data/docs/ApiResponseCryptoAccumulationDistributionIndex.md +0 -37
- data/docs/ApiResponseCryptoAverageDailyTradingVolume.md +0 -37
- data/docs/ApiResponseCryptoAverageDirectionalIndex.md +0 -37
- data/docs/ApiResponseCryptoAverageTrueRange.md +0 -37
- data/docs/ApiResponseCryptoAwesomeOscillator.md +0 -37
- data/docs/ApiResponseCryptoBollingerBands.md +0 -37
- data/docs/ApiResponseCryptoBook.md +0 -36
- data/docs/ApiResponseCryptoBookAsks.md +0 -32
- data/docs/ApiResponseCryptoBookBids.md +0 -32
- data/docs/ApiResponseCryptoChaikinMoneyFlow.md +0 -37
- data/docs/ApiResponseCryptoCommodityChannelIndex.md +0 -37
- data/docs/ApiResponseCryptoCurrencies.md +0 -23
- data/docs/ApiResponseCryptoDetrendedPriceOscillator.md +0 -37
- data/docs/ApiResponseCryptoDonchianChannel.md +0 -37
- data/docs/ApiResponseCryptoEaseOfMovement.md +0 -37
- data/docs/ApiResponseCryptoExchanges.md +0 -23
- data/docs/ApiResponseCryptoForceIndex.md +0 -37
- data/docs/ApiResponseCryptoIchimokuKinkoHyo.md +0 -37
- data/docs/ApiResponseCryptoKeltnerChannel.md +0 -37
- data/docs/ApiResponseCryptoKnowSureThing.md +0 -37
- data/docs/ApiResponseCryptoMassIndex.md +0 -37
- data/docs/ApiResponseCryptoMoneyFlowIndex.md +0 -37
- data/docs/ApiResponseCryptoMovingAverageConvergenceDivergence.md +0 -37
- data/docs/ApiResponseCryptoNegativeVolumeIndex.md +0 -37
- data/docs/ApiResponseCryptoOnBalanceVolume.md +0 -37
- data/docs/ApiResponseCryptoOnBalanceVolumeMean.md +0 -37
- data/docs/ApiResponseCryptoPairs.md +0 -24
- data/docs/ApiResponseCryptoPrices.md +0 -33
- data/docs/ApiResponseCryptoRelativeStrengthIndex.md +0 -37
- data/docs/ApiResponseCryptoSimpleMovingAverage.md +0 -37
- data/docs/ApiResponseCryptoSnapshot.md +0 -31
- data/docs/ApiResponseCryptoStats.md +0 -23
- data/docs/ApiResponseCryptoStochasticOscillator.md +0 -37
- data/docs/ApiResponseCryptoTripleExponentialAverage.md +0 -37
- data/docs/ApiResponseCryptoTrueStrengthIndex.md +0 -37
- data/docs/ApiResponseCryptoUltimateOscillator.md +0 -37
- data/docs/ApiResponseCryptoVolumePriceTrend.md +0 -37
- data/docs/ApiResponseCryptoVolumeWeightedAveragePrice.md +0 -37
- data/docs/ApiResponseCryptoVortexIndicator.md +0 -37
- data/docs/ApiResponseCryptoWilliamsR.md +0 -37
- data/docs/CryptoApi.md +0 -4185
- data/docs/CryptoAsk.md +0 -21
- data/docs/CryptoBid.md +0 -21
- data/docs/CryptoBookEntry.md +0 -21
- data/docs/CryptoCurrency.md +0 -24
- data/docs/CryptoExchange.md +0 -25
- data/docs/CryptoExchangeSummary.md +0 -21
- data/docs/CryptoPair.md +0 -27
- data/docs/CryptoPairSummary.md +0 -21
- data/docs/CryptoPrice.md +0 -25
- data/docs/CryptoSnapshot.md +0 -34
- data/docs/CryptoStat.md +0 -27
- data/lib/intrinio-sdk/api/crypto_api.rb +0 -3660
- data/lib/intrinio-sdk/models/api_response_crypto_accumulation_distribution_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_average_daily_trading_volume.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_average_directional_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_average_true_range.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_awesome_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_bollinger_bands.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_book.rb +0 -231
- data/lib/intrinio-sdk/models/api_response_crypto_book_asks.rb +0 -219
- data/lib/intrinio-sdk/models/api_response_crypto_book_bids.rb +0 -219
- data/lib/intrinio-sdk/models/api_response_crypto_chaikin_money_flow.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_commodity_channel_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_currencies.rb +0 -191
- data/lib/intrinio-sdk/models/api_response_crypto_detrended_price_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_donchian_channel.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_ease_of_movement.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_exchanges.rb +0 -191
- data/lib/intrinio-sdk/models/api_response_crypto_force_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_ichimoku_kinko_hyo.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_keltner_channel.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_know_sure_thing.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_mass_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_money_flow_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_moving_average_convergence_divergence.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_negative_volume_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_on_balance_volume.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_on_balance_volume_mean.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_pairs.rb +0 -201
- data/lib/intrinio-sdk/models/api_response_crypto_prices.rb +0 -229
- data/lib/intrinio-sdk/models/api_response_crypto_relative_strength_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_simple_moving_average.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_snapshot.rb +0 -206
- data/lib/intrinio-sdk/models/api_response_crypto_stats.rb +0 -191
- data/lib/intrinio-sdk/models/api_response_crypto_stochastic_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_triple_exponential_average.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_true_strength_index.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_ultimate_oscillator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_volume_price_trend.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_volume_weighted_average_price.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_vortex_indicator.rb +0 -238
- data/lib/intrinio-sdk/models/api_response_crypto_williams_r.rb +0 -238
- data/lib/intrinio-sdk/models/crypto_ask.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_bid.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_book_entry.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_currency.rb +0 -229
- data/lib/intrinio-sdk/models/crypto_exchange.rb +0 -239
- data/lib/intrinio-sdk/models/crypto_exchange_summary.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_pair.rb +0 -259
- data/lib/intrinio-sdk/models/crypto_pair_summary.rb +0 -199
- data/lib/intrinio-sdk/models/crypto_price.rb +0 -239
- data/lib/intrinio-sdk/models/crypto_snapshot.rb +0 -329
- data/lib/intrinio-sdk/models/crypto_stat.rb +0 -259
- data/spec/api/crypto_api_spec.rb +0 -903
- data/spec/models/api_response_crypto_accumulation_distribution_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_average_daily_trading_volume_spec.rb +0 -72
- data/spec/models/api_response_crypto_average_directional_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_average_true_range_spec.rb +0 -72
- data/spec/models/api_response_crypto_awesome_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_bollinger_bands_spec.rb +0 -72
- data/spec/models/api_response_crypto_book_asks_spec.rb +0 -60
- data/spec/models/api_response_crypto_book_bids_spec.rb +0 -60
- data/spec/models/api_response_crypto_book_spec.rb +0 -66
- data/spec/models/api_response_crypto_chaikin_money_flow_spec.rb +0 -72
- data/spec/models/api_response_crypto_commodity_channel_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_currencies_spec.rb +0 -42
- data/spec/models/api_response_crypto_detrended_price_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_donchian_channel_spec.rb +0 -72
- data/spec/models/api_response_crypto_ease_of_movement_spec.rb +0 -72
- data/spec/models/api_response_crypto_exchanges_spec.rb +0 -42
- data/spec/models/api_response_crypto_force_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_ichimoku_kinko_hyo_spec.rb +0 -72
- data/spec/models/api_response_crypto_keltner_channel_spec.rb +0 -72
- data/spec/models/api_response_crypto_know_sure_thing_spec.rb +0 -72
- data/spec/models/api_response_crypto_mass_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_money_flow_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_moving_average_convergence_divergence_spec.rb +0 -72
- data/spec/models/api_response_crypto_negative_volume_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_on_balance_volume_mean_spec.rb +0 -72
- data/spec/models/api_response_crypto_on_balance_volume_spec.rb +0 -72
- data/spec/models/api_response_crypto_pairs_spec.rb +0 -48
- data/spec/models/api_response_crypto_prices_spec.rb +0 -66
- data/spec/models/api_response_crypto_relative_strength_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_simple_moving_average_spec.rb +0 -72
- data/spec/models/api_response_crypto_snapshot_spec.rb +0 -54
- data/spec/models/api_response_crypto_stats_spec.rb +0 -42
- data/spec/models/api_response_crypto_stochastic_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_triple_exponential_average_spec.rb +0 -72
- data/spec/models/api_response_crypto_true_strength_index_spec.rb +0 -72
- data/spec/models/api_response_crypto_ultimate_oscillator_spec.rb +0 -72
- data/spec/models/api_response_crypto_volume_price_trend_spec.rb +0 -72
- data/spec/models/api_response_crypto_volume_weighted_average_price_spec.rb +0 -72
- data/spec/models/api_response_crypto_vortex_indicator_spec.rb +0 -72
- data/spec/models/api_response_crypto_williams_r_spec.rb +0 -72
- data/spec/models/crypto_ask_spec.rb +0 -48
- data/spec/models/crypto_bid_spec.rb +0 -48
- data/spec/models/crypto_book_entry_spec.rb +0 -48
- data/spec/models/crypto_currency_spec.rb +0 -66
- data/spec/models/crypto_exchange_spec.rb +0 -72
- data/spec/models/crypto_exchange_summary_spec.rb +0 -48
- data/spec/models/crypto_pair_spec.rb +0 -84
- data/spec/models/crypto_pair_summary_spec.rb +0 -48
- data/spec/models/crypto_price_spec.rb +0 -72
- data/spec/models/crypto_snapshot_spec.rb +0 -126
- data/spec/models/crypto_stat_spec.rb +0 -84
data/docs/CryptoAsk.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoAsk)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoAsk
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**price** | Float | The ask price of the book entry.
|
16
|
-
**size** | Float | The size for the ask price of the book entry.
|
17
|
-
|
18
|
-
[//]: # (END_DEFINITION)
|
19
|
-
|
20
|
-
|
21
|
-
|
data/docs/CryptoBid.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoBid)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoBid
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**price** | Float | The bid price of the book entry.
|
16
|
-
**size** | Float | The size for the bid price of the book entry.
|
17
|
-
|
18
|
-
[//]: # (END_DEFINITION)
|
19
|
-
|
20
|
-
|
21
|
-
|
data/docs/CryptoBookEntry.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoBookEntry)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoBookEntry
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**price** | Float | The price of the book entry.
|
16
|
-
**size** | Float | The size for the price of the book entry.
|
17
|
-
|
18
|
-
[//]: # (END_DEFINITION)
|
19
|
-
|
20
|
-
|
21
|
-
|
data/docs/CryptoCurrency.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoCurrency)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoCurrency
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**name** | String | The common name of the crypto currency.
|
16
|
-
**code** | String | A code representing the crypto currency.
|
17
|
-
**symbol** | String | The symbol of the Crypto Currency.
|
18
|
-
**first_price_date** | String | The earliest date that daily historical pricing is available for.
|
19
|
-
**last_price_date** | String | The most recent date that daily historical pricing is available for.
|
20
|
-
|
21
|
-
[//]: # (END_DEFINITION)
|
22
|
-
|
23
|
-
|
24
|
-
|
data/docs/CryptoExchange.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoExchange)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoExchange
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**name** | String | The Crypto Exchange name.
|
16
|
-
**code** | String | The Crypto Exchange code.
|
17
|
-
**book_depth_available** | BOOLEAN | A boolean, representing whether book depth data is provided by this exchange or not.
|
18
|
-
**history_available** | BOOLEAN | A boolean, representing whether historical data is provided by this exchange or not.
|
19
|
-
**snapshot_available** | BOOLEAN | A boolean, representing whether snpashot data is provided by this exchange or not.
|
20
|
-
**trades_available** | BOOLEAN | A boolean, representing whether trade data is provided by this exchange or not.
|
21
|
-
|
22
|
-
[//]: # (END_DEFINITION)
|
23
|
-
|
24
|
-
|
25
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoExchangeSummary)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoExchangeSummary
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**name** | String | The Crypto Exchange name.
|
16
|
-
**code** | String | The Crypto Exchange code.
|
17
|
-
|
18
|
-
[//]: # (END_DEFINITION)
|
19
|
-
|
20
|
-
|
21
|
-
|
data/docs/CryptoPair.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoPair)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoPair
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**name** | String | The Crypto Currency Pair name.
|
16
|
-
**code** | String | The Crypto Currency Pair code.
|
17
|
-
**first_price_date** | String | The earliest date that daily historical pricing is available for.
|
18
|
-
**last_price_date** | String | The most recent date that daily historical pricing is available for.
|
19
|
-
**book_depth_available** | BOOLEAN | A boolean, representing whether this pair has book depth data available or not.
|
20
|
-
**history_available** | BOOLEAN | A boolean, representing whether this pair has historical price data available or not.
|
21
|
-
**snapshot_available** | BOOLEAN | A boolean, representing whether this pair has snapshot data available or not.
|
22
|
-
**trades_available** | BOOLEAN | A boolean, representing whether this pair has trade data available or not.
|
23
|
-
|
24
|
-
[//]: # (END_DEFINITION)
|
25
|
-
|
26
|
-
|
27
|
-
|
data/docs/CryptoPairSummary.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoPairSummary)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoPairSummary
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**name** | String | The Crypto Currency Pair name.
|
16
|
-
**code** | String | The Crypto Currency Pair code.
|
17
|
-
|
18
|
-
[//]: # (END_DEFINITION)
|
19
|
-
|
20
|
-
|
21
|
-
|
data/docs/CryptoPrice.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoPrice)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoPrice
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**time** | DateTime | The date and time of the beginning of the timeframe (in UTC). The open prices would be at this time, while close prices would be at this time plus the timeframe.
|
16
|
-
**open** | Float | The opening price of the timeframe.
|
17
|
-
**high** | Float | The high price of the timeframe.
|
18
|
-
**low** | Float | The low price of the timeframe.
|
19
|
-
**close** | Float | The closing price of the timeframe.
|
20
|
-
**volume** | Float | The volume during the timeframe.
|
21
|
-
|
22
|
-
[//]: # (END_DEFINITION)
|
23
|
-
|
24
|
-
|
25
|
-
|
data/docs/CryptoSnapshot.md
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoSnapshot)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoSnapshot
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**last_updated** | String | UTC timestamp of when the snapshot was last updated.
|
16
|
-
**bid** | Float | The bid for the Crypto Currency Pair on the exchange.
|
17
|
-
**bid_size** | Float | The size of the bid for the Crypto Currency Pair on the exchange.
|
18
|
-
**ask** | Float | The ask for the Crypto Currency Pair on the exchange.
|
19
|
-
**ask_size** | Float | The size of the ask for the Crypto Currency Pair on the exchange.
|
20
|
-
**change** | Float | The notional change in price over the last 24 hours.
|
21
|
-
**change_percent** | Float | The percent change in price over the last 24 hours.
|
22
|
-
**volume** | Float | The volume of the Crypto Currency Pair on the exchange.
|
23
|
-
**open** | Float | The opening price of the currency on the exchange.
|
24
|
-
**high** | Float | The highest price of the currency on the exchange for the last 24 hours.
|
25
|
-
**low** | Float | The lowest price of the currency on the exchange for the last 24 hours.
|
26
|
-
**last_trade_side** | String | The side of the last trade, either buy or sell.
|
27
|
-
**last_trade_time** | String | UTC timestamp of the last trade for the Crypto Currency Pair on the exchange.
|
28
|
-
**last_trade_price** | Float | The price of the last trade for the Crypto Currency Pair on the exchange.
|
29
|
-
**last_trade_size** | Float | The size of the last trade for the Crypto Currency Pair on the exchange.
|
30
|
-
|
31
|
-
[//]: # (END_DEFINITION)
|
32
|
-
|
33
|
-
|
34
|
-
|
data/docs/CryptoStat.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
[//]: # (CLASS:Intrinio::CryptoStat)
|
4
|
-
|
5
|
-
[//]: # (KIND:object)
|
6
|
-
|
7
|
-
### Intrinio::CryptoStat
|
8
|
-
|
9
|
-
#### Properties
|
10
|
-
|
11
|
-
[//]: # (START_DEFINITION)
|
12
|
-
|
13
|
-
Name | Type | Description
|
14
|
-
------------ | ------------- | -------------
|
15
|
-
**name** | String | The common name of the crypto currency.
|
16
|
-
**code** | String | A code representing the crypto currency.
|
17
|
-
**symbol** | String | The symbol of the Crypto Currency.
|
18
|
-
**market_cap_usd** | Float | The market cap of the Crypto Currency in USD.
|
19
|
-
**available_supply** | Float | The available supply of the Crypto Currency.
|
20
|
-
**total_supply** | Float | The total supply of the Crypto Currency.
|
21
|
-
**max_supply** | Float | The maxmium supply of coins available to mine.
|
22
|
-
**last_updated** | String | UTC timestamp of when the data was last updated.
|
23
|
-
|
24
|
-
[//]: # (END_DEFINITION)
|
25
|
-
|
26
|
-
|
27
|
-
|
@@ -1,3660 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Intrinio API
|
3
|
-
|
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
|
-
|
6
|
-
OpenAPI spec version: 2.8.4
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require "uri"
|
14
|
-
|
15
|
-
module Intrinio
|
16
|
-
class CryptoApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
|
23
|
-
# Crypto Book Asks
|
24
|
-
# Returns the entire ask order book for a given Crypto Currency Pair and Crypto Exchange.
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [String] :pair Return the order book asks for the given Crypto Currency Pair.
|
27
|
-
# @option opts [String] :exchange Return the order book asks for a Crypto Currency on the given Crypto Exchange.
|
28
|
-
# @option opts [String] :currency Return the order book asks for the given Crypto Currency.
|
29
|
-
# @return [ApiResponseCryptoBookAsks]
|
30
|
-
def get_crypto_book_asks(opts = {})
|
31
|
-
data, _status_code, _headers = get_crypto_book_asks_with_http_info(opts)
|
32
|
-
return data
|
33
|
-
end
|
34
|
-
|
35
|
-
# Crypto Book Asks
|
36
|
-
# Returns the entire ask order book for a given Crypto Currency Pair and Crypto Exchange.
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :pair Return the order book asks for the given Crypto Currency Pair.
|
39
|
-
# @option opts [String] :exchange Return the order book asks for a Crypto Currency on the given Crypto Exchange.
|
40
|
-
# @option opts [String] :currency Return the order book asks for the given Crypto Currency.
|
41
|
-
# @return [Array<(ApiResponseCryptoBookAsks, Fixnum, Hash)>] ApiResponseCryptoBookAsks data, response status code and response headers
|
42
|
-
def get_crypto_book_asks_with_http_info(opts = {})
|
43
|
-
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_book_asks ..."
|
45
|
-
end
|
46
|
-
# resource path
|
47
|
-
local_var_path = "/crypto/book/asks"
|
48
|
-
|
49
|
-
# query parameters
|
50
|
-
query_params = {}
|
51
|
-
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
52
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
53
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
54
|
-
|
55
|
-
# header parameters
|
56
|
-
header_params = {}
|
57
|
-
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
-
|
60
|
-
# form parameters
|
61
|
-
form_params = {}
|
62
|
-
|
63
|
-
# http body (model)
|
64
|
-
post_body = nil
|
65
|
-
auth_names = ['ApiKeyAuth']
|
66
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
67
|
-
:header_params => header_params,
|
68
|
-
:query_params => query_params,
|
69
|
-
:form_params => form_params,
|
70
|
-
:body => post_body,
|
71
|
-
:auth_names => auth_names,
|
72
|
-
:return_type => 'ApiResponseCryptoBookAsks')
|
73
|
-
if @api_client.config.debugging
|
74
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_book_asks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
-
end
|
76
|
-
return data, status_code, headers
|
77
|
-
end
|
78
|
-
|
79
|
-
# Crypto Book Bids
|
80
|
-
# Returns the entire bid order book for a given Crypto Currency Pair and Crypto Exchange.
|
81
|
-
# @param [Hash] opts the optional parameters
|
82
|
-
# @option opts [String] :pair Return the order book bids for the given Crypto Currency Pair.
|
83
|
-
# @option opts [String] :exchange Return the order book bids for a Crypto Currency on the given Crypto Exchange.
|
84
|
-
# @option opts [String] :currency Return the order book bids for the given Crypto Currency.
|
85
|
-
# @return [ApiResponseCryptoBookBids]
|
86
|
-
def get_crypto_book_bids(opts = {})
|
87
|
-
data, _status_code, _headers = get_crypto_book_bids_with_http_info(opts)
|
88
|
-
return data
|
89
|
-
end
|
90
|
-
|
91
|
-
# Crypto Book Bids
|
92
|
-
# Returns the entire bid order book for a given Crypto Currency Pair and Crypto Exchange.
|
93
|
-
# @param [Hash] opts the optional parameters
|
94
|
-
# @option opts [String] :pair Return the order book bids for the given Crypto Currency Pair.
|
95
|
-
# @option opts [String] :exchange Return the order book bids for a Crypto Currency on the given Crypto Exchange.
|
96
|
-
# @option opts [String] :currency Return the order book bids for the given Crypto Currency.
|
97
|
-
# @return [Array<(ApiResponseCryptoBookBids, Fixnum, Hash)>] ApiResponseCryptoBookBids data, response status code and response headers
|
98
|
-
def get_crypto_book_bids_with_http_info(opts = {})
|
99
|
-
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_book_bids ..."
|
101
|
-
end
|
102
|
-
# resource path
|
103
|
-
local_var_path = "/crypto/book/bids"
|
104
|
-
|
105
|
-
# query parameters
|
106
|
-
query_params = {}
|
107
|
-
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
108
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
109
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
110
|
-
|
111
|
-
# header parameters
|
112
|
-
header_params = {}
|
113
|
-
# HTTP header 'Accept' (if needed)
|
114
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
115
|
-
|
116
|
-
# form parameters
|
117
|
-
form_params = {}
|
118
|
-
|
119
|
-
# http body (model)
|
120
|
-
post_body = nil
|
121
|
-
auth_names = ['ApiKeyAuth']
|
122
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
123
|
-
:header_params => header_params,
|
124
|
-
:query_params => query_params,
|
125
|
-
:form_params => form_params,
|
126
|
-
:body => post_body,
|
127
|
-
:auth_names => auth_names,
|
128
|
-
:return_type => 'ApiResponseCryptoBookBids')
|
129
|
-
if @api_client.config.debugging
|
130
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_book_bids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
-
end
|
132
|
-
return data, status_code, headers
|
133
|
-
end
|
134
|
-
|
135
|
-
# Crypto Book Summary
|
136
|
-
# Returns the order book summary (bid/ask prices and size) for a given Crypto Currency Pair and Crypto Exchange.
|
137
|
-
# @param [Hash] opts the optional parameters
|
138
|
-
# @option opts [Integer] :levels The number of prices/levels to return on each side. For example, the max of 50 levels will return up to 50 bid prices and 50 ask prices.
|
139
|
-
# @option opts [String] :pair Return the order book summary for the given Crypto Currency Pair.
|
140
|
-
# @option opts [String] :exchange Return the order book summary for a Crypto Currency on the given Crypto Exchange.
|
141
|
-
# @option opts [String] :currency Return the order book summary for the given Crypto Currency.
|
142
|
-
# @return [ApiResponseCryptoBook]
|
143
|
-
def get_crypto_book_summary(opts = {})
|
144
|
-
data, _status_code, _headers = get_crypto_book_summary_with_http_info(opts)
|
145
|
-
return data
|
146
|
-
end
|
147
|
-
|
148
|
-
# Crypto Book Summary
|
149
|
-
# Returns the order book summary (bid/ask prices and size) for a given Crypto Currency Pair and Crypto Exchange.
|
150
|
-
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [Integer] :levels The number of prices/levels to return on each side. For example, the max of 50 levels will return up to 50 bid prices and 50 ask prices.
|
152
|
-
# @option opts [String] :pair Return the order book summary for the given Crypto Currency Pair.
|
153
|
-
# @option opts [String] :exchange Return the order book summary for a Crypto Currency on the given Crypto Exchange.
|
154
|
-
# @option opts [String] :currency Return the order book summary for the given Crypto Currency.
|
155
|
-
# @return [Array<(ApiResponseCryptoBook, Fixnum, Hash)>] ApiResponseCryptoBook data, response status code and response headers
|
156
|
-
def get_crypto_book_summary_with_http_info(opts = {})
|
157
|
-
if @api_client.config.debugging
|
158
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_book_summary ..."
|
159
|
-
end
|
160
|
-
# resource path
|
161
|
-
local_var_path = "/crypto/book"
|
162
|
-
|
163
|
-
# query parameters
|
164
|
-
query_params = {}
|
165
|
-
query_params[:'levels'] = opts[:'levels'] if !opts[:'levels'].nil?
|
166
|
-
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
167
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
168
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
169
|
-
|
170
|
-
# header parameters
|
171
|
-
header_params = {}
|
172
|
-
# HTTP header 'Accept' (if needed)
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
174
|
-
|
175
|
-
# form parameters
|
176
|
-
form_params = {}
|
177
|
-
|
178
|
-
# http body (model)
|
179
|
-
post_body = nil
|
180
|
-
auth_names = ['ApiKeyAuth']
|
181
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
182
|
-
:header_params => header_params,
|
183
|
-
:query_params => query_params,
|
184
|
-
:form_params => form_params,
|
185
|
-
:body => post_body,
|
186
|
-
:auth_names => auth_names,
|
187
|
-
:return_type => 'ApiResponseCryptoBook')
|
188
|
-
if @api_client.config.debugging
|
189
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_book_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
190
|
-
end
|
191
|
-
return data, status_code, headers
|
192
|
-
end
|
193
|
-
|
194
|
-
# Crypto Currencies
|
195
|
-
# Returns a list of Crypto Currencies for which prices are available.
|
196
|
-
# @param [Hash] opts the optional parameters
|
197
|
-
# @option opts [String] :exchange Returns Crypto Currencies traded on the given Crypto Exchange.
|
198
|
-
# @return [ApiResponseCryptoCurrencies]
|
199
|
-
def get_crypto_currencies(opts = {})
|
200
|
-
data, _status_code, _headers = get_crypto_currencies_with_http_info(opts)
|
201
|
-
return data
|
202
|
-
end
|
203
|
-
|
204
|
-
# Crypto Currencies
|
205
|
-
# Returns a list of Crypto Currencies for which prices are available.
|
206
|
-
# @param [Hash] opts the optional parameters
|
207
|
-
# @option opts [String] :exchange Returns Crypto Currencies traded on the given Crypto Exchange.
|
208
|
-
# @return [Array<(ApiResponseCryptoCurrencies, Fixnum, Hash)>] ApiResponseCryptoCurrencies data, response status code and response headers
|
209
|
-
def get_crypto_currencies_with_http_info(opts = {})
|
210
|
-
if @api_client.config.debugging
|
211
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_currencies ..."
|
212
|
-
end
|
213
|
-
# resource path
|
214
|
-
local_var_path = "/crypto/currencies"
|
215
|
-
|
216
|
-
# query parameters
|
217
|
-
query_params = {}
|
218
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
219
|
-
|
220
|
-
# header parameters
|
221
|
-
header_params = {}
|
222
|
-
# HTTP header 'Accept' (if needed)
|
223
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
224
|
-
|
225
|
-
# form parameters
|
226
|
-
form_params = {}
|
227
|
-
|
228
|
-
# http body (model)
|
229
|
-
post_body = nil
|
230
|
-
auth_names = ['ApiKeyAuth']
|
231
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
232
|
-
:header_params => header_params,
|
233
|
-
:query_params => query_params,
|
234
|
-
:form_params => form_params,
|
235
|
-
:body => post_body,
|
236
|
-
:auth_names => auth_names,
|
237
|
-
:return_type => 'ApiResponseCryptoCurrencies')
|
238
|
-
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_currencies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
240
|
-
end
|
241
|
-
return data, status_code, headers
|
242
|
-
end
|
243
|
-
|
244
|
-
# Crypto Exchanges
|
245
|
-
# Returns a list of Crypto Exchanges for which prices are available.
|
246
|
-
# @param [Hash] opts the optional parameters
|
247
|
-
# @option opts [String] :pair Filter exchanges based on whether or not prices are available on the exchange for the crypto currency pair.
|
248
|
-
# @return [ApiResponseCryptoExchanges]
|
249
|
-
def get_crypto_exchanges(opts = {})
|
250
|
-
data, _status_code, _headers = get_crypto_exchanges_with_http_info(opts)
|
251
|
-
return data
|
252
|
-
end
|
253
|
-
|
254
|
-
# Crypto Exchanges
|
255
|
-
# Returns a list of Crypto Exchanges for which prices are available.
|
256
|
-
# @param [Hash] opts the optional parameters
|
257
|
-
# @option opts [String] :pair Filter exchanges based on whether or not prices are available on the exchange for the crypto currency pair.
|
258
|
-
# @return [Array<(ApiResponseCryptoExchanges, Fixnum, Hash)>] ApiResponseCryptoExchanges data, response status code and response headers
|
259
|
-
def get_crypto_exchanges_with_http_info(opts = {})
|
260
|
-
if @api_client.config.debugging
|
261
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_exchanges ..."
|
262
|
-
end
|
263
|
-
# resource path
|
264
|
-
local_var_path = "/crypto/exchanges"
|
265
|
-
|
266
|
-
# query parameters
|
267
|
-
query_params = {}
|
268
|
-
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
269
|
-
|
270
|
-
# header parameters
|
271
|
-
header_params = {}
|
272
|
-
# HTTP header 'Accept' (if needed)
|
273
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
274
|
-
|
275
|
-
# form parameters
|
276
|
-
form_params = {}
|
277
|
-
|
278
|
-
# http body (model)
|
279
|
-
post_body = nil
|
280
|
-
auth_names = ['ApiKeyAuth']
|
281
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
282
|
-
:header_params => header_params,
|
283
|
-
:query_params => query_params,
|
284
|
-
:form_params => form_params,
|
285
|
-
:body => post_body,
|
286
|
-
:auth_names => auth_names,
|
287
|
-
:return_type => 'ApiResponseCryptoExchanges')
|
288
|
-
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_exchanges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
290
|
-
end
|
291
|
-
return data, status_code, headers
|
292
|
-
end
|
293
|
-
|
294
|
-
# Crypto Pairs
|
295
|
-
# Returns a list of Crypto Currency Pairs for which data is available.
|
296
|
-
# @param [Hash] opts the optional parameters
|
297
|
-
# @option opts [String] :exchange Return pairs traded on the given Crypto Exchange.
|
298
|
-
# @option opts [String] :currency Return pairs with one side being the given Crypto Currency.
|
299
|
-
# @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)
|
300
|
-
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
301
|
-
# @return [ApiResponseCryptoPairs]
|
302
|
-
def get_crypto_pairs(opts = {})
|
303
|
-
data, _status_code, _headers = get_crypto_pairs_with_http_info(opts)
|
304
|
-
return data
|
305
|
-
end
|
306
|
-
|
307
|
-
# Crypto Pairs
|
308
|
-
# Returns a list of Crypto Currency Pairs for which data is available.
|
309
|
-
# @param [Hash] opts the optional parameters
|
310
|
-
# @option opts [String] :exchange Return pairs traded on the given Crypto Exchange.
|
311
|
-
# @option opts [String] :currency Return pairs with one side being the given Crypto Currency.
|
312
|
-
# @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
|
313
|
-
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
314
|
-
# @return [Array<(ApiResponseCryptoPairs, Fixnum, Hash)>] ApiResponseCryptoPairs data, response status code and response headers
|
315
|
-
def get_crypto_pairs_with_http_info(opts = {})
|
316
|
-
if @api_client.config.debugging
|
317
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_pairs ..."
|
318
|
-
end
|
319
|
-
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
320
|
-
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_pairs, must be smaller than or equal to 10000.'
|
321
|
-
end
|
322
|
-
|
323
|
-
# resource path
|
324
|
-
local_var_path = "/crypto/pairs"
|
325
|
-
|
326
|
-
# query parameters
|
327
|
-
query_params = {}
|
328
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
329
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
330
|
-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
331
|
-
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
332
|
-
|
333
|
-
# header parameters
|
334
|
-
header_params = {}
|
335
|
-
# HTTP header 'Accept' (if needed)
|
336
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
337
|
-
|
338
|
-
# form parameters
|
339
|
-
form_params = {}
|
340
|
-
|
341
|
-
# http body (model)
|
342
|
-
post_body = nil
|
343
|
-
auth_names = ['ApiKeyAuth']
|
344
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
345
|
-
:header_params => header_params,
|
346
|
-
:query_params => query_params,
|
347
|
-
:form_params => form_params,
|
348
|
-
:body => post_body,
|
349
|
-
:auth_names => auth_names,
|
350
|
-
:return_type => 'ApiResponseCryptoPairs')
|
351
|
-
if @api_client.config.debugging
|
352
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_pairs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
|
-
end
|
354
|
-
return data, status_code, headers
|
355
|
-
end
|
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
|
-
|
3456
|
-
# Crypto Prices
|
3457
|
-
# Returns a list of available Crypto Currency Prices.
|
3458
|
-
# @param timeframe The time interval for the prices.
|
3459
|
-
# @param [Hash] opts the optional parameters
|
3460
|
-
# @option opts [String] :pair Return prices for the given Crypto Currency Pair.
|
3461
|
-
# @option opts [String] :exchange Return prices for a Crypto Currency on the given Crypto Exchange.
|
3462
|
-
# @option opts [String] :currency Return prices for the given Crypto Currency.
|
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)
|
3464
|
-
# @option opts [Date] :start_date Return Crypto Prices on or after this date.
|
3465
|
-
# @option opts [String] :start_time Return Crypto Prices at or after this time (24-hour).
|
3466
|
-
# @option opts [Date] :end_date Return Crypto Prices on or before this date.
|
3467
|
-
# @option opts [String] :end_time Return Crypto Prices at or before this time (24-hour).
|
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)
|
3469
|
-
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
3470
|
-
# @return [ApiResponseCryptoPrices]
|
3471
|
-
def get_crypto_prices(timeframe, opts = {})
|
3472
|
-
data, _status_code, _headers = get_crypto_prices_with_http_info(timeframe, opts)
|
3473
|
-
return data
|
3474
|
-
end
|
3475
|
-
|
3476
|
-
# Crypto Prices
|
3477
|
-
# Returns a list of available Crypto Currency Prices.
|
3478
|
-
# @param timeframe The time interval for the prices.
|
3479
|
-
# @param [Hash] opts the optional parameters
|
3480
|
-
# @option opts [String] :pair Return prices for the given Crypto Currency Pair.
|
3481
|
-
# @option opts [String] :exchange Return prices for a Crypto Currency on the given Crypto Exchange.
|
3482
|
-
# @option opts [String] :currency Return prices for the given Crypto Currency.
|
3483
|
-
# @option opts [String] :timezone Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone.
|
3484
|
-
# @option opts [Date] :start_date Return Crypto Prices on or after this date.
|
3485
|
-
# @option opts [String] :start_time Return Crypto Prices at or after this time (24-hour).
|
3486
|
-
# @option opts [Date] :end_date Return Crypto Prices on or before this date.
|
3487
|
-
# @option opts [String] :end_time Return Crypto Prices at or before this time (24-hour).
|
3488
|
-
# @option opts [Integer] :page_size An integer greater than or equal to 1 for specifying the number of results on each page.
|
3489
|
-
# @option opts [String] :next_page Gets the next page of data from a previous API call
|
3490
|
-
# @return [Array<(ApiResponseCryptoPrices, Fixnum, Hash)>] ApiResponseCryptoPrices data, response status code and response headers
|
3491
|
-
def get_crypto_prices_with_http_info(timeframe, opts = {})
|
3492
|
-
if @api_client.config.debugging
|
3493
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_prices ..."
|
3494
|
-
end
|
3495
|
-
# verify the required parameter 'timeframe' is set
|
3496
|
-
if @api_client.config.client_side_validation && timeframe.nil?
|
3497
|
-
fail ArgumentError, "Missing the required parameter 'timeframe' when calling CryptoApi.get_crypto_prices"
|
3498
|
-
end
|
3499
|
-
# verify enum value
|
3500
|
-
if @api_client.config.client_side_validation && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(timeframe)
|
3501
|
-
fail ArgumentError, "invalid value for 'timeframe', must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1"
|
3502
|
-
end
|
3503
|
-
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'])
|
3504
|
-
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'
|
3505
|
-
end
|
3506
|
-
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
3507
|
-
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_prices, must be smaller than or equal to 10000.'
|
3508
|
-
end
|
3509
|
-
|
3510
|
-
# resource path
|
3511
|
-
local_var_path = "/crypto/prices"
|
3512
|
-
|
3513
|
-
# query parameters
|
3514
|
-
query_params = {}
|
3515
|
-
query_params[:'timeframe'] = timeframe
|
3516
|
-
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
3517
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
3518
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
3519
|
-
query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
|
3520
|
-
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
3521
|
-
query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
3522
|
-
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
3523
|
-
query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
3524
|
-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
3525
|
-
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
3526
|
-
|
3527
|
-
# header parameters
|
3528
|
-
header_params = {}
|
3529
|
-
# HTTP header 'Accept' (if needed)
|
3530
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3531
|
-
|
3532
|
-
# form parameters
|
3533
|
-
form_params = {}
|
3534
|
-
|
3535
|
-
# http body (model)
|
3536
|
-
post_body = nil
|
3537
|
-
auth_names = ['ApiKeyAuth']
|
3538
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3539
|
-
:header_params => header_params,
|
3540
|
-
:query_params => query_params,
|
3541
|
-
:form_params => form_params,
|
3542
|
-
:body => post_body,
|
3543
|
-
:auth_names => auth_names,
|
3544
|
-
:return_type => 'ApiResponseCryptoPrices')
|
3545
|
-
if @api_client.config.debugging
|
3546
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_prices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3547
|
-
end
|
3548
|
-
return data, status_code, headers
|
3549
|
-
end
|
3550
|
-
|
3551
|
-
# Crypto Snapshot
|
3552
|
-
# Returns a market snapshot over that last 24 hours for the given currency pair and exchange.
|
3553
|
-
# @param [Hash] opts the optional parameters
|
3554
|
-
# @option opts [String] :pair Return the snapshot for the given Crypto Currency Pair.
|
3555
|
-
# @option opts [String] :exchange Return the snapshot for a Crypto Currency on the given Crypto Exchange.
|
3556
|
-
# @option opts [String] :currency Return the snapshot for the given Crypto Currency.
|
3557
|
-
# @return [ApiResponseCryptoSnapshot]
|
3558
|
-
def get_crypto_snapshot(opts = {})
|
3559
|
-
data, _status_code, _headers = get_crypto_snapshot_with_http_info(opts)
|
3560
|
-
return data
|
3561
|
-
end
|
3562
|
-
|
3563
|
-
# Crypto Snapshot
|
3564
|
-
# Returns a market snapshot over that last 24 hours for the given currency pair and exchange.
|
3565
|
-
# @param [Hash] opts the optional parameters
|
3566
|
-
# @option opts [String] :pair Return the snapshot for the given Crypto Currency Pair.
|
3567
|
-
# @option opts [String] :exchange Return the snapshot for a Crypto Currency on the given Crypto Exchange.
|
3568
|
-
# @option opts [String] :currency Return the snapshot for the given Crypto Currency.
|
3569
|
-
# @return [Array<(ApiResponseCryptoSnapshot, Fixnum, Hash)>] ApiResponseCryptoSnapshot data, response status code and response headers
|
3570
|
-
def get_crypto_snapshot_with_http_info(opts = {})
|
3571
|
-
if @api_client.config.debugging
|
3572
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_snapshot ..."
|
3573
|
-
end
|
3574
|
-
# resource path
|
3575
|
-
local_var_path = "/crypto/snapshot"
|
3576
|
-
|
3577
|
-
# query parameters
|
3578
|
-
query_params = {}
|
3579
|
-
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
3580
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
3581
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
3582
|
-
|
3583
|
-
# header parameters
|
3584
|
-
header_params = {}
|
3585
|
-
# HTTP header 'Accept' (if needed)
|
3586
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3587
|
-
|
3588
|
-
# form parameters
|
3589
|
-
form_params = {}
|
3590
|
-
|
3591
|
-
# http body (model)
|
3592
|
-
post_body = nil
|
3593
|
-
auth_names = ['ApiKeyAuth']
|
3594
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3595
|
-
:header_params => header_params,
|
3596
|
-
:query_params => query_params,
|
3597
|
-
:form_params => form_params,
|
3598
|
-
:body => post_body,
|
3599
|
-
:auth_names => auth_names,
|
3600
|
-
:return_type => 'ApiResponseCryptoSnapshot')
|
3601
|
-
if @api_client.config.debugging
|
3602
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_snapshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3603
|
-
end
|
3604
|
-
return data, status_code, headers
|
3605
|
-
end
|
3606
|
-
|
3607
|
-
# Crypto Stats
|
3608
|
-
# Returns available stats on Crypto Currencies.
|
3609
|
-
# @param [Hash] opts the optional parameters
|
3610
|
-
# @option opts [String] :exchange Returns stats for Crypto Currencies that trade on the specified Crypto Exchange.
|
3611
|
-
# @option opts [String] :currency Returns stats for the specified Crypto Currency.
|
3612
|
-
# @return [ApiResponseCryptoStats]
|
3613
|
-
def get_crypto_stats(opts = {})
|
3614
|
-
data, _status_code, _headers = get_crypto_stats_with_http_info(opts)
|
3615
|
-
return data
|
3616
|
-
end
|
3617
|
-
|
3618
|
-
# Crypto Stats
|
3619
|
-
# Returns available stats on Crypto Currencies.
|
3620
|
-
# @param [Hash] opts the optional parameters
|
3621
|
-
# @option opts [String] :exchange Returns stats for Crypto Currencies that trade on the specified Crypto Exchange.
|
3622
|
-
# @option opts [String] :currency Returns stats for the specified Crypto Currency.
|
3623
|
-
# @return [Array<(ApiResponseCryptoStats, Fixnum, Hash)>] ApiResponseCryptoStats data, response status code and response headers
|
3624
|
-
def get_crypto_stats_with_http_info(opts = {})
|
3625
|
-
if @api_client.config.debugging
|
3626
|
-
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_stats ..."
|
3627
|
-
end
|
3628
|
-
# resource path
|
3629
|
-
local_var_path = "/crypto/stats"
|
3630
|
-
|
3631
|
-
# query parameters
|
3632
|
-
query_params = {}
|
3633
|
-
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
3634
|
-
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
3635
|
-
|
3636
|
-
# header parameters
|
3637
|
-
header_params = {}
|
3638
|
-
# HTTP header 'Accept' (if needed)
|
3639
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3640
|
-
|
3641
|
-
# form parameters
|
3642
|
-
form_params = {}
|
3643
|
-
|
3644
|
-
# http body (model)
|
3645
|
-
post_body = nil
|
3646
|
-
auth_names = ['ApiKeyAuth']
|
3647
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3648
|
-
:header_params => header_params,
|
3649
|
-
:query_params => query_params,
|
3650
|
-
:form_params => form_params,
|
3651
|
-
:body => post_body,
|
3652
|
-
:auth_names => auth_names,
|
3653
|
-
:return_type => 'ApiResponseCryptoStats')
|
3654
|
-
if @api_client.config.debugging
|
3655
|
-
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3656
|
-
end
|
3657
|
-
return data, status_code, headers
|
3658
|
-
end
|
3659
|
-
end
|
3660
|
-
end
|