intrinio-sdk 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +168 -2
- data/docs/AccumulationDistributionIndexTechnicalValue.md +9 -0
- data/docs/ApiResponseCryptoBook.md +12 -0
- data/docs/ApiResponseCryptoBookAsks.md +11 -0
- data/docs/ApiResponseCryptoBookBids.md +11 -0
- data/docs/ApiResponseCryptoCurrencies.md +8 -0
- data/docs/ApiResponseCryptoExchanges.md +8 -0
- data/docs/ApiResponseCryptoPairs.md +9 -0
- data/docs/ApiResponseCryptoPrices.md +12 -0
- data/docs/ApiResponseCryptoSnapshot.md +10 -0
- data/docs/ApiResponseCryptoStats.md +8 -0
- data/docs/ApiResponseOptionPrices.md +10 -0
- data/docs/ApiResponseOptions.md +9 -0
- data/docs/ApiResponseOptionsChain.md +8 -0
- data/docs/ApiResponseOptionsExpirations.md +8 -0
- data/docs/ApiResponseSecurityAccumulationDistributionIndex.md +11 -0
- data/docs/ApiResponseSecurityAverageDailyTradingVolume.md +11 -0
- data/docs/ApiResponseSecurityAverageDirectionalIndex.md +11 -0
- data/docs/ApiResponseSecurityAverageTrueRange.md +11 -0
- data/docs/ApiResponseSecurityAwesomeOscillator.md +11 -0
- data/docs/ApiResponseSecurityBollingerBands.md +11 -0
- data/docs/ApiResponseSecurityChaikinMoneyFlow.md +11 -0
- data/docs/ApiResponseSecurityCommodityChannelIndex.md +11 -0
- data/docs/ApiResponseSecurityDetrendedPriceOscillator.md +11 -0
- data/docs/ApiResponseSecurityDonchianChannel.md +11 -0
- data/docs/ApiResponseSecurityEaseOfMovement.md +11 -0
- data/docs/ApiResponseSecurityForceIndex.md +11 -0
- data/docs/ApiResponseSecurityIchimokuKinkoHyo.md +11 -0
- data/docs/ApiResponseSecurityKeltnerChannel.md +11 -0
- data/docs/ApiResponseSecurityKnowSureThing.md +11 -0
- data/docs/ApiResponseSecurityMassIndex.md +11 -0
- data/docs/ApiResponseSecurityMoneyFlowIndex.md +11 -0
- data/docs/ApiResponseSecurityMovingAverageConvergenceDivergence.md +11 -0
- data/docs/ApiResponseSecurityNegativeVolumeIndex.md +11 -0
- data/docs/ApiResponseSecurityOnBalanceVolume.md +11 -0
- data/docs/ApiResponseSecurityOnBalanceVolumeMean.md +11 -0
- data/docs/ApiResponseSecurityRelativeStrengthIndex.md +11 -0
- data/docs/ApiResponseSecuritySimpleMovingAverage.md +11 -0
- data/docs/ApiResponseSecurityStochasticOscillator.md +11 -0
- data/docs/ApiResponseSecurityTripleExponentialAverage.md +11 -0
- data/docs/ApiResponseSecurityTrueStrengthIndex.md +11 -0
- data/docs/ApiResponseSecurityUltimateOscillator.md +11 -0
- data/docs/ApiResponseSecurityVolumePriceTrend.md +11 -0
- data/docs/ApiResponseSecurityVolumeWeightedAveragePrice.md +11 -0
- data/docs/ApiResponseSecurityVortexIndicator.md +11 -0
- data/docs/ApiResponseSecurityWilliamsR.md +11 -0
- data/docs/AverageDailyTradingVolumeTechnicalValue.md +9 -0
- data/docs/AverageDirectionalIndexTechnicalValue.md +11 -0
- data/docs/AverageTrueRangeTechnicalValue.md +9 -0
- data/docs/AwesomeOscillatorTechnicalValue.md +9 -0
- data/docs/BollingerBandsTechnicalValue.md +11 -0
- data/docs/ChaikinMoneyFlowTechnicalValue.md +9 -0
- data/docs/CommodityChannelIndexTechnicalValue.md +9 -0
- data/docs/CompanyApi.md +15 -15
- data/docs/CryptoApi.md +433 -0
- data/docs/CryptoAsk.md +9 -0
- data/docs/CryptoBid.md +9 -0
- data/docs/CryptoBookEntry.md +9 -0
- data/docs/CryptoCurrency.md +12 -0
- data/docs/CryptoExchange.md +13 -0
- data/docs/CryptoExchangeSummary.md +9 -0
- data/docs/CryptoPair.md +15 -0
- data/docs/CryptoPairSummary.md +9 -0
- data/docs/CryptoPrice.md +13 -0
- data/docs/CryptoSnapshot.md +22 -0
- data/docs/CryptoStat.md +15 -0
- data/docs/DataPointApi.md +10 -10
- data/docs/DetrendedPriceOscillatorTechnicalValue.md +9 -0
- data/docs/DonchianChannelTechnicalValue.md +10 -0
- data/docs/EaseOfMovementTechnicalValue.md +9 -0
- data/docs/ForceIndexTechnicalValue.md +9 -0
- data/docs/FundamentalsApi.md +4 -4
- data/docs/HistoricalDataApi.md +7 -5
- data/docs/IchimokuKinkoHyoTechnicalValue.md +13 -0
- data/docs/KeltnerChannelTechnicalValue.md +11 -0
- data/docs/KnowSureThingTechnicalValue.md +9 -0
- data/docs/MassIndexTechnicalValue.md +9 -0
- data/docs/MoneyFlowIndexTechnicalValue.md +9 -0
- data/docs/MovingAverageConvergenceDivergenceTechnicalValue.md +11 -0
- data/docs/NegativeVolumeIndexTechnicalValue.md +9 -0
- data/docs/OnBalanceVolumeMeanTechnicalValue.md +9 -0
- data/docs/OnBalanceVolumeTechnicalValue.md +9 -0
- data/docs/Option.md +13 -0
- data/docs/OptionChain.md +9 -0
- data/docs/OptionPrice.md +21 -0
- data/docs/OptionsApi.md +225 -0
- data/docs/RelativeStrengthIndexTechnicalValue.md +9 -0
- data/docs/ReportedFinancial.md +1 -0
- data/docs/ReportedFinancialDimension.md +9 -0
- data/docs/Security.md +1 -0
- data/docs/SecurityApi.md +1717 -22
- data/docs/SimpleMovingAverageTechnicalValue.md +9 -0
- data/docs/StochasticOscillatorTechnicalValue.md +10 -0
- data/docs/StockExchangeApi.md +6 -6
- data/docs/TechnicalApi.md +1701 -0
- data/docs/TechnicalIndicator.md +9 -0
- data/docs/TripleExponentialAverageTechnicalValue.md +9 -0
- data/docs/TrueStrengthIndexTechnicalValue.md +9 -0
- data/docs/UltimateOscillatorTechnicalValue.md +9 -0
- data/docs/VolumePriceTrendTechnicalValue.md +9 -0
- data/docs/VolumeWeightedAveragePriceValue.md +9 -0
- data/docs/VortexIndicatorTechnicalValue.md +10 -0
- data/docs/WilliamsRTechnicalValue.md +9 -0
- data/intrinio-sdk.gemspec +1 -1
- data/lib/intrinio-sdk.rb +95 -1
- data/lib/intrinio-sdk/api/company_api.rb +19 -19
- data/lib/intrinio-sdk/api/crypto_api.rb +560 -0
- data/lib/intrinio-sdk/api/data_point_api.rb +13 -13
- data/lib/intrinio-sdk/api/data_tag_api.rb +1 -1
- data/lib/intrinio-sdk/api/filing_api.rb +1 -1
- data/lib/intrinio-sdk/api/forex_api.rb +1 -1
- data/lib/intrinio-sdk/api/fundamentals_api.rb +5 -5
- data/lib/intrinio-sdk/api/historical_data_api.rb +13 -7
- data/lib/intrinio-sdk/api/index_api.rb +1 -1
- data/lib/intrinio-sdk/api/municipality_api.rb +1 -1
- data/lib/intrinio-sdk/api/options_api.rb +325 -0
- data/lib/intrinio-sdk/api/security_api.rb +2472 -21
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +3 -3
- data/lib/intrinio-sdk/api/technical_api.rb +2474 -0
- data/lib/intrinio-sdk/api_client.rb +1 -1
- data/lib/intrinio-sdk/api_error.rb +1 -1
- data/lib/intrinio-sdk/configuration.rb +1 -1
- data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_crypto_book.rb +231 -0
- data/lib/intrinio-sdk/models/api_response_crypto_book_asks.rb +219 -0
- data/lib/intrinio-sdk/models/api_response_crypto_book_bids.rb +219 -0
- data/lib/intrinio-sdk/models/api_response_crypto_currencies.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_crypto_exchanges.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_crypto_pairs.rb +201 -0
- data/lib/intrinio-sdk/models/api_response_crypto_prices.rb +229 -0
- data/lib/intrinio-sdk/models/api_response_crypto_snapshot.rb +206 -0
- data/lib/intrinio-sdk/models/api_response_crypto_stats.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_data_tags.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_data_tags_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_economic_indices_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filing_notes.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filing_notes_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_forex_currencies.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_forex_pairs.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_forex_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_municipalities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_option_prices.rb +210 -0
- data/lib/intrinio-sdk/models/api_response_options.rb +201 -0
- data/lib/intrinio-sdk/models/api_response_options_chain.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_options_expirations.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_accumulation_distribution_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_force_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_know_sure_thing.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_mass_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_money_flow_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_moving_average_convergence_divergence.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_negative_volume_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume_mean.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_relative_strength_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_simple_moving_average.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_stochastic_oscillator.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_stock_price_adjustments.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_triple_exponential_average.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_true_strength_index.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_ultimate_oscillator.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_volume_price_trend.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_volume_weighted_average_price.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_vortex_indicator.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_security_williams_r.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_sic_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_sic_indices_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_standardized_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_price_adjustments.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchange_stock_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_exchanges.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_index_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_indices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_stock_market_indices_search.rb +1 -1
- data/lib/intrinio-sdk/models/average_daily_trading_volume_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/average_directional_index_technical_value.rb +219 -0
- data/lib/intrinio-sdk/models/average_true_range_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/awesome_oscillator_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/bollinger_bands_technical_value.rb +219 -0
- data/lib/intrinio-sdk/models/chaikin_money_flow_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/commodity_channel_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/company.rb +1 -1
- data/lib/intrinio-sdk/models/company_filing.rb +1 -1
- data/lib/intrinio-sdk/models/company_news.rb +1 -1
- data/lib/intrinio-sdk/models/company_news_summary.rb +1 -1
- data/lib/intrinio-sdk/models/company_summary.rb +1 -1
- data/lib/intrinio-sdk/models/crypto_ask.rb +199 -0
- data/lib/intrinio-sdk/models/crypto_bid.rb +199 -0
- data/lib/intrinio-sdk/models/crypto_book_entry.rb +199 -0
- data/lib/intrinio-sdk/models/crypto_currency.rb +229 -0
- data/lib/intrinio-sdk/models/crypto_exchange.rb +239 -0
- data/lib/intrinio-sdk/models/crypto_exchange_summary.rb +199 -0
- data/lib/intrinio-sdk/models/crypto_pair.rb +259 -0
- data/lib/intrinio-sdk/models/crypto_pair_summary.rb +199 -0
- data/lib/intrinio-sdk/models/crypto_price.rb +239 -0
- data/lib/intrinio-sdk/models/crypto_snapshot.rb +329 -0
- data/lib/intrinio-sdk/models/crypto_stat.rb +259 -0
- data/lib/intrinio-sdk/models/data_tag.rb +1 -1
- data/lib/intrinio-sdk/models/data_tag_summary.rb +1 -1
- data/lib/intrinio-sdk/models/detrended_price_oscillator_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
- data/lib/intrinio-sdk/models/donchian_channel_technical_value.rb +209 -0
- data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
- data/lib/intrinio-sdk/models/ease_of_movement_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/economic_index.rb +1 -1
- data/lib/intrinio-sdk/models/economic_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/filing.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note_filing.rb +1 -1
- data/lib/intrinio-sdk/models/filing_note_summary.rb +1 -1
- data/lib/intrinio-sdk/models/filing_summary.rb +1 -1
- data/lib/intrinio-sdk/models/force_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/forex_currency.rb +1 -1
- data/lib/intrinio-sdk/models/forex_pair.rb +1 -1
- data/lib/intrinio-sdk/models/forex_price.rb +1 -1
- data/lib/intrinio-sdk/models/fundamental.rb +1 -1
- data/lib/intrinio-sdk/models/fundamental_summary.rb +1 -1
- data/lib/intrinio-sdk/models/historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/ichimoku_kinko_hyo_technical_value.rb +239 -0
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +219 -0
- data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/mass_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +219 -0
- data/lib/intrinio-sdk/models/municipality.rb +1 -1
- data/lib/intrinio-sdk/models/municipality_financial.rb +1 -1
- data/lib/intrinio-sdk/models/negative_volume_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/option.rb +239 -0
- data/lib/intrinio-sdk/models/option_chain.rb +197 -0
- data/lib/intrinio-sdk/models/option_price.rb +319 -0
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
- data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/reported_financial.rb +18 -6
- data/lib/intrinio-sdk/models/reported_financial_dimension.rb +199 -0
- data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
- data/lib/intrinio-sdk/models/security.rb +15 -5
- data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
- data/lib/intrinio-sdk/models/security_summary.rb +1 -1
- data/lib/intrinio-sdk/models/sic_index.rb +1 -1
- data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
- data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +209 -0
- data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
- data/lib/intrinio-sdk/models/technical_indicator.rb +199 -0
- data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +199 -0
- data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +199 -0
- data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +209 -0
- data/lib/intrinio-sdk/models/williams_r_technical_value.rb +199 -0
- data/lib/intrinio-sdk/version.rb +2 -2
- data/spec/api/company_api_spec.rb +9 -9
- data/spec/api/crypto_api_spec.rb +166 -0
- data/spec/api/data_point_api_spec.rb +6 -6
- data/spec/api/fundamentals_api_spec.rb +2 -2
- data/spec/api/historical_data_api_spec.rb +4 -3
- data/spec/api/options_api_spec.rb +105 -0
- data/spec/api/security_api_spec.rb +562 -10
- data/spec/api/stock_exchange_api_spec.rb +1 -1
- data/spec/api/technical_api_spec.rb +587 -0
- data/spec/models/accumulation_distribution_index_technical_value_spec.rb +48 -0
- data/spec/models/api_response_crypto_book_asks_spec.rb +60 -0
- data/spec/models/api_response_crypto_book_bids_spec.rb +60 -0
- data/spec/models/api_response_crypto_book_spec.rb +66 -0
- data/spec/models/api_response_crypto_currencies_spec.rb +42 -0
- data/spec/models/api_response_crypto_exchanges_spec.rb +42 -0
- data/spec/models/api_response_crypto_pairs_spec.rb +48 -0
- data/spec/models/api_response_crypto_prices_spec.rb +66 -0
- data/spec/models/api_response_crypto_snapshot_spec.rb +54 -0
- data/spec/models/api_response_crypto_stats_spec.rb +42 -0
- data/spec/models/api_response_option_prices_spec.rb +54 -0
- data/spec/models/api_response_options_chain_spec.rb +42 -0
- data/spec/models/api_response_options_expirations_spec.rb +42 -0
- data/spec/models/api_response_options_spec.rb +48 -0
- data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +60 -0
- data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +60 -0
- data/spec/models/api_response_security_average_directional_index_spec.rb +60 -0
- data/spec/models/api_response_security_average_true_range_spec.rb +60 -0
- data/spec/models/api_response_security_awesome_oscillator_spec.rb +60 -0
- data/spec/models/api_response_security_bollinger_bands_spec.rb +60 -0
- data/spec/models/api_response_security_chaikin_money_flow_spec.rb +60 -0
- data/spec/models/api_response_security_commodity_channel_index_spec.rb +60 -0
- data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +60 -0
- data/spec/models/api_response_security_donchian_channel_spec.rb +60 -0
- data/spec/models/api_response_security_ease_of_movement_spec.rb +60 -0
- data/spec/models/api_response_security_force_index_spec.rb +60 -0
- data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +60 -0
- data/spec/models/api_response_security_keltner_channel_spec.rb +60 -0
- data/spec/models/api_response_security_know_sure_thing_spec.rb +60 -0
- data/spec/models/api_response_security_mass_index_spec.rb +60 -0
- data/spec/models/api_response_security_money_flow_index_spec.rb +60 -0
- data/spec/models/api_response_security_moving_average_convergence_divergence_spec.rb +60 -0
- data/spec/models/api_response_security_negative_volume_index_spec.rb +60 -0
- data/spec/models/api_response_security_on_balance_volume_mean_spec.rb +60 -0
- data/spec/models/api_response_security_on_balance_volume_spec.rb +60 -0
- data/spec/models/api_response_security_relative_strength_index_spec.rb +60 -0
- data/spec/models/api_response_security_simple_moving_average_spec.rb +60 -0
- data/spec/models/api_response_security_stochastic_oscillator_spec.rb +60 -0
- data/spec/models/api_response_security_triple_exponential_average_spec.rb +60 -0
- data/spec/models/api_response_security_true_strength_index_spec.rb +60 -0
- data/spec/models/api_response_security_ultimate_oscillator_spec.rb +60 -0
- data/spec/models/api_response_security_volume_price_trend_spec.rb +60 -0
- data/spec/models/api_response_security_volume_weighted_average_price_spec.rb +60 -0
- data/spec/models/api_response_security_vortex_indicator_spec.rb +60 -0
- data/spec/models/api_response_security_williams_r_spec.rb +60 -0
- data/spec/models/average_daily_trading_volume_technical_value_spec.rb +48 -0
- data/spec/models/average_directional_index_technical_value_spec.rb +60 -0
- data/spec/models/average_true_range_technical_value_spec.rb +48 -0
- data/spec/models/awesome_oscillator_technical_value_spec.rb +48 -0
- data/spec/models/bollinger_bands_technical_value_spec.rb +60 -0
- data/spec/models/chaikin_money_flow_technical_value_spec.rb +48 -0
- data/spec/models/commodity_channel_index_technical_value_spec.rb +48 -0
- data/spec/models/crypto_ask_spec.rb +48 -0
- data/spec/models/crypto_bid_spec.rb +48 -0
- data/spec/models/crypto_book_entry_spec.rb +48 -0
- data/spec/models/crypto_currency_spec.rb +66 -0
- data/spec/models/crypto_exchange_spec.rb +72 -0
- data/spec/models/crypto_exchange_summary_spec.rb +48 -0
- data/spec/models/crypto_pair_spec.rb +84 -0
- data/spec/models/crypto_pair_summary_spec.rb +48 -0
- data/spec/models/crypto_price_spec.rb +72 -0
- data/spec/models/crypto_snapshot_spec.rb +126 -0
- data/spec/models/crypto_stat_spec.rb +84 -0
- data/spec/models/detrended_price_oscillator_technical_value_spec.rb +48 -0
- data/spec/models/donchian_channel_technical_value_spec.rb +54 -0
- data/spec/models/ease_of_movement_technical_value_spec.rb +48 -0
- data/spec/models/force_index_technical_value_spec.rb +48 -0
- data/spec/models/ichimoku_kinko_hyo_technical_value_spec.rb +72 -0
- data/spec/models/keltner_channel_technical_value_spec.rb +60 -0
- data/spec/models/know_sure_thing_technical_value_spec.rb +48 -0
- data/spec/models/mass_index_technical_value_spec.rb +48 -0
- data/spec/models/money_flow_index_technical_value_spec.rb +48 -0
- data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +60 -0
- data/spec/models/negative_volume_index_technical_value_spec.rb +48 -0
- data/spec/models/on_balance_volume_mean_technical_value_spec.rb +48 -0
- data/spec/models/on_balance_volume_technical_value_spec.rb +48 -0
- data/spec/models/option_chain_spec.rb +48 -0
- data/spec/models/option_price_spec.rb +120 -0
- data/spec/models/option_spec.rb +72 -0
- data/spec/models/relative_strength_index_technical_value_spec.rb +48 -0
- data/spec/models/reported_financial_dimension_spec.rb +48 -0
- data/spec/models/reported_financial_spec.rb +6 -0
- data/spec/models/security_spec.rb +6 -0
- data/spec/models/simple_moving_average_technical_value_spec.rb +48 -0
- data/spec/models/stochastic_oscillator_technical_value_spec.rb +54 -0
- data/spec/models/technical_indicator_spec.rb +48 -0
- data/spec/models/triple_exponential_average_technical_value_spec.rb +48 -0
- data/spec/models/true_strength_index_technical_value_spec.rb +48 -0
- data/spec/models/ultimate_oscillator_technical_value_spec.rb +48 -0
- data/spec/models/volume_price_trend_technical_value_spec.rb +48 -0
- data/spec/models/volume_weighted_average_price_value_spec.rb +48 -0
- data/spec/models/vortex_indicator_technical_value_spec.rb +54 -0
- data/spec/models/williams_r_technical_value_spec.rb +48 -0
- metadata +378 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::TechnicalIndicator
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**name** | **String** | The name of the Technical Indicator | [optional]
|
|
7
|
+
**symbol** | **String** | The symbol of the Technical Indicator | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::TripleExponentialAverageTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**trix** | **Float** | The Triple Exponential Average calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::TrueStrengthIndexTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**tsi** | **Float** | The True Strength Index calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::UltimateOscillatorTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**uo** | **Float** | The Ultimate Oscillator calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::VolumePriceTrendTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**vpt** | **Float** | The Volume-price Trend calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::VolumeWeightedAveragePriceValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date and time of the observation | [optional]
|
|
7
|
+
**vwap** | **Float** | The Volume Weighted Average Price calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Intrinio::VortexIndicatorTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**negative_vi** | **Float** | The negative Vortex Indicator value | [optional]
|
|
8
|
+
**positive_vi** | **Float** | The positive Vortex Indicator value | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Intrinio::WilliamsRTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**wr** | **Float** | The Willaims %R calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
data/intrinio-sdk.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#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.
|
|
7
7
|
|
|
8
|
-
OpenAPI spec version: 2.
|
|
8
|
+
OpenAPI spec version: 2.5.0
|
|
9
9
|
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
11
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
data/lib/intrinio-sdk.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.
|
|
6
|
+
OpenAPI spec version: 2.5.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
|
@@ -17,6 +17,7 @@ require 'intrinio-sdk/version'
|
|
|
17
17
|
require 'intrinio-sdk/configuration'
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
|
+
require 'intrinio-sdk/models/accumulation_distribution_index_technical_value'
|
|
20
21
|
require 'intrinio-sdk/models/api_response_companies'
|
|
21
22
|
require 'intrinio-sdk/models/api_response_companies_search'
|
|
22
23
|
require 'intrinio-sdk/models/api_response_company_filings'
|
|
@@ -24,6 +25,15 @@ require 'intrinio-sdk/models/api_response_company_fundamentals'
|
|
|
24
25
|
require 'intrinio-sdk/models/api_response_company_historical_data'
|
|
25
26
|
require 'intrinio-sdk/models/api_response_company_news'
|
|
26
27
|
require 'intrinio-sdk/models/api_response_company_securities'
|
|
28
|
+
require 'intrinio-sdk/models/api_response_crypto_book'
|
|
29
|
+
require 'intrinio-sdk/models/api_response_crypto_book_asks'
|
|
30
|
+
require 'intrinio-sdk/models/api_response_crypto_book_bids'
|
|
31
|
+
require 'intrinio-sdk/models/api_response_crypto_currencies'
|
|
32
|
+
require 'intrinio-sdk/models/api_response_crypto_exchanges'
|
|
33
|
+
require 'intrinio-sdk/models/api_response_crypto_pairs'
|
|
34
|
+
require 'intrinio-sdk/models/api_response_crypto_prices'
|
|
35
|
+
require 'intrinio-sdk/models/api_response_crypto_snapshot'
|
|
36
|
+
require 'intrinio-sdk/models/api_response_crypto_stats'
|
|
27
37
|
require 'intrinio-sdk/models/api_response_data_tags'
|
|
28
38
|
require 'intrinio-sdk/models/api_response_data_tags_search'
|
|
29
39
|
require 'intrinio-sdk/models/api_response_economic_index_historical_data'
|
|
@@ -39,16 +49,51 @@ require 'intrinio-sdk/models/api_response_historical_data'
|
|
|
39
49
|
require 'intrinio-sdk/models/api_response_municipalities'
|
|
40
50
|
require 'intrinio-sdk/models/api_response_municipalitiy_financials'
|
|
41
51
|
require 'intrinio-sdk/models/api_response_news'
|
|
52
|
+
require 'intrinio-sdk/models/api_response_option_prices'
|
|
53
|
+
require 'intrinio-sdk/models/api_response_options'
|
|
54
|
+
require 'intrinio-sdk/models/api_response_options_chain'
|
|
55
|
+
require 'intrinio-sdk/models/api_response_options_expirations'
|
|
42
56
|
require 'intrinio-sdk/models/api_response_reported_financials'
|
|
43
57
|
require 'intrinio-sdk/models/api_response_sic_index_historical_data'
|
|
44
58
|
require 'intrinio-sdk/models/api_response_sic_indices'
|
|
45
59
|
require 'intrinio-sdk/models/api_response_sic_indices_search'
|
|
46
60
|
require 'intrinio-sdk/models/api_response_securities'
|
|
47
61
|
require 'intrinio-sdk/models/api_response_securities_search'
|
|
62
|
+
require 'intrinio-sdk/models/api_response_security_accumulation_distribution_index'
|
|
63
|
+
require 'intrinio-sdk/models/api_response_security_average_daily_trading_volume'
|
|
64
|
+
require 'intrinio-sdk/models/api_response_security_average_directional_index'
|
|
65
|
+
require 'intrinio-sdk/models/api_response_security_average_true_range'
|
|
66
|
+
require 'intrinio-sdk/models/api_response_security_awesome_oscillator'
|
|
67
|
+
require 'intrinio-sdk/models/api_response_security_bollinger_bands'
|
|
68
|
+
require 'intrinio-sdk/models/api_response_security_chaikin_money_flow'
|
|
69
|
+
require 'intrinio-sdk/models/api_response_security_commodity_channel_index'
|
|
70
|
+
require 'intrinio-sdk/models/api_response_security_detrended_price_oscillator'
|
|
71
|
+
require 'intrinio-sdk/models/api_response_security_donchian_channel'
|
|
72
|
+
require 'intrinio-sdk/models/api_response_security_ease_of_movement'
|
|
73
|
+
require 'intrinio-sdk/models/api_response_security_force_index'
|
|
48
74
|
require 'intrinio-sdk/models/api_response_security_historical_data'
|
|
75
|
+
require 'intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo'
|
|
49
76
|
require 'intrinio-sdk/models/api_response_security_intraday_prices'
|
|
77
|
+
require 'intrinio-sdk/models/api_response_security_keltner_channel'
|
|
78
|
+
require 'intrinio-sdk/models/api_response_security_know_sure_thing'
|
|
79
|
+
require 'intrinio-sdk/models/api_response_security_mass_index'
|
|
80
|
+
require 'intrinio-sdk/models/api_response_security_money_flow_index'
|
|
81
|
+
require 'intrinio-sdk/models/api_response_security_moving_average_convergence_divergence'
|
|
82
|
+
require 'intrinio-sdk/models/api_response_security_negative_volume_index'
|
|
83
|
+
require 'intrinio-sdk/models/api_response_security_on_balance_volume'
|
|
84
|
+
require 'intrinio-sdk/models/api_response_security_on_balance_volume_mean'
|
|
85
|
+
require 'intrinio-sdk/models/api_response_security_relative_strength_index'
|
|
86
|
+
require 'intrinio-sdk/models/api_response_security_simple_moving_average'
|
|
87
|
+
require 'intrinio-sdk/models/api_response_security_stochastic_oscillator'
|
|
50
88
|
require 'intrinio-sdk/models/api_response_security_stock_price_adjustments'
|
|
51
89
|
require 'intrinio-sdk/models/api_response_security_stock_prices'
|
|
90
|
+
require 'intrinio-sdk/models/api_response_security_triple_exponential_average'
|
|
91
|
+
require 'intrinio-sdk/models/api_response_security_true_strength_index'
|
|
92
|
+
require 'intrinio-sdk/models/api_response_security_ultimate_oscillator'
|
|
93
|
+
require 'intrinio-sdk/models/api_response_security_volume_price_trend'
|
|
94
|
+
require 'intrinio-sdk/models/api_response_security_volume_weighted_average_price'
|
|
95
|
+
require 'intrinio-sdk/models/api_response_security_vortex_indicator'
|
|
96
|
+
require 'intrinio-sdk/models/api_response_security_williams_r'
|
|
52
97
|
require 'intrinio-sdk/models/api_response_standardized_financials'
|
|
53
98
|
require 'intrinio-sdk/models/api_response_stock_exchange_realtime_stock_prices'
|
|
54
99
|
require 'intrinio-sdk/models/api_response_stock_exchange_securities'
|
|
@@ -58,15 +103,36 @@ require 'intrinio-sdk/models/api_response_stock_exchanges'
|
|
|
58
103
|
require 'intrinio-sdk/models/api_response_stock_market_index_historical_data'
|
|
59
104
|
require 'intrinio-sdk/models/api_response_stock_market_indices'
|
|
60
105
|
require 'intrinio-sdk/models/api_response_stock_market_indices_search'
|
|
106
|
+
require 'intrinio-sdk/models/average_daily_trading_volume_technical_value'
|
|
107
|
+
require 'intrinio-sdk/models/average_directional_index_technical_value'
|
|
108
|
+
require 'intrinio-sdk/models/average_true_range_technical_value'
|
|
109
|
+
require 'intrinio-sdk/models/awesome_oscillator_technical_value'
|
|
110
|
+
require 'intrinio-sdk/models/bollinger_bands_technical_value'
|
|
111
|
+
require 'intrinio-sdk/models/chaikin_money_flow_technical_value'
|
|
112
|
+
require 'intrinio-sdk/models/commodity_channel_index_technical_value'
|
|
61
113
|
require 'intrinio-sdk/models/company'
|
|
62
114
|
require 'intrinio-sdk/models/company_filing'
|
|
63
115
|
require 'intrinio-sdk/models/company_news'
|
|
64
116
|
require 'intrinio-sdk/models/company_news_summary'
|
|
65
117
|
require 'intrinio-sdk/models/company_summary'
|
|
118
|
+
require 'intrinio-sdk/models/crypto_ask'
|
|
119
|
+
require 'intrinio-sdk/models/crypto_bid'
|
|
120
|
+
require 'intrinio-sdk/models/crypto_book_entry'
|
|
121
|
+
require 'intrinio-sdk/models/crypto_currency'
|
|
122
|
+
require 'intrinio-sdk/models/crypto_exchange'
|
|
123
|
+
require 'intrinio-sdk/models/crypto_exchange_summary'
|
|
124
|
+
require 'intrinio-sdk/models/crypto_pair'
|
|
125
|
+
require 'intrinio-sdk/models/crypto_pair_summary'
|
|
126
|
+
require 'intrinio-sdk/models/crypto_price'
|
|
127
|
+
require 'intrinio-sdk/models/crypto_snapshot'
|
|
128
|
+
require 'intrinio-sdk/models/crypto_stat'
|
|
66
129
|
require 'intrinio-sdk/models/data_tag'
|
|
67
130
|
require 'intrinio-sdk/models/data_tag_summary'
|
|
131
|
+
require 'intrinio-sdk/models/detrended_price_oscillator_technical_value'
|
|
68
132
|
require 'intrinio-sdk/models/dividend_record'
|
|
133
|
+
require 'intrinio-sdk/models/donchian_channel_technical_value'
|
|
69
134
|
require 'intrinio-sdk/models/earnings_record'
|
|
135
|
+
require 'intrinio-sdk/models/ease_of_movement_technical_value'
|
|
70
136
|
require 'intrinio-sdk/models/economic_index'
|
|
71
137
|
require 'intrinio-sdk/models/economic_index_summary'
|
|
72
138
|
require 'intrinio-sdk/models/filing'
|
|
@@ -74,18 +140,33 @@ require 'intrinio-sdk/models/filing_note'
|
|
|
74
140
|
require 'intrinio-sdk/models/filing_note_filing'
|
|
75
141
|
require 'intrinio-sdk/models/filing_note_summary'
|
|
76
142
|
require 'intrinio-sdk/models/filing_summary'
|
|
143
|
+
require 'intrinio-sdk/models/force_index_technical_value'
|
|
77
144
|
require 'intrinio-sdk/models/forex_currency'
|
|
78
145
|
require 'intrinio-sdk/models/forex_pair'
|
|
79
146
|
require 'intrinio-sdk/models/forex_price'
|
|
80
147
|
require 'intrinio-sdk/models/fundamental'
|
|
81
148
|
require 'intrinio-sdk/models/fundamental_summary'
|
|
82
149
|
require 'intrinio-sdk/models/historical_data'
|
|
150
|
+
require 'intrinio-sdk/models/ichimoku_kinko_hyo_technical_value'
|
|
83
151
|
require 'intrinio-sdk/models/intraday_stock_price'
|
|
152
|
+
require 'intrinio-sdk/models/keltner_channel_technical_value'
|
|
153
|
+
require 'intrinio-sdk/models/know_sure_thing_technical_value'
|
|
154
|
+
require 'intrinio-sdk/models/mass_index_technical_value'
|
|
155
|
+
require 'intrinio-sdk/models/money_flow_index_technical_value'
|
|
156
|
+
require 'intrinio-sdk/models/moving_average_convergence_divergence_technical_value'
|
|
84
157
|
require 'intrinio-sdk/models/municipality'
|
|
85
158
|
require 'intrinio-sdk/models/municipality_financial'
|
|
159
|
+
require 'intrinio-sdk/models/negative_volume_index_technical_value'
|
|
160
|
+
require 'intrinio-sdk/models/on_balance_volume_mean_technical_value'
|
|
161
|
+
require 'intrinio-sdk/models/on_balance_volume_technical_value'
|
|
162
|
+
require 'intrinio-sdk/models/option'
|
|
163
|
+
require 'intrinio-sdk/models/option_chain'
|
|
164
|
+
require 'intrinio-sdk/models/option_price'
|
|
86
165
|
require 'intrinio-sdk/models/realtime_stock_price'
|
|
87
166
|
require 'intrinio-sdk/models/realtime_stock_price_security'
|
|
167
|
+
require 'intrinio-sdk/models/relative_strength_index_technical_value'
|
|
88
168
|
require 'intrinio-sdk/models/reported_financial'
|
|
169
|
+
require 'intrinio-sdk/models/reported_financial_dimension'
|
|
89
170
|
require 'intrinio-sdk/models/reported_tag'
|
|
90
171
|
require 'intrinio-sdk/models/sic_index'
|
|
91
172
|
require 'intrinio-sdk/models/security'
|
|
@@ -94,7 +175,9 @@ require 'intrinio-sdk/models/security_screen_group'
|
|
|
94
175
|
require 'intrinio-sdk/models/security_screen_result'
|
|
95
176
|
require 'intrinio-sdk/models/security_screen_result_data'
|
|
96
177
|
require 'intrinio-sdk/models/security_summary'
|
|
178
|
+
require 'intrinio-sdk/models/simple_moving_average_technical_value'
|
|
97
179
|
require 'intrinio-sdk/models/standardized_financial'
|
|
180
|
+
require 'intrinio-sdk/models/stochastic_oscillator_technical_value'
|
|
98
181
|
require 'intrinio-sdk/models/stock_exchange'
|
|
99
182
|
require 'intrinio-sdk/models/stock_market_index'
|
|
100
183
|
require 'intrinio-sdk/models/stock_market_index_summary'
|
|
@@ -102,9 +185,18 @@ require 'intrinio-sdk/models/stock_price'
|
|
|
102
185
|
require 'intrinio-sdk/models/stock_price_adjustment'
|
|
103
186
|
require 'intrinio-sdk/models/stock_price_adjustment_summary'
|
|
104
187
|
require 'intrinio-sdk/models/stock_price_summary'
|
|
188
|
+
require 'intrinio-sdk/models/technical_indicator'
|
|
189
|
+
require 'intrinio-sdk/models/triple_exponential_average_technical_value'
|
|
190
|
+
require 'intrinio-sdk/models/true_strength_index_technical_value'
|
|
191
|
+
require 'intrinio-sdk/models/ultimate_oscillator_technical_value'
|
|
192
|
+
require 'intrinio-sdk/models/volume_price_trend_technical_value'
|
|
193
|
+
require 'intrinio-sdk/models/volume_weighted_average_price_value'
|
|
194
|
+
require 'intrinio-sdk/models/vortex_indicator_technical_value'
|
|
195
|
+
require 'intrinio-sdk/models/williams_r_technical_value'
|
|
105
196
|
|
|
106
197
|
# APIs
|
|
107
198
|
require 'intrinio-sdk/api/company_api'
|
|
199
|
+
require 'intrinio-sdk/api/crypto_api'
|
|
108
200
|
require 'intrinio-sdk/api/data_point_api'
|
|
109
201
|
require 'intrinio-sdk/api/data_tag_api'
|
|
110
202
|
require 'intrinio-sdk/api/filing_api'
|
|
@@ -113,8 +205,10 @@ require 'intrinio-sdk/api/fundamentals_api'
|
|
|
113
205
|
require 'intrinio-sdk/api/historical_data_api'
|
|
114
206
|
require 'intrinio-sdk/api/index_api'
|
|
115
207
|
require 'intrinio-sdk/api/municipality_api'
|
|
208
|
+
require 'intrinio-sdk/api/options_api'
|
|
116
209
|
require 'intrinio-sdk/api/security_api'
|
|
117
210
|
require 'intrinio-sdk/api/stock_exchange_api'
|
|
211
|
+
require 'intrinio-sdk/api/technical_api'
|
|
118
212
|
|
|
119
213
|
module Intrinio
|
|
120
214
|
class << self
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.
|
|
6
|
+
OpenAPI spec version: 2.5.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.3.0-SNAPSHOT
|
|
@@ -209,9 +209,9 @@ module Intrinio
|
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
# Data Point (Number) for Company
|
|
212
|
-
#
|
|
213
|
-
# @param identifier
|
|
214
|
-
# @param tag
|
|
212
|
+
# $$v2_company_data_point_number_description$$
|
|
213
|
+
# @param identifier $$v2_company_data_point_identifier_description$$
|
|
214
|
+
# @param tag $$v2_company_data_point_item_description$$
|
|
215
215
|
# @param [Hash] opts the optional parameters
|
|
216
216
|
# @return [Float]
|
|
217
217
|
def get_company_data_point_number(identifier, tag, opts = {})
|
|
@@ -220,9 +220,9 @@ module Intrinio
|
|
|
220
220
|
end
|
|
221
221
|
|
|
222
222
|
# Data Point (Number) for Company
|
|
223
|
-
#
|
|
224
|
-
# @param identifier
|
|
225
|
-
# @param tag
|
|
223
|
+
# $$v2_company_data_point_number_description$$
|
|
224
|
+
# @param identifier $$v2_company_data_point_identifier_description$$
|
|
225
|
+
# @param tag $$v2_company_data_point_item_description$$
|
|
226
226
|
# @param [Hash] opts the optional parameters
|
|
227
227
|
# @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
|
|
228
228
|
def get_company_data_point_number_with_http_info(identifier, tag, opts = {})
|
|
@@ -268,9 +268,9 @@ module Intrinio
|
|
|
268
268
|
end
|
|
269
269
|
|
|
270
270
|
# Data Point (Text) for Company
|
|
271
|
-
#
|
|
272
|
-
# @param identifier
|
|
273
|
-
# @param tag
|
|
271
|
+
# $$v2_company_data_point_text_description$$
|
|
272
|
+
# @param identifier $$v2_company_data_point_identifier_description$$
|
|
273
|
+
# @param tag $$v2_company_data_point_item_description$$
|
|
274
274
|
# @param [Hash] opts the optional parameters
|
|
275
275
|
# @return [String]
|
|
276
276
|
def get_company_data_point_text(identifier, tag, opts = {})
|
|
@@ -279,9 +279,9 @@ module Intrinio
|
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
# Data Point (Text) for Company
|
|
282
|
-
#
|
|
283
|
-
# @param identifier
|
|
284
|
-
# @param tag
|
|
282
|
+
# $$v2_company_data_point_text_description$$
|
|
283
|
+
# @param identifier $$v2_company_data_point_identifier_description$$
|
|
284
|
+
# @param tag $$v2_company_data_point_item_description$$
|
|
285
285
|
# @param [Hash] opts the optional parameters
|
|
286
286
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
287
287
|
def get_company_data_point_text_with_http_info(identifier, tag, opts = {})
|
|
@@ -483,9 +483,9 @@ module Intrinio
|
|
|
483
483
|
end
|
|
484
484
|
|
|
485
485
|
# Historical Data for Company
|
|
486
|
-
#
|
|
487
|
-
# @param identifier
|
|
488
|
-
# @param tag
|
|
486
|
+
# $$v2_company_historical_data_description$$
|
|
487
|
+
# @param identifier $$v2_company_historical_data_identifier_description$$
|
|
488
|
+
# @param tag $$v2_company_historical_data_item_description$$
|
|
489
489
|
# @param [Hash] opts the optional parameters
|
|
490
490
|
# @option opts [String] :frequency Return historical data in the given frequency (default to daily)
|
|
491
491
|
# @option opts [String] :type Filter by type, when applicable
|
|
@@ -501,9 +501,9 @@ module Intrinio
|
|
|
501
501
|
end
|
|
502
502
|
|
|
503
503
|
# Historical Data for Company
|
|
504
|
-
#
|
|
505
|
-
# @param identifier
|
|
506
|
-
# @param tag
|
|
504
|
+
# $$v2_company_historical_data_description$$
|
|
505
|
+
# @param identifier $$v2_company_historical_data_identifier_description$$
|
|
506
|
+
# @param tag $$v2_company_historical_data_item_description$$
|
|
507
507
|
# @param [Hash] opts the optional parameters
|
|
508
508
|
# @option opts [String] :frequency Return historical data in the given frequency
|
|
509
509
|
# @option opts [String] :type Filter by type, when applicable
|
|
@@ -0,0 +1,560 @@
|
|
|
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.5.0
|
|
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 Returns Crypto Currencies traded on the given Crypto Exchange.
|
|
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 Returns Crypto Currencies traded on the given Crypto Exchange.
|
|
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
|
+
# Crypto Prices
|
|
358
|
+
# Returns a list of available Crypto Currency Prices.
|
|
359
|
+
# @param timeframe The time interval for the prices.
|
|
360
|
+
# @param [Hash] opts the optional parameters
|
|
361
|
+
# @option opts [String] :pair Return prices for the given Crypto Currency Pair.
|
|
362
|
+
# @option opts [String] :exchange Return prices for a Crypto Currency on the given Crypto Exchange.
|
|
363
|
+
# @option opts [String] :currency Return prices for the given Crypto Currency.
|
|
364
|
+
# @option opts [String] :timezone Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone. (default to UTC)
|
|
365
|
+
# @option opts [String] :start_date Return Crypto Prices on or after this date.
|
|
366
|
+
# @option opts [String] :start_time Return Crypto Prices at or after this time (24-hour).
|
|
367
|
+
# @option opts [String] :end_date Return Crypto Prices on or before this date.
|
|
368
|
+
# @option opts [String] :end_time Return Crypto Prices 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 [ApiResponseCryptoPrices]
|
|
372
|
+
def get_crypto_prices(timeframe, opts = {})
|
|
373
|
+
data, _status_code, _headers = get_crypto_prices_with_http_info(timeframe, opts)
|
|
374
|
+
return data
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Crypto Prices
|
|
378
|
+
# Returns a list of available Crypto Currency Prices.
|
|
379
|
+
# @param timeframe The time interval for the prices.
|
|
380
|
+
# @param [Hash] opts the optional parameters
|
|
381
|
+
# @option opts [String] :pair Return prices for the given Crypto Currency Pair.
|
|
382
|
+
# @option opts [String] :exchange Return prices for a Crypto Currency on the given Crypto Exchange.
|
|
383
|
+
# @option opts [String] :currency Return prices for the given Crypto Currency.
|
|
384
|
+
# @option opts [String] :timezone Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone.
|
|
385
|
+
# @option opts [String] :start_date Return Crypto Prices on or after this date.
|
|
386
|
+
# @option opts [String] :start_time Return Crypto Prices at or after this time (24-hour).
|
|
387
|
+
# @option opts [String] :end_date Return Crypto Prices on or before this date.
|
|
388
|
+
# @option opts [String] :end_time Return Crypto Prices 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<(ApiResponseCryptoPrices, Fixnum, Hash)>] ApiResponseCryptoPrices data, response status code and response headers
|
|
392
|
+
def get_crypto_prices_with_http_info(timeframe, opts = {})
|
|
393
|
+
if @api_client.config.debugging
|
|
394
|
+
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_prices ..."
|
|
395
|
+
end
|
|
396
|
+
# verify the required parameter 'timeframe' is set
|
|
397
|
+
if @api_client.config.client_side_validation && timeframe.nil?
|
|
398
|
+
fail ArgumentError, "Missing the required parameter 'timeframe' when calling CryptoApi.get_crypto_prices"
|
|
399
|
+
end
|
|
400
|
+
# verify enum value
|
|
401
|
+
if @api_client.config.client_side_validation && !['d1', 'h8', 'h6', 'h4', 'h3', 'h2', 'h1', 'm30', 'm15', 'm5', 'm1'].include?(timeframe)
|
|
402
|
+
fail ArgumentError, "invalid value for 'timeframe', must be one of d1, h8, h6, h4, h3, h2, h1, m30, m15, m5, m1"
|
|
403
|
+
end
|
|
404
|
+
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'])
|
|
405
|
+
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'
|
|
406
|
+
end
|
|
407
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
|
408
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling CryptoApi.get_crypto_prices, must be smaller than or equal to 10000.'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# resource path
|
|
412
|
+
local_var_path = "/crypto/prices".sub('{' + 'timeframe' + '}', timeframe.to_s)
|
|
413
|
+
|
|
414
|
+
# query parameters
|
|
415
|
+
query_params = {}
|
|
416
|
+
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
|
417
|
+
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
|
418
|
+
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
|
419
|
+
query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
|
|
420
|
+
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
|
421
|
+
query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
|
422
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
|
423
|
+
query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
|
424
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
425
|
+
query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil?
|
|
426
|
+
|
|
427
|
+
# header parameters
|
|
428
|
+
header_params = {}
|
|
429
|
+
# HTTP header 'Accept' (if needed)
|
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
431
|
+
|
|
432
|
+
# form parameters
|
|
433
|
+
form_params = {}
|
|
434
|
+
|
|
435
|
+
# http body (model)
|
|
436
|
+
post_body = nil
|
|
437
|
+
auth_names = ['ApiKeyAuth']
|
|
438
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
439
|
+
:header_params => header_params,
|
|
440
|
+
:query_params => query_params,
|
|
441
|
+
:form_params => form_params,
|
|
442
|
+
:body => post_body,
|
|
443
|
+
:auth_names => auth_names,
|
|
444
|
+
:return_type => 'ApiResponseCryptoPrices')
|
|
445
|
+
if @api_client.config.debugging
|
|
446
|
+
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_prices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
447
|
+
end
|
|
448
|
+
return data, status_code, headers
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Crypto Snapshot
|
|
452
|
+
# Returns a market snapshot over that last 24 hours for the given currency pair and exchange.
|
|
453
|
+
# @param [Hash] opts the optional parameters
|
|
454
|
+
# @option opts [String] :pair Return the snapshot for the given Crypto Currency Pair.
|
|
455
|
+
# @option opts [String] :exchange Return the snapshot for a Crypto Currency on the given Crypto Exchange.
|
|
456
|
+
# @option opts [String] :currency Return the snapshot for the given Crypto Currency.
|
|
457
|
+
# @return [ApiResponseCryptoSnapshot]
|
|
458
|
+
def get_crypto_snapshot(opts = {})
|
|
459
|
+
data, _status_code, _headers = get_crypto_snapshot_with_http_info(opts)
|
|
460
|
+
return data
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Crypto Snapshot
|
|
464
|
+
# Returns a market snapshot over that last 24 hours for the given currency pair and exchange.
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @option opts [String] :pair Return the snapshot for the given Crypto Currency Pair.
|
|
467
|
+
# @option opts [String] :exchange Return the snapshot for a Crypto Currency on the given Crypto Exchange.
|
|
468
|
+
# @option opts [String] :currency Return the snapshot for the given Crypto Currency.
|
|
469
|
+
# @return [Array<(ApiResponseCryptoSnapshot, Fixnum, Hash)>] ApiResponseCryptoSnapshot data, response status code and response headers
|
|
470
|
+
def get_crypto_snapshot_with_http_info(opts = {})
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_snapshot ..."
|
|
473
|
+
end
|
|
474
|
+
# resource path
|
|
475
|
+
local_var_path = "/crypto/snapshot"
|
|
476
|
+
|
|
477
|
+
# query parameters
|
|
478
|
+
query_params = {}
|
|
479
|
+
query_params[:'pair'] = opts[:'pair'] if !opts[:'pair'].nil?
|
|
480
|
+
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
|
481
|
+
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
|
482
|
+
|
|
483
|
+
# header parameters
|
|
484
|
+
header_params = {}
|
|
485
|
+
# HTTP header 'Accept' (if needed)
|
|
486
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
487
|
+
|
|
488
|
+
# form parameters
|
|
489
|
+
form_params = {}
|
|
490
|
+
|
|
491
|
+
# http body (model)
|
|
492
|
+
post_body = nil
|
|
493
|
+
auth_names = ['ApiKeyAuth']
|
|
494
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
495
|
+
:header_params => header_params,
|
|
496
|
+
:query_params => query_params,
|
|
497
|
+
:form_params => form_params,
|
|
498
|
+
:body => post_body,
|
|
499
|
+
:auth_names => auth_names,
|
|
500
|
+
:return_type => 'ApiResponseCryptoSnapshot')
|
|
501
|
+
if @api_client.config.debugging
|
|
502
|
+
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_snapshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
503
|
+
end
|
|
504
|
+
return data, status_code, headers
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Crypto Stats
|
|
508
|
+
# Returns available stats on Crypto Currencies.
|
|
509
|
+
# @param [Hash] opts the optional parameters
|
|
510
|
+
# @option opts [String] :exchange Returns stats for Crypto Currencies that trade on the specified Crypto Exchange.
|
|
511
|
+
# @option opts [String] :currency Returns stats for the specified Crypto Currency.
|
|
512
|
+
# @return [ApiResponseCryptoStats]
|
|
513
|
+
def get_crypto_stats(opts = {})
|
|
514
|
+
data, _status_code, _headers = get_crypto_stats_with_http_info(opts)
|
|
515
|
+
return data
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# Crypto Stats
|
|
519
|
+
# Returns available stats on Crypto Currencies.
|
|
520
|
+
# @param [Hash] opts the optional parameters
|
|
521
|
+
# @option opts [String] :exchange Returns stats for Crypto Currencies that trade on the specified Crypto Exchange.
|
|
522
|
+
# @option opts [String] :currency Returns stats for the specified Crypto Currency.
|
|
523
|
+
# @return [Array<(ApiResponseCryptoStats, Fixnum, Hash)>] ApiResponseCryptoStats data, response status code and response headers
|
|
524
|
+
def get_crypto_stats_with_http_info(opts = {})
|
|
525
|
+
if @api_client.config.debugging
|
|
526
|
+
@api_client.config.logger.debug "Calling API: CryptoApi.get_crypto_stats ..."
|
|
527
|
+
end
|
|
528
|
+
# resource path
|
|
529
|
+
local_var_path = "/crypto/stats"
|
|
530
|
+
|
|
531
|
+
# query parameters
|
|
532
|
+
query_params = {}
|
|
533
|
+
query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil?
|
|
534
|
+
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
|
535
|
+
|
|
536
|
+
# header parameters
|
|
537
|
+
header_params = {}
|
|
538
|
+
# HTTP header 'Accept' (if needed)
|
|
539
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
540
|
+
|
|
541
|
+
# form parameters
|
|
542
|
+
form_params = {}
|
|
543
|
+
|
|
544
|
+
# http body (model)
|
|
545
|
+
post_body = nil
|
|
546
|
+
auth_names = ['ApiKeyAuth']
|
|
547
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
548
|
+
:header_params => header_params,
|
|
549
|
+
:query_params => query_params,
|
|
550
|
+
:form_params => form_params,
|
|
551
|
+
:body => post_body,
|
|
552
|
+
:auth_names => auth_names,
|
|
553
|
+
:return_type => 'ApiResponseCryptoStats')
|
|
554
|
+
if @api_client.config.debugging
|
|
555
|
+
@api_client.config.logger.debug "API called: CryptoApi#get_crypto_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
556
|
+
end
|
|
557
|
+
return data, status_code, headers
|
|
558
|
+
end
|
|
559
|
+
end
|
|
560
|
+
end
|