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::CommodityChannelIndexTechnicalValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_time** | **DateTime** | The date_time of the observation | [optional]
|
|
7
|
+
**cci** | **Float** | The Commodity Channel Index calculation value | [optional]
|
|
8
|
+
|
|
9
|
+
|
data/docs/CompanyApi.md
CHANGED
|
@@ -161,7 +161,7 @@ Name | Type | Description | Notes
|
|
|
161
161
|
|
|
162
162
|
Data Point (Number) for Company
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
$$v2_company_data_point_number_description$$
|
|
165
165
|
|
|
166
166
|
### Example
|
|
167
167
|
```ruby
|
|
@@ -175,9 +175,9 @@ end
|
|
|
175
175
|
|
|
176
176
|
company_api = Intrinio::CompanyApi.new
|
|
177
177
|
|
|
178
|
-
identifier = "
|
|
178
|
+
identifier = "$$v2_company_data_point_identifier_default$$" # String | $$v2_company_data_point_identifier_description$$
|
|
179
179
|
|
|
180
|
-
tag = "
|
|
180
|
+
tag = "$$v2_company_data_point_item_number_default$$" # String | $$v2_company_data_point_item_description$$
|
|
181
181
|
|
|
182
182
|
|
|
183
183
|
begin
|
|
@@ -192,8 +192,8 @@ end
|
|
|
192
192
|
|
|
193
193
|
Name | Type | Description | Notes
|
|
194
194
|
------------- | ------------- | ------------- | -------------
|
|
195
|
-
**identifier** | **String**|
|
|
196
|
-
**tag** | **String**|
|
|
195
|
+
**identifier** | **String**| $$v2_company_data_point_identifier_description$$ |
|
|
196
|
+
**tag** | **String**| $$v2_company_data_point_item_description$$ |
|
|
197
197
|
|
|
198
198
|
### Return type
|
|
199
199
|
|
|
@@ -204,7 +204,7 @@ Name | Type | Description | Notes
|
|
|
204
204
|
|
|
205
205
|
Data Point (Text) for Company
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
$$v2_company_data_point_text_description$$
|
|
208
208
|
|
|
209
209
|
### Example
|
|
210
210
|
```ruby
|
|
@@ -218,9 +218,9 @@ end
|
|
|
218
218
|
|
|
219
219
|
company_api = Intrinio::CompanyApi.new
|
|
220
220
|
|
|
221
|
-
identifier = "
|
|
221
|
+
identifier = "$$v2_company_data_point_identifier_default$$" # String | $$v2_company_data_point_identifier_description$$
|
|
222
222
|
|
|
223
|
-
tag = "
|
|
223
|
+
tag = "$$v2_company_data_point_item_text_default$$" # String | $$v2_company_data_point_item_description$$
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
begin
|
|
@@ -235,8 +235,8 @@ end
|
|
|
235
235
|
|
|
236
236
|
Name | Type | Description | Notes
|
|
237
237
|
------------- | ------------- | ------------- | -------------
|
|
238
|
-
**identifier** | **String**|
|
|
239
|
-
**tag** | **String**|
|
|
238
|
+
**identifier** | **String**| $$v2_company_data_point_identifier_description$$ |
|
|
239
|
+
**tag** | **String**| $$v2_company_data_point_item_description$$ |
|
|
240
240
|
|
|
241
241
|
### Return type
|
|
242
242
|
|
|
@@ -355,7 +355,7 @@ Name | Type | Description | Notes
|
|
|
355
355
|
|
|
356
356
|
Historical Data for Company
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
$$v2_company_historical_data_description$$
|
|
359
359
|
|
|
360
360
|
### Example
|
|
361
361
|
```ruby
|
|
@@ -369,9 +369,9 @@ end
|
|
|
369
369
|
|
|
370
370
|
company_api = Intrinio::CompanyApi.new
|
|
371
371
|
|
|
372
|
-
identifier = "
|
|
372
|
+
identifier = "$$v2_company_historical_data_identifier_default$$" # String | $$v2_company_historical_data_identifier_description$$
|
|
373
373
|
|
|
374
|
-
tag = "
|
|
374
|
+
tag = "$$v2_company_historical_data_item_default$$" # String | $$v2_company_historical_data_item_description$$
|
|
375
375
|
|
|
376
376
|
opts = {
|
|
377
377
|
frequency: "daily", # String | Return historical data in the given frequency
|
|
@@ -395,8 +395,8 @@ end
|
|
|
395
395
|
|
|
396
396
|
Name | Type | Description | Notes
|
|
397
397
|
------------- | ------------- | ------------- | -------------
|
|
398
|
-
**identifier** | **String**|
|
|
399
|
-
**tag** | **String**|
|
|
398
|
+
**identifier** | **String**| $$v2_company_historical_data_identifier_description$$ |
|
|
399
|
+
**tag** | **String**| $$v2_company_historical_data_item_description$$ |
|
|
400
400
|
**frequency** | **String**| Return historical data in the given frequency | [optional] [default to daily]
|
|
401
401
|
**type** | **String**| Filter by type, when applicable | [optional]
|
|
402
402
|
**start_date** | **Date**| Get historical data on or after this date | [optional]
|
data/docs/CryptoApi.md
ADDED
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
# Intrinio::CryptoApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api-v2.intrinio.com*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**get_crypto_book_asks**](CryptoApi.md#get_crypto_book_asks) | **GET** /crypto/book/asks | Crypto Book Asks
|
|
8
|
+
[**get_crypto_book_bids**](CryptoApi.md#get_crypto_book_bids) | **GET** /crypto/book/bids | Crypto Book Bids
|
|
9
|
+
[**get_crypto_book_summary**](CryptoApi.md#get_crypto_book_summary) | **GET** /crypto/book | Crypto Book Summary
|
|
10
|
+
[**get_crypto_currencies**](CryptoApi.md#get_crypto_currencies) | **GET** /crypto/currencies | Crypto Currencies
|
|
11
|
+
[**get_crypto_exchanges**](CryptoApi.md#get_crypto_exchanges) | **GET** /crypto/exchanges | Crypto Exchanges
|
|
12
|
+
[**get_crypto_pairs**](CryptoApi.md#get_crypto_pairs) | **GET** /crypto/pairs | Crypto Pairs
|
|
13
|
+
[**get_crypto_prices**](CryptoApi.md#get_crypto_prices) | **GET** /crypto/prices | Crypto Prices
|
|
14
|
+
[**get_crypto_snapshot**](CryptoApi.md#get_crypto_snapshot) | **GET** /crypto/snapshot | Crypto Snapshot
|
|
15
|
+
[**get_crypto_stats**](CryptoApi.md#get_crypto_stats) | **GET** /crypto/stats | Crypto Stats
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# **get_crypto_book_asks**
|
|
19
|
+
> ApiResponseCryptoBookAsks get_crypto_book_asks(opts)
|
|
20
|
+
|
|
21
|
+
Crypto Book Asks
|
|
22
|
+
|
|
23
|
+
Returns the entire ask order book for a given Crypto Currency Pair and Crypto Exchange.
|
|
24
|
+
|
|
25
|
+
### Example
|
|
26
|
+
```ruby
|
|
27
|
+
# Load the gem
|
|
28
|
+
require 'intrinio-sdk'
|
|
29
|
+
|
|
30
|
+
# Setup authorization
|
|
31
|
+
Intrinio.configure do |config|
|
|
32
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
36
|
+
|
|
37
|
+
opts = {
|
|
38
|
+
pair: "btcusd", # String | Return the order book asks for the given Crypto Currency Pair.
|
|
39
|
+
exchange: "gemini", # String | Return the order book asks for a Crypto Currency on the given Crypto Exchange.
|
|
40
|
+
currency: "BTC" # String | Return the order book asks for the given Crypto Currency.
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
begin
|
|
44
|
+
result = crypto_api.get_crypto_book_asks(opts)
|
|
45
|
+
p result
|
|
46
|
+
rescue Intrinio::ApiError => e
|
|
47
|
+
puts "Exception when calling CryptoApi->get_crypto_book_asks: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
Name | Type | Description | Notes
|
|
54
|
+
------------- | ------------- | ------------- | -------------
|
|
55
|
+
**pair** | **String**| Return the order book asks for the given Crypto Currency Pair. | [optional]
|
|
56
|
+
**exchange** | **String**| Return the order book asks for a Crypto Currency on the given Crypto Exchange. | [optional]
|
|
57
|
+
**currency** | **String**| Return the order book asks for the given Crypto Currency. | [optional]
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
[**ApiResponseCryptoBookAsks**](ApiResponseCryptoBookAsks.md)
|
|
62
|
+
|
|
63
|
+
# **get_crypto_book_bids**
|
|
64
|
+
> ApiResponseCryptoBookBids get_crypto_book_bids(opts)
|
|
65
|
+
|
|
66
|
+
Crypto Book Bids
|
|
67
|
+
|
|
68
|
+
Returns the entire bid order book for a given Crypto Currency Pair and Crypto Exchange.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
```ruby
|
|
72
|
+
# Load the gem
|
|
73
|
+
require 'intrinio-sdk'
|
|
74
|
+
|
|
75
|
+
# Setup authorization
|
|
76
|
+
Intrinio.configure do |config|
|
|
77
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
81
|
+
|
|
82
|
+
opts = {
|
|
83
|
+
pair: "btcusd", # String | Return the order book bids for the given Crypto Currency Pair.
|
|
84
|
+
exchange: "gemini", # String | Return the order book bids for a Crypto Currency on the given Crypto Exchange.
|
|
85
|
+
currency: "BTC" # String | Return the order book bids for the given Crypto Currency.
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
begin
|
|
89
|
+
result = crypto_api.get_crypto_book_bids(opts)
|
|
90
|
+
p result
|
|
91
|
+
rescue Intrinio::ApiError => e
|
|
92
|
+
puts "Exception when calling CryptoApi->get_crypto_book_bids: #{e}"
|
|
93
|
+
end
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
Name | Type | Description | Notes
|
|
99
|
+
------------- | ------------- | ------------- | -------------
|
|
100
|
+
**pair** | **String**| Return the order book bids for the given Crypto Currency Pair. | [optional]
|
|
101
|
+
**exchange** | **String**| Return the order book bids for a Crypto Currency on the given Crypto Exchange. | [optional]
|
|
102
|
+
**currency** | **String**| Return the order book bids for the given Crypto Currency. | [optional]
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
[**ApiResponseCryptoBookBids**](ApiResponseCryptoBookBids.md)
|
|
107
|
+
|
|
108
|
+
# **get_crypto_book_summary**
|
|
109
|
+
> ApiResponseCryptoBook get_crypto_book_summary(opts)
|
|
110
|
+
|
|
111
|
+
Crypto Book Summary
|
|
112
|
+
|
|
113
|
+
Returns the order book summary (bid/ask prices and size) for a given Crypto Currency Pair and Crypto Exchange.
|
|
114
|
+
|
|
115
|
+
### Example
|
|
116
|
+
```ruby
|
|
117
|
+
# Load the gem
|
|
118
|
+
require 'intrinio-sdk'
|
|
119
|
+
|
|
120
|
+
# Setup authorization
|
|
121
|
+
Intrinio.configure do |config|
|
|
122
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
126
|
+
|
|
127
|
+
opts = {
|
|
128
|
+
levels: 50, # Integer | 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.
|
|
129
|
+
pair: "btcusd", # String | Return the order book summary for the given Crypto Currency Pair.
|
|
130
|
+
exchange: "gemini", # String | Return the order book summary for a Crypto Currency on the given Crypto Exchange.
|
|
131
|
+
currency: "BTC" # String | Return the order book summary for the given Crypto Currency.
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
begin
|
|
135
|
+
result = crypto_api.get_crypto_book_summary(opts)
|
|
136
|
+
p result
|
|
137
|
+
rescue Intrinio::ApiError => e
|
|
138
|
+
puts "Exception when calling CryptoApi->get_crypto_book_summary: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
Name | Type | Description | Notes
|
|
145
|
+
------------- | ------------- | ------------- | -------------
|
|
146
|
+
**levels** | **Integer**| 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. | [optional]
|
|
147
|
+
**pair** | **String**| Return the order book summary for the given Crypto Currency Pair. | [optional]
|
|
148
|
+
**exchange** | **String**| Return the order book summary for a Crypto Currency on the given Crypto Exchange. | [optional]
|
|
149
|
+
**currency** | **String**| Return the order book summary for the given Crypto Currency. | [optional]
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
[**ApiResponseCryptoBook**](ApiResponseCryptoBook.md)
|
|
154
|
+
|
|
155
|
+
# **get_crypto_currencies**
|
|
156
|
+
> ApiResponseCryptoCurrencies get_crypto_currencies(opts)
|
|
157
|
+
|
|
158
|
+
Crypto Currencies
|
|
159
|
+
|
|
160
|
+
Returns a list of Crypto Currencies for which prices are available.
|
|
161
|
+
|
|
162
|
+
### Example
|
|
163
|
+
```ruby
|
|
164
|
+
# Load the gem
|
|
165
|
+
require 'intrinio-sdk'
|
|
166
|
+
|
|
167
|
+
# Setup authorization
|
|
168
|
+
Intrinio.configure do |config|
|
|
169
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
173
|
+
|
|
174
|
+
opts = {
|
|
175
|
+
exchange: "gemini" # String | Returns Crypto Currencies traded on the given Crypto Exchange.
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
begin
|
|
179
|
+
result = crypto_api.get_crypto_currencies(opts)
|
|
180
|
+
p result
|
|
181
|
+
rescue Intrinio::ApiError => e
|
|
182
|
+
puts "Exception when calling CryptoApi->get_crypto_currencies: #{e}"
|
|
183
|
+
end
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Parameters
|
|
187
|
+
|
|
188
|
+
Name | Type | Description | Notes
|
|
189
|
+
------------- | ------------- | ------------- | -------------
|
|
190
|
+
**exchange** | **String**| Returns Crypto Currencies traded on the given Crypto Exchange. | [optional]
|
|
191
|
+
|
|
192
|
+
### Return type
|
|
193
|
+
|
|
194
|
+
[**ApiResponseCryptoCurrencies**](ApiResponseCryptoCurrencies.md)
|
|
195
|
+
|
|
196
|
+
# **get_crypto_exchanges**
|
|
197
|
+
> ApiResponseCryptoExchanges get_crypto_exchanges(opts)
|
|
198
|
+
|
|
199
|
+
Crypto Exchanges
|
|
200
|
+
|
|
201
|
+
Returns a list of Crypto Exchanges for which prices are available.
|
|
202
|
+
|
|
203
|
+
### Example
|
|
204
|
+
```ruby
|
|
205
|
+
# Load the gem
|
|
206
|
+
require 'intrinio-sdk'
|
|
207
|
+
|
|
208
|
+
# Setup authorization
|
|
209
|
+
Intrinio.configure do |config|
|
|
210
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
214
|
+
|
|
215
|
+
opts = {
|
|
216
|
+
pair: "btcusd" # String | Returns Crypto Currencies traded on the given Crypto Exchange.
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
begin
|
|
220
|
+
result = crypto_api.get_crypto_exchanges(opts)
|
|
221
|
+
p result
|
|
222
|
+
rescue Intrinio::ApiError => e
|
|
223
|
+
puts "Exception when calling CryptoApi->get_crypto_exchanges: #{e}"
|
|
224
|
+
end
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Parameters
|
|
228
|
+
|
|
229
|
+
Name | Type | Description | Notes
|
|
230
|
+
------------- | ------------- | ------------- | -------------
|
|
231
|
+
**pair** | **String**| Returns Crypto Currencies traded on the given Crypto Exchange. | [optional]
|
|
232
|
+
|
|
233
|
+
### Return type
|
|
234
|
+
|
|
235
|
+
[**ApiResponseCryptoExchanges**](ApiResponseCryptoExchanges.md)
|
|
236
|
+
|
|
237
|
+
# **get_crypto_pairs**
|
|
238
|
+
> ApiResponseCryptoPairs get_crypto_pairs(opts)
|
|
239
|
+
|
|
240
|
+
Crypto Pairs
|
|
241
|
+
|
|
242
|
+
Returns a list of Crypto Currency Pairs for which data is available.
|
|
243
|
+
|
|
244
|
+
### Example
|
|
245
|
+
```ruby
|
|
246
|
+
# Load the gem
|
|
247
|
+
require 'intrinio-sdk'
|
|
248
|
+
|
|
249
|
+
# Setup authorization
|
|
250
|
+
Intrinio.configure do |config|
|
|
251
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
255
|
+
|
|
256
|
+
opts = {
|
|
257
|
+
exchange: "gemini", # String | Return pairs traded on the given Crypto Exchange.
|
|
258
|
+
currency: "BTC", # String | Return pairs with one side being the given Crypto Currency.
|
|
259
|
+
page_size: 100, # Integer | An integer greater than or equal to 1 for specifying the number of results on each page.
|
|
260
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
begin
|
|
264
|
+
result = crypto_api.get_crypto_pairs(opts)
|
|
265
|
+
p result
|
|
266
|
+
rescue Intrinio::ApiError => e
|
|
267
|
+
puts "Exception when calling CryptoApi->get_crypto_pairs: #{e}"
|
|
268
|
+
end
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Parameters
|
|
272
|
+
|
|
273
|
+
Name | Type | Description | Notes
|
|
274
|
+
------------- | ------------- | ------------- | -------------
|
|
275
|
+
**exchange** | **String**| Return pairs traded on the given Crypto Exchange. | [optional]
|
|
276
|
+
**currency** | **String**| Return pairs with one side being the given Crypto Currency. | [optional]
|
|
277
|
+
**page_size** | **Integer**| An integer greater than or equal to 1 for specifying the number of results on each page. | [optional] [default to 100]
|
|
278
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
|
279
|
+
|
|
280
|
+
### Return type
|
|
281
|
+
|
|
282
|
+
[**ApiResponseCryptoPairs**](ApiResponseCryptoPairs.md)
|
|
283
|
+
|
|
284
|
+
# **get_crypto_prices**
|
|
285
|
+
> ApiResponseCryptoPrices get_crypto_prices(timeframe, opts)
|
|
286
|
+
|
|
287
|
+
Crypto Prices
|
|
288
|
+
|
|
289
|
+
Returns a list of available Crypto Currency Prices.
|
|
290
|
+
|
|
291
|
+
### Example
|
|
292
|
+
```ruby
|
|
293
|
+
# Load the gem
|
|
294
|
+
require 'intrinio-sdk'
|
|
295
|
+
|
|
296
|
+
# Setup authorization
|
|
297
|
+
Intrinio.configure do |config|
|
|
298
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
302
|
+
|
|
303
|
+
timeframe = "h1" # String | The time interval for the prices.
|
|
304
|
+
|
|
305
|
+
opts = {
|
|
306
|
+
pair: "btcusd", # String | Return prices for the given Crypto Currency Pair.
|
|
307
|
+
exchange: "gemini", # String | Return prices for a Crypto Currency on the given Crypto Exchange.
|
|
308
|
+
currency: "BTC", # String | Return prices for the given Crypto Currency.
|
|
309
|
+
timezone: "UTC", # String | Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone.
|
|
310
|
+
start_date: "2018-01-01", # String | Return Crypto Prices on or after this date.
|
|
311
|
+
start_time: "14:20:00", # String | Return Crypto Prices at or after this time (24-hour).
|
|
312
|
+
end_date: "2019-01-01", # String | Return Crypto Prices on or before this date.
|
|
313
|
+
end_time: "21:01:21", # String | Return Crypto Prices at or before this time (24-hour).
|
|
314
|
+
page_size: 100, # Integer | An integer greater than or equal to 1 for specifying the number of results on each page.
|
|
315
|
+
next_page: nil # String | Gets the next page of data from a previous API call
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
begin
|
|
319
|
+
result = crypto_api.get_crypto_prices(timeframe, opts)
|
|
320
|
+
p result
|
|
321
|
+
rescue Intrinio::ApiError => e
|
|
322
|
+
puts "Exception when calling CryptoApi->get_crypto_prices: #{e}"
|
|
323
|
+
end
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Parameters
|
|
327
|
+
|
|
328
|
+
Name | Type | Description | Notes
|
|
329
|
+
------------- | ------------- | ------------- | -------------
|
|
330
|
+
**timeframe** | **String**| The time interval for the prices. |
|
|
331
|
+
**pair** | **String**| Return prices for the given Crypto Currency Pair. | [optional]
|
|
332
|
+
**exchange** | **String**| Return prices for a Crypto Currency on the given Crypto Exchange. | [optional]
|
|
333
|
+
**currency** | **String**| Return prices for the given Crypto Currency. | [optional]
|
|
334
|
+
**timezone** | **String**| Return price date/times in this timezone, also interpret start/end date/time parameters in this timezone. | [optional] [default to UTC]
|
|
335
|
+
**start_date** | **String**| Return Crypto Prices on or after this date. | [optional]
|
|
336
|
+
**start_time** | **String**| Return Crypto Prices at or after this time (24-hour). | [optional]
|
|
337
|
+
**end_date** | **String**| Return Crypto Prices on or before this date. | [optional]
|
|
338
|
+
**end_time** | **String**| Return Crypto Prices at or before this time (24-hour). | [optional]
|
|
339
|
+
**page_size** | **Integer**| An integer greater than or equal to 1 for specifying the number of results on each page. | [optional] [default to 100]
|
|
340
|
+
**next_page** | **String**| Gets the next page of data from a previous API call | [optional]
|
|
341
|
+
|
|
342
|
+
### Return type
|
|
343
|
+
|
|
344
|
+
[**ApiResponseCryptoPrices**](ApiResponseCryptoPrices.md)
|
|
345
|
+
|
|
346
|
+
# **get_crypto_snapshot**
|
|
347
|
+
> ApiResponseCryptoSnapshot get_crypto_snapshot(opts)
|
|
348
|
+
|
|
349
|
+
Crypto Snapshot
|
|
350
|
+
|
|
351
|
+
Returns a market snapshot over that last 24 hours for the given currency pair and exchange.
|
|
352
|
+
|
|
353
|
+
### Example
|
|
354
|
+
```ruby
|
|
355
|
+
# Load the gem
|
|
356
|
+
require 'intrinio-sdk'
|
|
357
|
+
|
|
358
|
+
# Setup authorization
|
|
359
|
+
Intrinio.configure do |config|
|
|
360
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
364
|
+
|
|
365
|
+
opts = {
|
|
366
|
+
pair: "btcusd", # String | Return the snapshot for the given Crypto Currency Pair.
|
|
367
|
+
exchange: "gemini", # String | Return the snapshot for a Crypto Currency on the given Crypto Exchange.
|
|
368
|
+
currency: "BTC" # String | Return the snapshot for the given Crypto Currency.
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
begin
|
|
372
|
+
result = crypto_api.get_crypto_snapshot(opts)
|
|
373
|
+
p result
|
|
374
|
+
rescue Intrinio::ApiError => e
|
|
375
|
+
puts "Exception when calling CryptoApi->get_crypto_snapshot: #{e}"
|
|
376
|
+
end
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Parameters
|
|
380
|
+
|
|
381
|
+
Name | Type | Description | Notes
|
|
382
|
+
------------- | ------------- | ------------- | -------------
|
|
383
|
+
**pair** | **String**| Return the snapshot for the given Crypto Currency Pair. | [optional]
|
|
384
|
+
**exchange** | **String**| Return the snapshot for a Crypto Currency on the given Crypto Exchange. | [optional]
|
|
385
|
+
**currency** | **String**| Return the snapshot for the given Crypto Currency. | [optional]
|
|
386
|
+
|
|
387
|
+
### Return type
|
|
388
|
+
|
|
389
|
+
[**ApiResponseCryptoSnapshot**](ApiResponseCryptoSnapshot.md)
|
|
390
|
+
|
|
391
|
+
# **get_crypto_stats**
|
|
392
|
+
> ApiResponseCryptoStats get_crypto_stats(opts)
|
|
393
|
+
|
|
394
|
+
Crypto Stats
|
|
395
|
+
|
|
396
|
+
Returns available stats on Crypto Currencies.
|
|
397
|
+
|
|
398
|
+
### Example
|
|
399
|
+
```ruby
|
|
400
|
+
# Load the gem
|
|
401
|
+
require 'intrinio-sdk'
|
|
402
|
+
|
|
403
|
+
# Setup authorization
|
|
404
|
+
Intrinio.configure do |config|
|
|
405
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
crypto_api = Intrinio::CryptoApi.new
|
|
409
|
+
|
|
410
|
+
opts = {
|
|
411
|
+
exchange: "gemini", # String | Returns stats for Crypto Currencies that trade on the specified Crypto Exchange.
|
|
412
|
+
currency: "BTC" # String | Returns stats for the specified Crypto Currency.
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
begin
|
|
416
|
+
result = crypto_api.get_crypto_stats(opts)
|
|
417
|
+
p result
|
|
418
|
+
rescue Intrinio::ApiError => e
|
|
419
|
+
puts "Exception when calling CryptoApi->get_crypto_stats: #{e}"
|
|
420
|
+
end
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### Parameters
|
|
424
|
+
|
|
425
|
+
Name | Type | Description | Notes
|
|
426
|
+
------------- | ------------- | ------------- | -------------
|
|
427
|
+
**exchange** | **String**| Returns stats for Crypto Currencies that trade on the specified Crypto Exchange. | [optional]
|
|
428
|
+
**currency** | **String**| Returns stats for the specified Crypto Currency. | [optional]
|
|
429
|
+
|
|
430
|
+
### Return type
|
|
431
|
+
|
|
432
|
+
[**ApiResponseCryptoStats**](ApiResponseCryptoStats.md)
|
|
433
|
+
|