intrinio-sdk 5.6.0 → 5.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +2 -0
- data/README.md +30 -12
- data/docs/ApiResponseOptionsChainRealtime.md +23 -0
- data/docs/ApiResponseOptionsPriceRealtime.md +31 -0
- data/docs/ApiResponseOptionsStatsRealtime.md +31 -0
- data/docs/ApiResponseSecurityIntervalPrices.md +29 -0
- data/docs/BulkDownloadsApi.md +3 -7
- data/docs/CompanyApi.md +124 -181
- data/docs/DataPointApi.md +16 -28
- data/docs/DataTagApi.md +21 -33
- data/docs/ETFsApi.md +30 -57
- data/docs/FilingApi.md +72 -116
- data/docs/ForexApi.md +22 -35
- data/docs/FundamentalsApi.md +19 -42
- data/docs/HistoricalDataApi.md +17 -22
- data/docs/IndexApi.md +117 -204
- data/docs/MunicipalityApi.md +28 -39
- data/docs/OptionChainRealtime.md +31 -0
- data/docs/OptionFactorsRealtime.md +25 -0
- data/docs/OptionPriceRealtime.md +31 -0
- data/docs/OptionRealtime.md +24 -0
- data/docs/OptionStatsRealtime.md +24 -0
- data/docs/OptionsApi.md +314 -62
- data/docs/RealtimeStockPrice.md +2 -0
- data/docs/SecurityApi.md +646 -730
- data/docs/SecuritySummary.md +1 -0
- data/docs/StockExchangeApi.md +43 -67
- data/docs/StockPrice.md +7 -0
- data/docs/StockPriceInterval.md +25 -0
- data/docs/TechnicalApi.md +359 -483
- data/docs/ZacksApi.md +132 -165
- data/intrinio-sdk.gemspec +3 -2
- data/lib/intrinio-sdk.rb +11 -1
- data/lib/intrinio-sdk/api/bulk_downloads_api.rb +1 -1
- data/lib/intrinio-sdk/api/company_api.rb +22 -19
- 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/et_fs_api.rb +1 -1
- data/lib/intrinio-sdk/api/filing_api.rb +1 -1
- data/lib/intrinio-sdk/api/forex_api.rb +5 -5
- data/lib/intrinio-sdk/api/fundamentals_api.rb +1 -1
- data/lib/intrinio-sdk/api/historical_data_api.rb +7 -7
- data/lib/intrinio-sdk/api/index_api.rb +1 -1
- data/lib/intrinio-sdk/api/municipality_api.rb +3 -3
- data/lib/intrinio-sdk/api/options_api.rb +217 -1
- data/lib/intrinio-sdk/api/security_api.rb +124 -35
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +3 -3
- data/lib/intrinio-sdk/api/technical_api.rb +1 -1
- data/lib/intrinio-sdk/api/zacks_api.rb +1 -1
- data/lib/intrinio-sdk/api_client.rb +56 -24
- data/lib/intrinio-sdk/api_error.rb +1 -1
- data/lib/intrinio-sdk/configuration.rb +4 -1
- data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_bulk_download_links.rb +1 -1
- 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_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_et_fs.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_etf_holdings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_filing_fundamentals.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_initial_public_offerings.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 +1 -1
- data/lib/intrinio-sdk/models/api_response_options.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options_chain.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options_chain_realtime.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_options_expirations.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options_price_realtime.rb +206 -0
- data/lib/intrinio-sdk/models/api_response_options_stats_realtime.rb +206 -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 +1 -1
- data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_force_index.rb +1 -1
- 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 +1 -1
- data/lib/intrinio-sdk/models/api_response_security_interval_prices.rb +254 -0
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +3 -3
- data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_know_sure_thing.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_mass_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_money_flow_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_moving_average_convergence_divergence.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_negative_volume_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_on_balance_volume_mean.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_relative_strength_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_simple_moving_average.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_stochastic_oscillator.rb +1 -1
- 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 +1 -1
- data/lib/intrinio-sdk/models/api_response_security_true_strength_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_ultimate_oscillator.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_volume_price_trend.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_volume_weighted_average_price.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_vortex_indicator.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_williams_r.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_zacks_analyst_ratings_snapshot.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_zacks_eps_surprises.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_zacks_sales_surprises.rb +1 -1
- 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/api_response_zacks_analyst_ratings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_eps_estimates.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_eps_growth_rates.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_eps_surprises.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_etf_holdings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_institutional_holding_companies.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_institutional_holding_owners.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_institutional_holdings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_long_term_growth_rates.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_sales_surprises.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_zacks_target_price_consensuses.rb +1 -1
- data/lib/intrinio-sdk/models/average_daily_trading_volume_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/average_directional_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/average_true_range_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/awesome_oscillator_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/bollinger_bands_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/bulk_download_links.rb +1 -1
- data/lib/intrinio-sdk/models/bulk_download_summary.rb +1 -1
- data/lib/intrinio-sdk/models/chaikin_money_flow_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/commodity_channel_index_technical_value.rb +1 -1
- 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_initial_public_offering.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/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 +1 -1
- data/lib/intrinio-sdk/models/dividend_record.rb +1 -1
- data/lib/intrinio-sdk/models/donchian_channel_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/earnings_record.rb +1 -1
- data/lib/intrinio-sdk/models/ease_of_movement_technical_value.rb +1 -1
- 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/etf.rb +1 -1
- data/lib/intrinio-sdk/models/etf_analytics.rb +1 -1
- data/lib/intrinio-sdk/models/etf_holding.rb +1 -1
- data/lib/intrinio-sdk/models/etf_stats.rb +1 -1
- data/lib/intrinio-sdk/models/etf_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 +1 -1
- 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 +1 -1
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/mass_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +1 -1
- 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 +1 -1
- data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/option.rb +1 -1
- data/lib/intrinio-sdk/models/option_chain.rb +1 -1
- data/lib/intrinio-sdk/models/option_chain_realtime.rb +206 -0
- data/lib/intrinio-sdk/models/option_factors_realtime.rb +239 -0
- data/lib/intrinio-sdk/models/option_price.rb +1 -1
- data/lib/intrinio-sdk/models/option_price_realtime.rb +332 -0
- data/lib/intrinio-sdk/models/option_realtime.rb +262 -0
- data/lib/intrinio-sdk/models/option_stats_realtime.rb +229 -0
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +22 -2
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
- data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
- data/lib/intrinio-sdk/models/reported_financial_dimension.rb +1 -1
- data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
- data/lib/intrinio-sdk/models/security.rb +1 -1
- 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 +15 -5
- data/lib/intrinio-sdk/models/sic_index.rb +1 -1
- data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
- data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +1 -1
- 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 +72 -2
- 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_interval.rb +239 -0
- data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
- data/lib/intrinio-sdk/models/technical_indicator.rb +1 -1
- data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +1 -1
- data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/williams_r_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_analyst_rating.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_analyst_rating_snapshot.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_analyst_rating_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_estimate.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_growth_rate.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_surprise.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_surprise_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_etf_holding.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_company_detail.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_company_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_historical_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_owner_detail.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_owner_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_long_term_growth_rate.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_sales_surprise.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_sales_surprise_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_target_price_consensus.rb +1 -1
- data/lib/intrinio-sdk/version.rb +2 -2
- data/spec/api/bulk_downloads_api_spec.rb +1 -1
- data/spec/api/company_api_spec.rb +11 -10
- data/spec/api/data_point_api_spec.rb +7 -7
- data/spec/api/data_tag_api_spec.rb +1 -1
- data/spec/api/et_fs_api_spec.rb +1 -1
- data/spec/api/filing_api_spec.rb +1 -1
- data/spec/api/forex_api_spec.rb +3 -3
- data/spec/api/fundamentals_api_spec.rb +1 -1
- data/spec/api/historical_data_api_spec.rb +4 -4
- data/spec/api/index_api_spec.rb +1 -1
- data/spec/api/municipality_api_spec.rb +2 -2
- data/spec/api/options_api_spec.rb +50 -1
- data/spec/api/security_api_spec.rb +38 -16
- data/spec/api/stock_exchange_api_spec.rb +1 -1
- data/spec/api/technical_api_spec.rb +1 -1
- data/spec/api/zacks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/accumulation_distribution_index_technical_value_spec.rb +1 -1
- data/spec/models/api_response_bulk_download_links_spec.rb +1 -1
- data/spec/models/api_response_companies_search_spec.rb +1 -1
- data/spec/models/api_response_companies_spec.rb +1 -1
- data/spec/models/api_response_company_filings_spec.rb +1 -1
- data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
- data/spec/models/api_response_company_historical_data_spec.rb +1 -1
- data/spec/models/api_response_company_news_spec.rb +1 -1
- data/spec/models/api_response_company_securities_spec.rb +1 -1
- data/spec/models/api_response_data_tags_search_spec.rb +1 -1
- data/spec/models/api_response_data_tags_spec.rb +1 -1
- data/spec/models/api_response_economic_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_economic_indices_search_spec.rb +1 -1
- data/spec/models/api_response_economic_indices_spec.rb +1 -1
- data/spec/models/api_response_et_fs_spec.rb +1 -1
- data/spec/models/api_response_etf_holdings_spec.rb +1 -1
- data/spec/models/api_response_filing_fundamentals_spec.rb +1 -1
- data/spec/models/api_response_filing_notes_search_spec.rb +1 -1
- data/spec/models/api_response_filing_notes_spec.rb +1 -1
- data/spec/models/api_response_filings_spec.rb +1 -1
- data/spec/models/api_response_forex_currencies_spec.rb +1 -1
- data/spec/models/api_response_forex_pairs_spec.rb +1 -1
- data/spec/models/api_response_forex_prices_spec.rb +1 -1
- data/spec/models/api_response_historical_data_spec.rb +1 -1
- data/spec/models/api_response_initial_public_offerings_spec.rb +1 -1
- data/spec/models/api_response_municipalities_spec.rb +1 -1
- data/spec/models/api_response_municipalitiy_financials_spec.rb +1 -1
- data/spec/models/api_response_news_spec.rb +1 -1
- data/spec/models/api_response_option_prices_spec.rb +1 -1
- data/spec/models/api_response_options_chain_realtime_spec.rb +42 -0
- data/spec/models/api_response_options_chain_spec.rb +1 -1
- data/spec/models/api_response_options_expirations_spec.rb +1 -1
- data/spec/models/api_response_options_price_realtime_spec.rb +54 -0
- data/spec/models/api_response_options_spec.rb +1 -1
- data/spec/models/api_response_options_stats_realtime_spec.rb +54 -0
- data/spec/models/api_response_reported_financials_spec.rb +1 -1
- data/spec/models/api_response_securities_search_spec.rb +1 -1
- data/spec/models/api_response_securities_spec.rb +1 -1
- data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +1 -1
- data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +1 -1
- data/spec/models/api_response_security_average_directional_index_spec.rb +1 -1
- data/spec/models/api_response_security_average_true_range_spec.rb +1 -1
- data/spec/models/api_response_security_awesome_oscillator_spec.rb +1 -1
- data/spec/models/api_response_security_bollinger_bands_spec.rb +1 -1
- data/spec/models/api_response_security_chaikin_money_flow_spec.rb +1 -1
- data/spec/models/api_response_security_commodity_channel_index_spec.rb +1 -1
- data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +1 -1
- data/spec/models/api_response_security_donchian_channel_spec.rb +1 -1
- data/spec/models/api_response_security_ease_of_movement_spec.rb +1 -1
- data/spec/models/api_response_security_force_index_spec.rb +1 -1
- data/spec/models/api_response_security_historical_data_spec.rb +1 -1
- data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +1 -1
- data/spec/models/api_response_security_interval_prices_spec.rb +64 -0
- data/spec/models/api_response_security_intraday_prices_spec.rb +2 -2
- data/spec/models/api_response_security_keltner_channel_spec.rb +1 -1
- data/spec/models/api_response_security_know_sure_thing_spec.rb +1 -1
- data/spec/models/api_response_security_mass_index_spec.rb +1 -1
- data/spec/models/api_response_security_money_flow_index_spec.rb +1 -1
- data/spec/models/api_response_security_moving_average_convergence_divergence_spec.rb +1 -1
- data/spec/models/api_response_security_negative_volume_index_spec.rb +1 -1
- data/spec/models/api_response_security_on_balance_volume_mean_spec.rb +1 -1
- data/spec/models/api_response_security_on_balance_volume_spec.rb +1 -1
- data/spec/models/api_response_security_relative_strength_index_spec.rb +1 -1
- data/spec/models/api_response_security_simple_moving_average_spec.rb +1 -1
- data/spec/models/api_response_security_stochastic_oscillator_spec.rb +1 -1
- data/spec/models/api_response_security_stock_price_adjustments_spec.rb +1 -1
- data/spec/models/api_response_security_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_security_triple_exponential_average_spec.rb +1 -1
- data/spec/models/api_response_security_true_strength_index_spec.rb +1 -1
- data/spec/models/api_response_security_ultimate_oscillator_spec.rb +1 -1
- data/spec/models/api_response_security_volume_price_trend_spec.rb +1 -1
- data/spec/models/api_response_security_volume_weighted_average_price_spec.rb +1 -1
- data/spec/models/api_response_security_vortex_indicator_spec.rb +1 -1
- data/spec/models/api_response_security_williams_r_spec.rb +1 -1
- data/spec/models/api_response_security_zacks_analyst_ratings_snapshot_spec.rb +1 -1
- data/spec/models/api_response_security_zacks_analyst_ratings_spec.rb +1 -1
- data/spec/models/api_response_security_zacks_eps_surprises_spec.rb +1 -1
- data/spec/models/api_response_security_zacks_sales_surprises_spec.rb +1 -1
- data/spec/models/api_response_sic_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_sic_indices_search_spec.rb +1 -1
- data/spec/models/api_response_sic_indices_spec.rb +1 -1
- data/spec/models/api_response_standardized_financials_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_realtime_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_securities_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_stock_price_adjustments_spec.rb +1 -1
- data/spec/models/api_response_stock_exchange_stock_prices_spec.rb +1 -1
- data/spec/models/api_response_stock_exchanges_spec.rb +1 -1
- data/spec/models/api_response_stock_market_index_historical_data_spec.rb +1 -1
- data/spec/models/api_response_stock_market_indices_search_spec.rb +1 -1
- data/spec/models/api_response_stock_market_indices_spec.rb +1 -1
- data/spec/models/api_response_zacks_analyst_ratings_spec.rb +1 -1
- data/spec/models/api_response_zacks_eps_estimates_spec.rb +1 -1
- data/spec/models/api_response_zacks_eps_growth_rates_spec.rb +1 -1
- data/spec/models/api_response_zacks_eps_surprises_spec.rb +1 -1
- data/spec/models/api_response_zacks_etf_holdings_spec.rb +1 -1
- data/spec/models/api_response_zacks_institutional_holding_companies_spec.rb +1 -1
- data/spec/models/api_response_zacks_institutional_holding_owners_spec.rb +1 -1
- data/spec/models/api_response_zacks_institutional_holdings_spec.rb +1 -1
- data/spec/models/api_response_zacks_long_term_growth_rates_spec.rb +1 -1
- data/spec/models/api_response_zacks_sales_surprises_spec.rb +1 -1
- data/spec/models/api_response_zacks_target_price_consensuses_spec.rb +1 -1
- data/spec/models/average_daily_trading_volume_technical_value_spec.rb +1 -1
- data/spec/models/average_directional_index_technical_value_spec.rb +1 -1
- data/spec/models/average_true_range_technical_value_spec.rb +1 -1
- data/spec/models/awesome_oscillator_technical_value_spec.rb +1 -1
- data/spec/models/bollinger_bands_technical_value_spec.rb +1 -1
- data/spec/models/bulk_download_links_spec.rb +1 -1
- data/spec/models/bulk_download_summary_spec.rb +1 -1
- data/spec/models/chaikin_money_flow_technical_value_spec.rb +1 -1
- data/spec/models/commodity_channel_index_technical_value_spec.rb +1 -1
- data/spec/models/company_filing_spec.rb +1 -1
- data/spec/models/company_initial_public_offering_spec.rb +1 -1
- data/spec/models/company_news_spec.rb +1 -1
- data/spec/models/company_news_summary_spec.rb +1 -1
- data/spec/models/company_spec.rb +1 -1
- data/spec/models/company_summary_spec.rb +1 -1
- data/spec/models/data_tag_spec.rb +1 -1
- data/spec/models/data_tag_summary_spec.rb +1 -1
- data/spec/models/detrended_price_oscillator_technical_value_spec.rb +1 -1
- data/spec/models/dividend_record_spec.rb +1 -1
- data/spec/models/donchian_channel_technical_value_spec.rb +1 -1
- data/spec/models/earnings_record_spec.rb +1 -1
- data/spec/models/ease_of_movement_technical_value_spec.rb +1 -1
- data/spec/models/economic_index_spec.rb +1 -1
- data/spec/models/economic_index_summary_spec.rb +1 -1
- data/spec/models/etf_analytics_spec.rb +1 -1
- data/spec/models/etf_holding_spec.rb +1 -1
- data/spec/models/etf_spec.rb +1 -1
- data/spec/models/etf_stats_spec.rb +1 -1
- data/spec/models/etf_summary_spec.rb +1 -1
- data/spec/models/filing_note_filing_spec.rb +1 -1
- data/spec/models/filing_note_spec.rb +1 -1
- data/spec/models/filing_note_summary_spec.rb +1 -1
- data/spec/models/filing_spec.rb +1 -1
- data/spec/models/filing_summary_spec.rb +1 -1
- data/spec/models/force_index_technical_value_spec.rb +1 -1
- data/spec/models/forex_currency_spec.rb +1 -1
- data/spec/models/forex_pair_spec.rb +1 -1
- data/spec/models/forex_price_spec.rb +1 -1
- data/spec/models/fundamental_spec.rb +1 -1
- data/spec/models/fundamental_summary_spec.rb +1 -1
- data/spec/models/historical_data_spec.rb +1 -1
- data/spec/models/ichimoku_kinko_hyo_technical_value_spec.rb +1 -1
- data/spec/models/intraday_stock_price_spec.rb +1 -1
- data/spec/models/keltner_channel_technical_value_spec.rb +1 -1
- data/spec/models/know_sure_thing_technical_value_spec.rb +1 -1
- data/spec/models/mass_index_technical_value_spec.rb +1 -1
- data/spec/models/money_flow_index_technical_value_spec.rb +1 -1
- data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +1 -1
- data/spec/models/municipality_financial_spec.rb +1 -1
- data/spec/models/municipality_spec.rb +1 -1
- data/spec/models/negative_volume_index_technical_value_spec.rb +1 -1
- data/spec/models/on_balance_volume_mean_technical_value_spec.rb +1 -1
- data/spec/models/on_balance_volume_technical_value_spec.rb +1 -1
- data/spec/models/option_chain_realtime_spec.rb +54 -0
- data/spec/models/option_chain_spec.rb +1 -1
- data/spec/models/option_factors_realtime_spec.rb +72 -0
- data/spec/models/option_price_realtime_spec.rb +112 -0
- data/spec/models/option_price_spec.rb +1 -1
- data/spec/models/option_realtime_spec.rb +70 -0
- data/spec/models/option_spec.rb +1 -1
- data/spec/models/option_stats_realtime_spec.rb +66 -0
- data/spec/models/realtime_stock_price_security_spec.rb +1 -1
- data/spec/models/realtime_stock_price_spec.rb +13 -1
- data/spec/models/relative_strength_index_technical_value_spec.rb +1 -1
- data/spec/models/reported_financial_dimension_spec.rb +1 -1
- data/spec/models/reported_financial_spec.rb +1 -1
- data/spec/models/reported_tag_spec.rb +1 -1
- data/spec/models/security_screen_clause_spec.rb +1 -1
- data/spec/models/security_screen_group_spec.rb +1 -1
- data/spec/models/security_screen_result_data_spec.rb +1 -1
- data/spec/models/security_screen_result_spec.rb +1 -1
- data/spec/models/security_spec.rb +1 -1
- data/spec/models/security_summary_spec.rb +7 -1
- data/spec/models/sic_index_spec.rb +1 -1
- data/spec/models/simple_moving_average_technical_value_spec.rb +1 -1
- data/spec/models/standardized_financial_spec.rb +1 -1
- data/spec/models/stochastic_oscillator_technical_value_spec.rb +1 -1
- data/spec/models/stock_exchange_spec.rb +1 -1
- data/spec/models/stock_market_index_spec.rb +1 -1
- data/spec/models/stock_market_index_summary_spec.rb +1 -1
- data/spec/models/stock_price_adjustment_spec.rb +1 -1
- data/spec/models/stock_price_adjustment_summary_spec.rb +1 -1
- data/spec/models/stock_price_interval_spec.rb +72 -0
- data/spec/models/stock_price_spec.rb +43 -1
- data/spec/models/stock_price_summary_spec.rb +1 -1
- data/spec/models/technical_indicator_spec.rb +1 -1
- data/spec/models/triple_exponential_average_technical_value_spec.rb +1 -1
- data/spec/models/true_strength_index_technical_value_spec.rb +1 -1
- data/spec/models/ultimate_oscillator_technical_value_spec.rb +1 -1
- data/spec/models/volume_price_trend_technical_value_spec.rb +1 -1
- data/spec/models/volume_weighted_average_price_value_spec.rb +1 -1
- data/spec/models/vortex_indicator_technical_value_spec.rb +1 -1
- data/spec/models/williams_r_technical_value_spec.rb +1 -1
- data/spec/models/zacks_analyst_rating_snapshot_spec.rb +1 -1
- data/spec/models/zacks_analyst_rating_spec.rb +1 -1
- data/spec/models/zacks_analyst_rating_summary_spec.rb +1 -1
- data/spec/models/zacks_eps_estimate_spec.rb +1 -1
- data/spec/models/zacks_eps_growth_rate_spec.rb +1 -1
- data/spec/models/zacks_eps_surprise_spec.rb +1 -1
- data/spec/models/zacks_eps_surprise_summary_spec.rb +1 -1
- data/spec/models/zacks_etf_holding_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_company_detail_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_company_summary_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_historical_summary_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_owner_detail_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_owner_summary_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_spec.rb +1 -1
- data/spec/models/zacks_long_term_growth_rate_spec.rb +1 -1
- data/spec/models/zacks_sales_surprise_spec.rb +1 -1
- data/spec/models/zacks_sales_surprise_summary_spec.rb +1 -1
- data/spec/models/zacks_target_price_consensus_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +66 -7
data/docs/RealtimeStockPrice.md
CHANGED
@@ -14,11 +14,13 @@ Name | Type | Description
|
|
14
14
|
------------ | ------------- | -------------
|
15
15
|
**last_price** | Float | The price of the last trade.
|
16
16
|
**last_time** | DateTime | The date and time when the last trade occurred.
|
17
|
+
**last_size** | Float | The size of the last trade.
|
17
18
|
**bid_price** | Float | The price of the top bid order.
|
18
19
|
**bid_size** | Float | The size of the top bid order.
|
19
20
|
**ask_price** | Float | The price of the top ask order.
|
20
21
|
**ask_size** | Float | The size of the top ask order.
|
21
22
|
**open_price** | Float | The price at the open of the trading day.
|
23
|
+
**close_price** | Float | The price at the close of the trading day.
|
22
24
|
**high_price** | Float | The high price for the trading day.
|
23
25
|
**low_price** | Float | The low price for the trading day.
|
24
26
|
**exchange_volume** | Float | The number of shares exchanged during the trading day on the exchange.
|
data/docs/SecurityApi.md
CHANGED
@@ -9,9 +9,10 @@ Method | HTTP request | Description
|
|
9
9
|
[**get_security_data_point_number**](SecurityApi.md#get_security_data_point_number) | **GET** /securities/{identifier}/data_point/{tag}/number | Data Point (Number) for Security
|
10
10
|
[**get_security_data_point_text**](SecurityApi.md#get_security_data_point_text) | **GET** /securities/{identifier}/data_point/{tag}/text | Data Point (Text) for Security
|
11
11
|
[**get_security_historical_data**](SecurityApi.md#get_security_historical_data) | **GET** /securities/{identifier}/historical_data/{tag} | Historical Data for Security
|
12
|
+
[**get_security_interval_prices**](SecurityApi.md#get_security_interval_prices) | **GET** /securities/{identifier}/prices/intervals | Interval Stock Prices for Security
|
12
13
|
[**get_security_intraday_prices**](SecurityApi.md#get_security_intraday_prices) | **GET** /securities/{identifier}/prices/intraday | Intraday Stock Prices for Security
|
13
|
-
[**get_security_latest_dividend_record**](SecurityApi.md#get_security_latest_dividend_record) | **GET** /securities/{identifier}/dividends/latest |
|
14
|
-
[**get_security_latest_earnings_record**](SecurityApi.md#get_security_latest_earnings_record) | **GET** /securities/{identifier}/earnings/latest |
|
14
|
+
[**get_security_latest_dividend_record**](SecurityApi.md#get_security_latest_dividend_record) | **GET** /securities/{identifier}/dividends/latest | Latest Dividend Record for Security
|
15
|
+
[**get_security_latest_earnings_record**](SecurityApi.md#get_security_latest_earnings_record) | **GET** /securities/{identifier}/earnings/latest | Latest Earnings Record for Security
|
15
16
|
[**get_security_price_technicals_adi**](SecurityApi.md#get_security_price_technicals_adi) | **GET** /securities/{identifier}/prices/technicals/adi | Accumulation/Distribution Index
|
16
17
|
[**get_security_price_technicals_adtv**](SecurityApi.md#get_security_price_technicals_adtv) | **GET** /securities/{identifier}/prices/technicals/adtv | Average Daily Trading Volume
|
17
18
|
[**get_security_price_technicals_adx**](SecurityApi.md#get_security_price_technicals_adx) | **GET** /securities/{identifier}/prices/technicals/adx | Average Directional Index
|
@@ -100,37 +101,35 @@ require 'pp'
|
|
100
101
|
# Setup authorization
|
101
102
|
Intrinio.configure do |config|
|
102
103
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
104
|
+
config.allow_retries = true
|
103
105
|
end
|
104
106
|
|
105
107
|
security_api = Intrinio::SecurityApi.new
|
106
108
|
|
107
|
-
opts = {
|
108
|
-
active: true,
|
109
|
-
delisted: false,
|
110
|
-
code: nil,
|
111
|
-
currency: nil,
|
112
|
-
ticker: nil,
|
113
|
-
name: nil,
|
114
|
-
composite_mic: nil,
|
115
|
-
exchange_mic: nil,
|
116
|
-
stock_prices_after: nil,
|
117
|
-
stock_prices_before: nil,
|
118
|
-
cik: nil,
|
119
|
-
figi: nil,
|
120
|
-
composite_figi: nil,
|
121
|
-
share_class_figi: nil,
|
122
|
-
figi_unique_id: nil,
|
123
|
-
include_non_figi: false,
|
124
|
-
page_size: 100,
|
125
|
-
|
109
|
+
opts = {
|
110
|
+
active: true,
|
111
|
+
delisted: false,
|
112
|
+
code: nil,
|
113
|
+
currency: nil,
|
114
|
+
ticker: nil,
|
115
|
+
name: nil,
|
116
|
+
composite_mic: nil,
|
117
|
+
exchange_mic: nil,
|
118
|
+
stock_prices_after: nil,
|
119
|
+
stock_prices_before: nil,
|
120
|
+
cik: nil,
|
121
|
+
figi: nil,
|
122
|
+
composite_figi: nil,
|
123
|
+
share_class_figi: nil,
|
124
|
+
figi_unique_id: nil,
|
125
|
+
include_non_figi: false,
|
126
|
+
page_size: 100,
|
127
|
+
primary_listing: nil,
|
128
|
+
next_page: nil
|
126
129
|
}
|
127
130
|
|
128
|
-
|
129
|
-
|
130
|
-
pp result
|
131
|
-
rescue Intrinio::ApiError => e
|
132
|
-
puts "Exception when calling SecurityApi->get_all_securities: #{e}"
|
133
|
-
end
|
131
|
+
result = security_api.get_all_securities(opts)
|
132
|
+
pp result
|
134
133
|
```
|
135
134
|
|
136
135
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -161,6 +160,7 @@ Name | Type | Description | Notes
|
|
161
160
|
**figi_unique_id** | String| Return securities with the given FIGI Unique ID (<a href=\"https://www.openfigi.com/about\" target=\"_blank\">reference</a>). | [optional]
|
162
161
|
**include_non_figi** | BOOLEAN| When true, include securities that do not have a FIGI. By default, this is false. If this parameter is not specified, only securities with a FIGI are returned. | [optional] [default to false]
|
163
162
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
163
|
+
**primary_listing** | BOOLEAN| If true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange. Returns both if omitted. | [optional]
|
164
164
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
165
165
|
|
166
166
|
[//]: # (END_PARAMETERS)
|
@@ -217,19 +217,14 @@ require 'pp'
|
|
217
217
|
# Setup authorization
|
218
218
|
Intrinio.configure do |config|
|
219
219
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
220
|
+
config.allow_retries = true
|
220
221
|
end
|
221
222
|
|
222
223
|
security_api = Intrinio::SecurityApi.new
|
224
|
+
identifier = "AAPL"
|
223
225
|
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
begin
|
228
|
-
result = security_api.get_security_by_id(identifier)
|
229
|
-
pp result
|
230
|
-
rescue Intrinio::ApiError => e
|
231
|
-
puts "Exception when calling SecurityApi->get_security_by_id: #{e}"
|
232
|
-
end
|
226
|
+
result = security_api.get_security_by_id(identifier)
|
227
|
+
pp result
|
233
228
|
```
|
234
229
|
|
235
230
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -283,7 +278,7 @@ Name | Type | Description | Notes
|
|
283
278
|
#### Data Point (Number) for Security
|
284
279
|
|
285
280
|
|
286
|
-
|
281
|
+
Returns a numeric value for the given `tag` for the Security with the given `identifier`
|
287
282
|
|
288
283
|
[//]: # (END_OVERVIEW)
|
289
284
|
|
@@ -299,21 +294,15 @@ require 'pp'
|
|
299
294
|
# Setup authorization
|
300
295
|
Intrinio.configure do |config|
|
301
296
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
297
|
+
config.allow_retries = true
|
302
298
|
end
|
303
299
|
|
304
300
|
security_api = Intrinio::SecurityApi.new
|
301
|
+
identifier = "AAPL"
|
302
|
+
tag = "close_price"
|
305
303
|
|
306
|
-
|
307
|
-
|
308
|
-
tag = "$$v2_security_data_point_item_number_default$$" # String | $$v2_security_data_point_item_description$$
|
309
|
-
|
310
|
-
|
311
|
-
begin
|
312
|
-
result = security_api.get_security_data_point_number(identifier, tag)
|
313
|
-
pp result
|
314
|
-
rescue Intrinio::ApiError => e
|
315
|
-
puts "Exception when calling SecurityApi->get_security_data_point_number: #{e}"
|
316
|
-
end
|
304
|
+
result = security_api.get_security_data_point_number(identifier, tag)
|
305
|
+
pp result
|
317
306
|
```
|
318
307
|
|
319
308
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -327,8 +316,8 @@ end
|
|
327
316
|
|
328
317
|
Name | Type | Description | Notes
|
329
318
|
------------- | ------------- | ------------- | -------------
|
330
|
-
**identifier** | String|
|
331
|
-
**tag** | String|
|
319
|
+
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
320
|
+
**tag** | String| An Intrinio data tag ID or code (<a href='https://data.intrinio.com/data-tags'>reference</a>) |
|
332
321
|
|
333
322
|
[//]: # (END_PARAMETERS)
|
334
323
|
|
@@ -368,7 +357,7 @@ Name | Type | Description | Notes
|
|
368
357
|
#### Data Point (Text) for Security
|
369
358
|
|
370
359
|
|
371
|
-
|
360
|
+
Returns a text value for the given `tag` for the Security with the given `identifier`
|
372
361
|
|
373
362
|
[//]: # (END_OVERVIEW)
|
374
363
|
|
@@ -384,21 +373,15 @@ require 'pp'
|
|
384
373
|
# Setup authorization
|
385
374
|
Intrinio.configure do |config|
|
386
375
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
376
|
+
config.allow_retries = true
|
387
377
|
end
|
388
378
|
|
389
379
|
security_api = Intrinio::SecurityApi.new
|
380
|
+
identifier = "AAPL"
|
381
|
+
tag = "figi"
|
390
382
|
|
391
|
-
|
392
|
-
|
393
|
-
tag = "$$v2_security_data_point_item_text_default$$" # String | An Intrinio data tag ID or code-name
|
394
|
-
|
395
|
-
|
396
|
-
begin
|
397
|
-
result = security_api.get_security_data_point_text(identifier, tag)
|
398
|
-
pp result
|
399
|
-
rescue Intrinio::ApiError => e
|
400
|
-
puts "Exception when calling SecurityApi->get_security_data_point_text: #{e}"
|
401
|
-
end
|
383
|
+
result = security_api.get_security_data_point_text(identifier, tag)
|
384
|
+
pp result
|
402
385
|
```
|
403
386
|
|
404
387
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -412,7 +395,7 @@ end
|
|
412
395
|
|
413
396
|
Name | Type | Description | Notes
|
414
397
|
------------- | ------------- | ------------- | -------------
|
415
|
-
**identifier** | String|
|
398
|
+
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
416
399
|
**tag** | String| An Intrinio data tag ID or code-name |
|
417
400
|
|
418
401
|
[//]: # (END_PARAMETERS)
|
@@ -453,7 +436,7 @@ Name | Type | Description | Notes
|
|
453
436
|
#### Historical Data for Security
|
454
437
|
|
455
438
|
|
456
|
-
|
439
|
+
Returns historical values for the given `tag` and the Security with the given `identifier`
|
457
440
|
|
458
441
|
[//]: # (END_OVERVIEW)
|
459
442
|
|
@@ -469,30 +452,25 @@ require 'pp'
|
|
469
452
|
# Setup authorization
|
470
453
|
Intrinio.configure do |config|
|
471
454
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
455
|
+
config.allow_retries = true
|
472
456
|
end
|
473
457
|
|
474
458
|
security_api = Intrinio::SecurityApi.new
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
page_size: 100, # Integer | The number of results to return
|
487
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
459
|
+
identifier = "AAPL"
|
460
|
+
tag = "adj_close_price"
|
461
|
+
|
462
|
+
opts = {
|
463
|
+
frequency: "daily",
|
464
|
+
type: nil,
|
465
|
+
start_date: Date.parse("2018-01-01"),
|
466
|
+
end_date: nil,
|
467
|
+
sort_order: "desc",
|
468
|
+
page_size: 100,
|
469
|
+
next_page: nil
|
488
470
|
}
|
489
471
|
|
490
|
-
|
491
|
-
|
492
|
-
pp result
|
493
|
-
rescue Intrinio::ApiError => e
|
494
|
-
puts "Exception when calling SecurityApi->get_security_historical_data: #{e}"
|
495
|
-
end
|
472
|
+
result = security_api.get_security_historical_data(identifier, tag, opts)
|
473
|
+
pp result
|
496
474
|
```
|
497
475
|
|
498
476
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -506,8 +484,8 @@ end
|
|
506
484
|
|
507
485
|
Name | Type | Description | Notes
|
508
486
|
------------- | ------------- | ------------- | -------------
|
509
|
-
**identifier** | String|
|
510
|
-
**tag** | String|
|
487
|
+
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
488
|
+
**tag** | String| An Intrinio data tag ID or code (<a href='https://data.intrinio.com/data-tags'>reference</a>) |
|
511
489
|
**frequency** | String| Return historical data in the given frequency | [optional] [default to daily]
|
512
490
|
**type** | String| Filter by type, when applicable | [optional]
|
513
491
|
**start_date** | Date| Get historical data on or after this date | [optional]
|
@@ -525,6 +503,104 @@ Name | Type | Description | Notes
|
|
525
503
|
[//]: # (END_OPERATION)
|
526
504
|
|
527
505
|
|
506
|
+
[//]: # (START_OPERATION)
|
507
|
+
|
508
|
+
[//]: # (CLASS:Intrinio::SecurityApi)
|
509
|
+
|
510
|
+
[//]: # (METHOD:get_security_interval_prices)
|
511
|
+
|
512
|
+
[//]: # (RETURN_TYPE:Intrinio::ApiResponseSecurityIntervalPrices)
|
513
|
+
|
514
|
+
[//]: # (RETURN_TYPE_KIND:object)
|
515
|
+
|
516
|
+
[//]: # (RETURN_TYPE_DOC:ApiResponseSecurityIntervalPrices.md)
|
517
|
+
|
518
|
+
[//]: # (OPERATION:get_security_interval_prices_v2)
|
519
|
+
|
520
|
+
[//]: # (ENDPOINT:/securities/{identifier}/prices/intervals)
|
521
|
+
|
522
|
+
[//]: # (DOCUMENT_LINK:SecurityApi.md#get_security_interval_prices)
|
523
|
+
|
524
|
+
## **get_security_interval_prices**
|
525
|
+
|
526
|
+
[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/ruby/get_security_interval_prices_v2)
|
527
|
+
|
528
|
+
[//]: # (START_OVERVIEW)
|
529
|
+
|
530
|
+
> ApiResponseSecurityIntervalPrices get_security_interval_prices(identifier, opts)
|
531
|
+
|
532
|
+
#### Interval Stock Prices for Security
|
533
|
+
|
534
|
+
|
535
|
+
Return Open, High, Low, Close, and Volume for a particular interval for the Security with the given `identifier`
|
536
|
+
|
537
|
+
[//]: # (END_OVERVIEW)
|
538
|
+
|
539
|
+
### Example
|
540
|
+
|
541
|
+
[//]: # (START_CODE_EXAMPLE)
|
542
|
+
|
543
|
+
```ruby
|
544
|
+
# Load the gem
|
545
|
+
require 'intrinio-sdk'
|
546
|
+
require 'pp'
|
547
|
+
|
548
|
+
# Setup authorization
|
549
|
+
Intrinio.configure do |config|
|
550
|
+
config.api_key['api_key'] = 'YOUR_API_KEY'
|
551
|
+
config.allow_retries = true
|
552
|
+
end
|
553
|
+
|
554
|
+
security_api = Intrinio::SecurityApi.new
|
555
|
+
identifier = "AAPL"
|
556
|
+
|
557
|
+
opts = {
|
558
|
+
source: nil,
|
559
|
+
start_date: Date.parse("2018-01-01"),
|
560
|
+
start_time: nil,
|
561
|
+
end_date: Date.parse("2019-01-01"),
|
562
|
+
end_time: nil,
|
563
|
+
timezone: "UTC",
|
564
|
+
interval_size: 1d,
|
565
|
+
page_size: 100,
|
566
|
+
next_page: nil
|
567
|
+
}
|
568
|
+
|
569
|
+
result = security_api.get_security_interval_prices(identifier, opts)
|
570
|
+
pp result
|
571
|
+
```
|
572
|
+
|
573
|
+
[//]: # (END_CODE_EXAMPLE)
|
574
|
+
|
575
|
+
[//]: # (START_DEFINITION)
|
576
|
+
|
577
|
+
### Parameters
|
578
|
+
|
579
|
+
[//]: # (START_PARAMETERS)
|
580
|
+
|
581
|
+
|
582
|
+
Name | Type | Description | Notes
|
583
|
+
------------- | ------------- | ------------- | -------------
|
584
|
+
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
585
|
+
**source** | String| Return intervals from the specified data source | [optional]
|
586
|
+
**start_date** | Date| Return intervals starting at the specified date | [optional]
|
587
|
+
**start_time** | String| Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm' format, UTC timezone) | [optional]
|
588
|
+
**end_date** | Date| Return intervals stopping at the specified date | [optional]
|
589
|
+
**end_time** | String| Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm' format, UTC timezone) | [optional]
|
590
|
+
**timezone** | String| Returns trading times in this timezone | [optional] [default to UTC]
|
591
|
+
**interval_size** | String| The interval for which to return stock prices | [optional] [default to 1d]
|
592
|
+
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
593
|
+
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
594
|
+
|
595
|
+
[//]: # (END_PARAMETERS)
|
596
|
+
|
597
|
+
### Return type
|
598
|
+
|
599
|
+
[**ApiResponseSecurityIntervalPrices**](ApiResponseSecurityIntervalPrices.md)
|
600
|
+
|
601
|
+
[//]: # (END_OPERATION)
|
602
|
+
|
603
|
+
|
528
604
|
[//]: # (START_OPERATION)
|
529
605
|
|
530
606
|
[//]: # (CLASS:Intrinio::SecurityApi)
|
@@ -554,7 +630,7 @@ Name | Type | Description | Notes
|
|
554
630
|
#### Intraday Stock Prices for Security
|
555
631
|
|
556
632
|
|
557
|
-
|
633
|
+
Return intraday stock prices for the Security with the given `identifier`
|
558
634
|
|
559
635
|
[//]: # (END_OVERVIEW)
|
560
636
|
|
@@ -570,28 +646,24 @@ require 'pp'
|
|
570
646
|
# Setup authorization
|
571
647
|
Intrinio.configure do |config|
|
572
648
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
649
|
+
config.allow_retries = true
|
573
650
|
end
|
574
651
|
|
575
652
|
security_api = Intrinio::SecurityApi.new
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
653
|
+
identifier = "AAPL"
|
654
|
+
|
655
|
+
opts = {
|
656
|
+
source: nil,
|
657
|
+
start_date: Date.parse("2018-01-01"),
|
658
|
+
start_time: nil,
|
659
|
+
end_date: Date.parse("2019-01-01"),
|
660
|
+
end_time: nil,
|
661
|
+
page_size: 100,
|
662
|
+
next_page: nil
|
587
663
|
}
|
588
664
|
|
589
|
-
|
590
|
-
|
591
|
-
pp result
|
592
|
-
rescue Intrinio::ApiError => e
|
593
|
-
puts "Exception when calling SecurityApi->get_security_intraday_prices: #{e}"
|
594
|
-
end
|
665
|
+
result = security_api.get_security_intraday_prices(identifier, opts)
|
666
|
+
pp result
|
595
667
|
```
|
596
668
|
|
597
669
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -608,9 +680,9 @@ Name | Type | Description | Notes
|
|
608
680
|
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
609
681
|
**source** | String| Return intraday prices from the specified data source | [optional]
|
610
682
|
**start_date** | Date| Return intraday prices starting at the specified date | [optional]
|
611
|
-
**start_time** | String| Return intraday prices starting at the specified time on the `start_date` (
|
683
|
+
**start_time** | String| Return intraday prices starting at the specified time on the `start_date` (24-hour in 'hh:mm' format, UTC timezone) | [optional]
|
612
684
|
**end_date** | Date| Return intraday prices stopping at the specified date | [optional]
|
613
|
-
**end_time** | String| Return intraday prices stopping at the specified time on the `end_date` (
|
685
|
+
**end_time** | String| Return intraday prices stopping at the specified time on the `end_date` (24-hour in 'hh:mm' format, UTC timezone) | [optional]
|
614
686
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
615
687
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
616
688
|
|
@@ -649,7 +721,7 @@ Name | Type | Description | Notes
|
|
649
721
|
|
650
722
|
> DividendRecord get_security_latest_dividend_record(identifier)
|
651
723
|
|
652
|
-
####
|
724
|
+
#### Latest Dividend Record for Security
|
653
725
|
|
654
726
|
|
655
727
|
Returns the latest available dividend information for the Security with the given `identifier`
|
@@ -668,19 +740,14 @@ require 'pp'
|
|
668
740
|
# Setup authorization
|
669
741
|
Intrinio.configure do |config|
|
670
742
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
743
|
+
config.allow_retries = true
|
671
744
|
end
|
672
745
|
|
673
746
|
security_api = Intrinio::SecurityApi.new
|
747
|
+
identifier = "AAPL"
|
674
748
|
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
begin
|
679
|
-
result = security_api.get_security_latest_dividend_record(identifier)
|
680
|
-
pp result
|
681
|
-
rescue Intrinio::ApiError => e
|
682
|
-
puts "Exception when calling SecurityApi->get_security_latest_dividend_record: #{e}"
|
683
|
-
end
|
749
|
+
result = security_api.get_security_latest_dividend_record(identifier)
|
750
|
+
pp result
|
684
751
|
```
|
685
752
|
|
686
753
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -731,7 +798,7 @@ Name | Type | Description | Notes
|
|
731
798
|
|
732
799
|
> EarningsRecord get_security_latest_earnings_record(identifier)
|
733
800
|
|
734
|
-
####
|
801
|
+
#### Latest Earnings Record for Security
|
735
802
|
|
736
803
|
|
737
804
|
Returns latest available earnings information for the Security with the given `identifier`
|
@@ -750,19 +817,14 @@ require 'pp'
|
|
750
817
|
# Setup authorization
|
751
818
|
Intrinio.configure do |config|
|
752
819
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
820
|
+
config.allow_retries = true
|
753
821
|
end
|
754
822
|
|
755
823
|
security_api = Intrinio::SecurityApi.new
|
824
|
+
identifier = "AAPL"
|
756
825
|
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
begin
|
761
|
-
result = security_api.get_security_latest_earnings_record(identifier)
|
762
|
-
pp result
|
763
|
-
rescue Intrinio::ApiError => e
|
764
|
-
puts "Exception when calling SecurityApi->get_security_latest_earnings_record: #{e}"
|
765
|
-
end
|
826
|
+
result = security_api.get_security_latest_earnings_record(identifier)
|
827
|
+
pp result
|
766
828
|
```
|
767
829
|
|
768
830
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -832,25 +894,21 @@ require 'pp'
|
|
832
894
|
# Setup authorization
|
833
895
|
Intrinio.configure do |config|
|
834
896
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
897
|
+
config.allow_retries = true
|
835
898
|
end
|
836
899
|
|
837
900
|
security_api = Intrinio::SecurityApi.new
|
901
|
+
identifier = "AAPL"
|
838
902
|
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
page_size: 100, # Integer | The number of results to return
|
845
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
903
|
+
opts = {
|
904
|
+
start_date: "2018-01-01",
|
905
|
+
end_date: "2019-01-01",
|
906
|
+
page_size: 100,
|
907
|
+
next_page: nil
|
846
908
|
}
|
847
909
|
|
848
|
-
|
849
|
-
|
850
|
-
pp result
|
851
|
-
rescue Intrinio::ApiError => e
|
852
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adi: #{e}"
|
853
|
-
end
|
910
|
+
result = security_api.get_security_price_technicals_adi(identifier, opts)
|
911
|
+
pp result
|
854
912
|
```
|
855
913
|
|
856
914
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -924,26 +982,22 @@ require 'pp'
|
|
924
982
|
# Setup authorization
|
925
983
|
Intrinio.configure do |config|
|
926
984
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
985
|
+
config.allow_retries = true
|
927
986
|
end
|
928
987
|
|
929
988
|
security_api = Intrinio::SecurityApi.new
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
989
|
+
identifier = "AAPL"
|
990
|
+
|
991
|
+
opts = {
|
992
|
+
period: 22,
|
993
|
+
start_date: "2018-01-01",
|
994
|
+
end_date: "2019-01-01",
|
995
|
+
page_size: 100,
|
996
|
+
next_page: nil
|
939
997
|
}
|
940
998
|
|
941
|
-
|
942
|
-
|
943
|
-
pp result
|
944
|
-
rescue Intrinio::ApiError => e
|
945
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adtv: #{e}"
|
946
|
-
end
|
999
|
+
result = security_api.get_security_price_technicals_adtv(identifier, opts)
|
1000
|
+
pp result
|
947
1001
|
```
|
948
1002
|
|
949
1003
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1018,26 +1072,22 @@ require 'pp'
|
|
1018
1072
|
# Setup authorization
|
1019
1073
|
Intrinio.configure do |config|
|
1020
1074
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1075
|
+
config.allow_retries = true
|
1021
1076
|
end
|
1022
1077
|
|
1023
1078
|
security_api = Intrinio::SecurityApi.new
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1079
|
+
identifier = "AAPL"
|
1080
|
+
|
1081
|
+
opts = {
|
1082
|
+
period: 14,
|
1083
|
+
start_date: "2018-01-01",
|
1084
|
+
end_date: "2019-01-01",
|
1085
|
+
page_size: 100,
|
1086
|
+
next_page: nil
|
1033
1087
|
}
|
1034
1088
|
|
1035
|
-
|
1036
|
-
|
1037
|
-
pp result
|
1038
|
-
rescue Intrinio::ApiError => e
|
1039
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adx: #{e}"
|
1040
|
-
end
|
1089
|
+
result = security_api.get_security_price_technicals_adx(identifier, opts)
|
1090
|
+
pp result
|
1041
1091
|
```
|
1042
1092
|
|
1043
1093
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1112,27 +1162,23 @@ require 'pp'
|
|
1112
1162
|
# Setup authorization
|
1113
1163
|
Intrinio.configure do |config|
|
1114
1164
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1165
|
+
config.allow_retries = true
|
1115
1166
|
end
|
1116
1167
|
|
1117
1168
|
security_api = Intrinio::SecurityApi.new
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1169
|
+
identifier = "AAPL"
|
1170
|
+
|
1171
|
+
opts = {
|
1172
|
+
short_period: 5,
|
1173
|
+
long_period: 34,
|
1174
|
+
start_date: "2018-01-01",
|
1175
|
+
end_date: "2019-01-01",
|
1176
|
+
page_size: 100,
|
1177
|
+
next_page: nil
|
1128
1178
|
}
|
1129
1179
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
pp result
|
1133
|
-
rescue Intrinio::ApiError => e
|
1134
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ao: #{e}"
|
1135
|
-
end
|
1180
|
+
result = security_api.get_security_price_technicals_ao(identifier, opts)
|
1181
|
+
pp result
|
1136
1182
|
```
|
1137
1183
|
|
1138
1184
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1208,26 +1254,22 @@ require 'pp'
|
|
1208
1254
|
# Setup authorization
|
1209
1255
|
Intrinio.configure do |config|
|
1210
1256
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1257
|
+
config.allow_retries = true
|
1211
1258
|
end
|
1212
1259
|
|
1213
1260
|
security_api = Intrinio::SecurityApi.new
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1261
|
+
identifier = "AAPL"
|
1262
|
+
|
1263
|
+
opts = {
|
1264
|
+
period: 14,
|
1265
|
+
start_date: "2018-01-01",
|
1266
|
+
end_date: "2019-01-01",
|
1267
|
+
page_size: 100,
|
1268
|
+
next_page: nil
|
1223
1269
|
}
|
1224
1270
|
|
1225
|
-
|
1226
|
-
|
1227
|
-
pp result
|
1228
|
-
rescue Intrinio::ApiError => e
|
1229
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_atr: #{e}"
|
1230
|
-
end
|
1271
|
+
result = security_api.get_security_price_technicals_atr(identifier, opts)
|
1272
|
+
pp result
|
1231
1273
|
```
|
1232
1274
|
|
1233
1275
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1302,28 +1344,24 @@ require 'pp'
|
|
1302
1344
|
# Setup authorization
|
1303
1345
|
Intrinio.configure do |config|
|
1304
1346
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1347
|
+
config.allow_retries = true
|
1305
1348
|
end
|
1306
1349
|
|
1307
1350
|
security_api = Intrinio::SecurityApi.new
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1351
|
+
identifier = "AAPL"
|
1352
|
+
|
1353
|
+
opts = {
|
1354
|
+
period: 20,
|
1355
|
+
standard_deviations: 2.0,
|
1356
|
+
price_key: "close",
|
1357
|
+
start_date: "2018-01-01",
|
1358
|
+
end_date: "2019-01-01",
|
1359
|
+
page_size: 100,
|
1360
|
+
next_page: nil
|
1319
1361
|
}
|
1320
1362
|
|
1321
|
-
|
1322
|
-
|
1323
|
-
pp result
|
1324
|
-
rescue Intrinio::ApiError => e
|
1325
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_bb: #{e}"
|
1326
|
-
end
|
1363
|
+
result = security_api.get_security_price_technicals_bb(identifier, opts)
|
1364
|
+
pp result
|
1327
1365
|
```
|
1328
1366
|
|
1329
1367
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1400,27 +1438,23 @@ require 'pp'
|
|
1400
1438
|
# Setup authorization
|
1401
1439
|
Intrinio.configure do |config|
|
1402
1440
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1441
|
+
config.allow_retries = true
|
1403
1442
|
end
|
1404
1443
|
|
1405
1444
|
security_api = Intrinio::SecurityApi.new
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1445
|
+
identifier = "AAPL"
|
1446
|
+
|
1447
|
+
opts = {
|
1448
|
+
period: 20,
|
1449
|
+
constant: 0.015,
|
1450
|
+
start_date: "2018-01-01",
|
1451
|
+
end_date: "2019-01-01",
|
1452
|
+
page_size: 100,
|
1453
|
+
next_page: nil
|
1416
1454
|
}
|
1417
1455
|
|
1418
|
-
|
1419
|
-
|
1420
|
-
pp result
|
1421
|
-
rescue Intrinio::ApiError => e
|
1422
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cci: #{e}"
|
1423
|
-
end
|
1456
|
+
result = security_api.get_security_price_technicals_cci(identifier, opts)
|
1457
|
+
pp result
|
1424
1458
|
```
|
1425
1459
|
|
1426
1460
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1496,26 +1530,22 @@ require 'pp'
|
|
1496
1530
|
# Setup authorization
|
1497
1531
|
Intrinio.configure do |config|
|
1498
1532
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1533
|
+
config.allow_retries = true
|
1499
1534
|
end
|
1500
1535
|
|
1501
1536
|
security_api = Intrinio::SecurityApi.new
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1537
|
+
identifier = "AAPL"
|
1538
|
+
|
1539
|
+
opts = {
|
1540
|
+
period: 20,
|
1541
|
+
start_date: "2018-01-01",
|
1542
|
+
end_date: "2019-01-01",
|
1543
|
+
page_size: 100,
|
1544
|
+
next_page: nil
|
1511
1545
|
}
|
1512
1546
|
|
1513
|
-
|
1514
|
-
|
1515
|
-
pp result
|
1516
|
-
rescue Intrinio::ApiError => e
|
1517
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cmf: #{e}"
|
1518
|
-
end
|
1547
|
+
result = security_api.get_security_price_technicals_cmf(identifier, opts)
|
1548
|
+
pp result
|
1519
1549
|
```
|
1520
1550
|
|
1521
1551
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1590,27 +1620,23 @@ require 'pp'
|
|
1590
1620
|
# Setup authorization
|
1591
1621
|
Intrinio.configure do |config|
|
1592
1622
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1623
|
+
config.allow_retries = true
|
1593
1624
|
end
|
1594
1625
|
|
1595
1626
|
security_api = Intrinio::SecurityApi.new
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1627
|
+
identifier = "AAPL"
|
1628
|
+
|
1629
|
+
opts = {
|
1630
|
+
period: 20,
|
1631
|
+
price_key: "close",
|
1632
|
+
start_date: "2018-01-01",
|
1633
|
+
end_date: "2019-01-01",
|
1634
|
+
page_size: 100,
|
1635
|
+
next_page: nil
|
1606
1636
|
}
|
1607
1637
|
|
1608
|
-
|
1609
|
-
|
1610
|
-
pp result
|
1611
|
-
rescue Intrinio::ApiError => e
|
1612
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dc: #{e}"
|
1613
|
-
end
|
1638
|
+
result = security_api.get_security_price_technicals_dc(identifier, opts)
|
1639
|
+
pp result
|
1614
1640
|
```
|
1615
1641
|
|
1616
1642
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1686,27 +1712,23 @@ require 'pp'
|
|
1686
1712
|
# Setup authorization
|
1687
1713
|
Intrinio.configure do |config|
|
1688
1714
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1715
|
+
config.allow_retries = true
|
1689
1716
|
end
|
1690
1717
|
|
1691
1718
|
security_api = Intrinio::SecurityApi.new
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1719
|
+
identifier = "AAPL"
|
1720
|
+
|
1721
|
+
opts = {
|
1722
|
+
period: 20,
|
1723
|
+
price_key: "close",
|
1724
|
+
start_date: "2018-01-01",
|
1725
|
+
end_date: "2019-01-01",
|
1726
|
+
page_size: 100,
|
1727
|
+
next_page: nil
|
1702
1728
|
}
|
1703
1729
|
|
1704
|
-
|
1705
|
-
|
1706
|
-
pp result
|
1707
|
-
rescue Intrinio::ApiError => e
|
1708
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dpo: #{e}"
|
1709
|
-
end
|
1730
|
+
result = security_api.get_security_price_technicals_dpo(identifier, opts)
|
1731
|
+
pp result
|
1710
1732
|
```
|
1711
1733
|
|
1712
1734
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1782,26 +1804,22 @@ require 'pp'
|
|
1782
1804
|
# Setup authorization
|
1783
1805
|
Intrinio.configure do |config|
|
1784
1806
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1807
|
+
config.allow_retries = true
|
1785
1808
|
end
|
1786
1809
|
|
1787
1810
|
security_api = Intrinio::SecurityApi.new
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1811
|
+
identifier = "AAPL"
|
1812
|
+
|
1813
|
+
opts = {
|
1814
|
+
period: 20,
|
1815
|
+
start_date: "2018-01-01",
|
1816
|
+
end_date: "2019-01-01",
|
1817
|
+
page_size: 100,
|
1818
|
+
next_page: nil
|
1797
1819
|
}
|
1798
1820
|
|
1799
|
-
|
1800
|
-
|
1801
|
-
pp result
|
1802
|
-
rescue Intrinio::ApiError => e
|
1803
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_eom: #{e}"
|
1804
|
-
end
|
1821
|
+
result = security_api.get_security_price_technicals_eom(identifier, opts)
|
1822
|
+
pp result
|
1805
1823
|
```
|
1806
1824
|
|
1807
1825
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1876,25 +1894,21 @@ require 'pp'
|
|
1876
1894
|
# Setup authorization
|
1877
1895
|
Intrinio.configure do |config|
|
1878
1896
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1897
|
+
config.allow_retries = true
|
1879
1898
|
end
|
1880
1899
|
|
1881
1900
|
security_api = Intrinio::SecurityApi.new
|
1901
|
+
identifier = "AAPL"
|
1882
1902
|
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
page_size: 100, # Integer | The number of results to return
|
1889
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1903
|
+
opts = {
|
1904
|
+
start_date: "2018-01-01",
|
1905
|
+
end_date: "2019-01-01",
|
1906
|
+
page_size: 100,
|
1907
|
+
next_page: nil
|
1890
1908
|
}
|
1891
1909
|
|
1892
|
-
|
1893
|
-
|
1894
|
-
pp result
|
1895
|
-
rescue Intrinio::ApiError => e
|
1896
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_fi: #{e}"
|
1897
|
-
end
|
1910
|
+
result = security_api.get_security_price_technicals_fi(identifier, opts)
|
1911
|
+
pp result
|
1898
1912
|
```
|
1899
1913
|
|
1900
1914
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1968,28 +1982,24 @@ require 'pp'
|
|
1968
1982
|
# Setup authorization
|
1969
1983
|
Intrinio.configure do |config|
|
1970
1984
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1985
|
+
config.allow_retries = true
|
1971
1986
|
end
|
1972
1987
|
|
1973
1988
|
security_api = Intrinio::SecurityApi.new
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
1989
|
+
identifier = "AAPL"
|
1990
|
+
|
1991
|
+
opts = {
|
1992
|
+
low_period: 9,
|
1993
|
+
medium_period: 26,
|
1994
|
+
high_period: 52,
|
1995
|
+
start_date: "2018-01-01",
|
1996
|
+
end_date: "2019-01-01",
|
1997
|
+
page_size: 100,
|
1998
|
+
next_page: nil
|
1985
1999
|
}
|
1986
2000
|
|
1987
|
-
|
1988
|
-
|
1989
|
-
pp result
|
1990
|
-
rescue Intrinio::ApiError => e
|
1991
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ichimoku: #{e}"
|
1992
|
-
end
|
2001
|
+
result = security_api.get_security_price_technicals_ichimoku(identifier, opts)
|
2002
|
+
pp result
|
1993
2003
|
```
|
1994
2004
|
|
1995
2005
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2066,26 +2076,22 @@ require 'pp'
|
|
2066
2076
|
# Setup authorization
|
2067
2077
|
Intrinio.configure do |config|
|
2068
2078
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2079
|
+
config.allow_retries = true
|
2069
2080
|
end
|
2070
2081
|
|
2071
2082
|
security_api = Intrinio::SecurityApi.new
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2083
|
+
identifier = "AAPL"
|
2084
|
+
|
2085
|
+
opts = {
|
2086
|
+
period: 10,
|
2087
|
+
start_date: "2018-01-01",
|
2088
|
+
end_date: "2019-01-01",
|
2089
|
+
page_size: 100,
|
2090
|
+
next_page: nil
|
2081
2091
|
}
|
2082
2092
|
|
2083
|
-
|
2084
|
-
|
2085
|
-
pp result
|
2086
|
-
rescue Intrinio::ApiError => e
|
2087
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kc: #{e}"
|
2088
|
-
end
|
2093
|
+
result = security_api.get_security_price_technicals_kc(identifier, opts)
|
2094
|
+
pp result
|
2089
2095
|
```
|
2090
2096
|
|
2091
2097
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2160,34 +2166,30 @@ require 'pp'
|
|
2160
2166
|
# Setup authorization
|
2161
2167
|
Intrinio.configure do |config|
|
2162
2168
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2169
|
+
config.allow_retries = true
|
2163
2170
|
end
|
2164
2171
|
|
2165
2172
|
security_api = Intrinio::SecurityApi.new
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2173
|
+
identifier = "AAPL"
|
2174
|
+
|
2175
|
+
opts = {
|
2176
|
+
roc1: 10,
|
2177
|
+
roc2: 15,
|
2178
|
+
roc3: 20,
|
2179
|
+
roc4: 30,
|
2180
|
+
sma1: 10,
|
2181
|
+
sma2: 10,
|
2182
|
+
sma3: 10,
|
2183
|
+
sma4: 15,
|
2184
|
+
price_key: "close",
|
2185
|
+
start_date: "2018-01-01",
|
2186
|
+
end_date: "2019-01-01",
|
2187
|
+
page_size: 100,
|
2188
|
+
next_page: nil
|
2183
2189
|
}
|
2184
2190
|
|
2185
|
-
|
2186
|
-
|
2187
|
-
pp result
|
2188
|
-
rescue Intrinio::ApiError => e
|
2189
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kst: #{e}"
|
2190
|
-
end
|
2191
|
+
result = security_api.get_security_price_technicals_kst(identifier, opts)
|
2192
|
+
pp result
|
2191
2193
|
```
|
2192
2194
|
|
2193
2195
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2270,29 +2272,25 @@ require 'pp'
|
|
2270
2272
|
# Setup authorization
|
2271
2273
|
Intrinio.configure do |config|
|
2272
2274
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2275
|
+
config.allow_retries = true
|
2273
2276
|
end
|
2274
2277
|
|
2275
2278
|
security_api = Intrinio::SecurityApi.new
|
2276
|
-
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2279
|
+
identifier = "AAPL"
|
2280
|
+
|
2281
|
+
opts = {
|
2282
|
+
fast_period: 12,
|
2283
|
+
slow_period: 26,
|
2284
|
+
signal_period: 9,
|
2285
|
+
price_key: "close",
|
2286
|
+
start_date: "2018-01-01",
|
2287
|
+
end_date: "2019-01-01",
|
2288
|
+
page_size: 100,
|
2289
|
+
next_page: nil
|
2288
2290
|
}
|
2289
2291
|
|
2290
|
-
|
2291
|
-
|
2292
|
-
pp result
|
2293
|
-
rescue Intrinio::ApiError => e
|
2294
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_macd: #{e}"
|
2295
|
-
end
|
2292
|
+
result = security_api.get_security_price_technicals_macd(identifier, opts)
|
2293
|
+
pp result
|
2296
2294
|
```
|
2297
2295
|
|
2298
2296
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2370,26 +2368,22 @@ require 'pp'
|
|
2370
2368
|
# Setup authorization
|
2371
2369
|
Intrinio.configure do |config|
|
2372
2370
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2371
|
+
config.allow_retries = true
|
2373
2372
|
end
|
2374
2373
|
|
2375
2374
|
security_api = Intrinio::SecurityApi.new
|
2376
|
-
|
2377
|
-
|
2378
|
-
|
2379
|
-
|
2380
|
-
|
2381
|
-
|
2382
|
-
|
2383
|
-
|
2384
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2375
|
+
identifier = "AAPL"
|
2376
|
+
|
2377
|
+
opts = {
|
2378
|
+
period: 14,
|
2379
|
+
start_date: "2018-01-01",
|
2380
|
+
end_date: "2019-01-01",
|
2381
|
+
page_size: 100,
|
2382
|
+
next_page: nil
|
2385
2383
|
}
|
2386
2384
|
|
2387
|
-
|
2388
|
-
|
2389
|
-
pp result
|
2390
|
-
rescue Intrinio::ApiError => e
|
2391
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mfi: #{e}"
|
2392
|
-
end
|
2385
|
+
result = security_api.get_security_price_technicals_mfi(identifier, opts)
|
2386
|
+
pp result
|
2393
2387
|
```
|
2394
2388
|
|
2395
2389
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2464,27 +2458,23 @@ require 'pp'
|
|
2464
2458
|
# Setup authorization
|
2465
2459
|
Intrinio.configure do |config|
|
2466
2460
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2461
|
+
config.allow_retries = true
|
2467
2462
|
end
|
2468
2463
|
|
2469
2464
|
security_api = Intrinio::SecurityApi.new
|
2470
|
-
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2465
|
+
identifier = "AAPL"
|
2466
|
+
|
2467
|
+
opts = {
|
2468
|
+
ema_period: 9,
|
2469
|
+
sum_period: 25,
|
2470
|
+
start_date: "2018-01-01",
|
2471
|
+
end_date: "2019-01-01",
|
2472
|
+
page_size: 100,
|
2473
|
+
next_page: nil
|
2480
2474
|
}
|
2481
2475
|
|
2482
|
-
|
2483
|
-
|
2484
|
-
pp result
|
2485
|
-
rescue Intrinio::ApiError => e
|
2486
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mi: #{e}"
|
2487
|
-
end
|
2476
|
+
result = security_api.get_security_price_technicals_mi(identifier, opts)
|
2477
|
+
pp result
|
2488
2478
|
```
|
2489
2479
|
|
2490
2480
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2560,25 +2550,21 @@ require 'pp'
|
|
2560
2550
|
# Setup authorization
|
2561
2551
|
Intrinio.configure do |config|
|
2562
2552
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2553
|
+
config.allow_retries = true
|
2563
2554
|
end
|
2564
2555
|
|
2565
2556
|
security_api = Intrinio::SecurityApi.new
|
2557
|
+
identifier = "AAPL"
|
2566
2558
|
|
2567
|
-
|
2568
|
-
|
2569
|
-
|
2570
|
-
|
2571
|
-
|
2572
|
-
page_size: 100, # Integer | The number of results to return
|
2573
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2559
|
+
opts = {
|
2560
|
+
start_date: "2018-01-01",
|
2561
|
+
end_date: "2019-01-01",
|
2562
|
+
page_size: 100,
|
2563
|
+
next_page: nil
|
2574
2564
|
}
|
2575
2565
|
|
2576
|
-
|
2577
|
-
|
2578
|
-
pp result
|
2579
|
-
rescue Intrinio::ApiError => e
|
2580
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_nvi: #{e}"
|
2581
|
-
end
|
2566
|
+
result = security_api.get_security_price_technicals_nvi(identifier, opts)
|
2567
|
+
pp result
|
2582
2568
|
```
|
2583
2569
|
|
2584
2570
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2652,25 +2638,21 @@ require 'pp'
|
|
2652
2638
|
# Setup authorization
|
2653
2639
|
Intrinio.configure do |config|
|
2654
2640
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2641
|
+
config.allow_retries = true
|
2655
2642
|
end
|
2656
2643
|
|
2657
2644
|
security_api = Intrinio::SecurityApi.new
|
2645
|
+
identifier = "AAPL"
|
2658
2646
|
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
page_size: 100, # Integer | The number of results to return
|
2665
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2647
|
+
opts = {
|
2648
|
+
start_date: "2018-01-01",
|
2649
|
+
end_date: "2019-01-01",
|
2650
|
+
page_size: 100,
|
2651
|
+
next_page: nil
|
2666
2652
|
}
|
2667
2653
|
|
2668
|
-
|
2669
|
-
|
2670
|
-
pp result
|
2671
|
-
rescue Intrinio::ApiError => e
|
2672
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_obv: #{e}"
|
2673
|
-
end
|
2654
|
+
result = security_api.get_security_price_technicals_obv(identifier, opts)
|
2655
|
+
pp result
|
2674
2656
|
```
|
2675
2657
|
|
2676
2658
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2744,26 +2726,22 @@ require 'pp'
|
|
2744
2726
|
# Setup authorization
|
2745
2727
|
Intrinio.configure do |config|
|
2746
2728
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2729
|
+
config.allow_retries = true
|
2747
2730
|
end
|
2748
2731
|
|
2749
2732
|
security_api = Intrinio::SecurityApi.new
|
2750
|
-
|
2751
|
-
|
2752
|
-
|
2753
|
-
|
2754
|
-
|
2755
|
-
|
2756
|
-
|
2757
|
-
|
2758
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2733
|
+
identifier = "AAPL"
|
2734
|
+
|
2735
|
+
opts = {
|
2736
|
+
period: 10,
|
2737
|
+
start_date: "2018-01-01",
|
2738
|
+
end_date: "2019-01-01",
|
2739
|
+
page_size: 100,
|
2740
|
+
next_page: nil
|
2759
2741
|
}
|
2760
2742
|
|
2761
|
-
|
2762
|
-
|
2763
|
-
pp result
|
2764
|
-
rescue Intrinio::ApiError => e
|
2765
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_obv_mean: #{e}"
|
2766
|
-
end
|
2743
|
+
result = security_api.get_security_price_technicals_obv_mean(identifier, opts)
|
2744
|
+
pp result
|
2767
2745
|
```
|
2768
2746
|
|
2769
2747
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2838,27 +2816,23 @@ require 'pp'
|
|
2838
2816
|
# Setup authorization
|
2839
2817
|
Intrinio.configure do |config|
|
2840
2818
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2819
|
+
config.allow_retries = true
|
2841
2820
|
end
|
2842
2821
|
|
2843
2822
|
security_api = Intrinio::SecurityApi.new
|
2844
|
-
|
2845
|
-
|
2846
|
-
|
2847
|
-
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2823
|
+
identifier = "AAPL"
|
2824
|
+
|
2825
|
+
opts = {
|
2826
|
+
period: 14,
|
2827
|
+
price_key: "close",
|
2828
|
+
start_date: "2018-01-01",
|
2829
|
+
end_date: "2019-01-01",
|
2830
|
+
page_size: 100,
|
2831
|
+
next_page: nil
|
2854
2832
|
}
|
2855
2833
|
|
2856
|
-
|
2857
|
-
|
2858
|
-
pp result
|
2859
|
-
rescue Intrinio::ApiError => e
|
2860
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_rsi: #{e}"
|
2861
|
-
end
|
2834
|
+
result = security_api.get_security_price_technicals_rsi(identifier, opts)
|
2835
|
+
pp result
|
2862
2836
|
```
|
2863
2837
|
|
2864
2838
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2934,27 +2908,23 @@ require 'pp'
|
|
2934
2908
|
# Setup authorization
|
2935
2909
|
Intrinio.configure do |config|
|
2936
2910
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2911
|
+
config.allow_retries = true
|
2937
2912
|
end
|
2938
2913
|
|
2939
2914
|
security_api = Intrinio::SecurityApi.new
|
2940
|
-
|
2941
|
-
|
2942
|
-
|
2943
|
-
|
2944
|
-
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
|
2949
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
2915
|
+
identifier = "AAPL"
|
2916
|
+
|
2917
|
+
opts = {
|
2918
|
+
period: 20,
|
2919
|
+
price_key: "close",
|
2920
|
+
start_date: "2018-01-01",
|
2921
|
+
end_date: "2019-01-01",
|
2922
|
+
page_size: 100,
|
2923
|
+
next_page: nil
|
2950
2924
|
}
|
2951
2925
|
|
2952
|
-
|
2953
|
-
|
2954
|
-
pp result
|
2955
|
-
rescue Intrinio::ApiError => e
|
2956
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sma: #{e}"
|
2957
|
-
end
|
2926
|
+
result = security_api.get_security_price_technicals_sma(identifier, opts)
|
2927
|
+
pp result
|
2958
2928
|
```
|
2959
2929
|
|
2960
2930
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3030,27 +3000,23 @@ require 'pp'
|
|
3030
3000
|
# Setup authorization
|
3031
3001
|
Intrinio.configure do |config|
|
3032
3002
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3003
|
+
config.allow_retries = true
|
3033
3004
|
end
|
3034
3005
|
|
3035
3006
|
security_api = Intrinio::SecurityApi.new
|
3036
|
-
|
3037
|
-
|
3038
|
-
|
3039
|
-
|
3040
|
-
|
3041
|
-
|
3042
|
-
|
3043
|
-
|
3044
|
-
|
3045
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3007
|
+
identifier = "AAPL"
|
3008
|
+
|
3009
|
+
opts = {
|
3010
|
+
period: 14,
|
3011
|
+
signal_period: 3,
|
3012
|
+
start_date: "2018-01-01",
|
3013
|
+
end_date: "2019-01-01",
|
3014
|
+
page_size: 100,
|
3015
|
+
next_page: nil
|
3046
3016
|
}
|
3047
3017
|
|
3048
|
-
|
3049
|
-
|
3050
|
-
pp result
|
3051
|
-
rescue Intrinio::ApiError => e
|
3052
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sr: #{e}"
|
3053
|
-
end
|
3018
|
+
result = security_api.get_security_price_technicals_sr(identifier, opts)
|
3019
|
+
pp result
|
3054
3020
|
```
|
3055
3021
|
|
3056
3022
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3126,26 +3092,22 @@ require 'pp'
|
|
3126
3092
|
# Setup authorization
|
3127
3093
|
Intrinio.configure do |config|
|
3128
3094
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3095
|
+
config.allow_retries = true
|
3129
3096
|
end
|
3130
3097
|
|
3131
3098
|
security_api = Intrinio::SecurityApi.new
|
3132
|
-
|
3133
|
-
|
3134
|
-
|
3135
|
-
|
3136
|
-
|
3137
|
-
|
3138
|
-
|
3139
|
-
|
3140
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3099
|
+
identifier = "AAPL"
|
3100
|
+
|
3101
|
+
opts = {
|
3102
|
+
period: 15,
|
3103
|
+
start_date: "2018-01-01",
|
3104
|
+
end_date: "2019-01-01",
|
3105
|
+
page_size: 100,
|
3106
|
+
next_page: nil
|
3141
3107
|
}
|
3142
3108
|
|
3143
|
-
|
3144
|
-
|
3145
|
-
pp result
|
3146
|
-
rescue Intrinio::ApiError => e
|
3147
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_trix: #{e}"
|
3148
|
-
end
|
3109
|
+
result = security_api.get_security_price_technicals_trix(identifier, opts)
|
3110
|
+
pp result
|
3149
3111
|
```
|
3150
3112
|
|
3151
3113
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3220,28 +3182,24 @@ require 'pp'
|
|
3220
3182
|
# Setup authorization
|
3221
3183
|
Intrinio.configure do |config|
|
3222
3184
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3185
|
+
config.allow_retries = true
|
3223
3186
|
end
|
3224
3187
|
|
3225
3188
|
security_api = Intrinio::SecurityApi.new
|
3226
|
-
|
3227
|
-
|
3228
|
-
|
3229
|
-
|
3230
|
-
|
3231
|
-
|
3232
|
-
|
3233
|
-
|
3234
|
-
|
3235
|
-
|
3236
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3189
|
+
identifier = "AAPL"
|
3190
|
+
|
3191
|
+
opts = {
|
3192
|
+
low_period: 13,
|
3193
|
+
high_period: 25,
|
3194
|
+
price_key: "close",
|
3195
|
+
start_date: "2018-01-01",
|
3196
|
+
end_date: "2019-01-01",
|
3197
|
+
page_size: 100,
|
3198
|
+
next_page: nil
|
3237
3199
|
}
|
3238
3200
|
|
3239
|
-
|
3240
|
-
|
3241
|
-
pp result
|
3242
|
-
rescue Intrinio::ApiError => e
|
3243
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_tsi: #{e}"
|
3244
|
-
end
|
3201
|
+
result = security_api.get_security_price_technicals_tsi(identifier, opts)
|
3202
|
+
pp result
|
3245
3203
|
```
|
3246
3204
|
|
3247
3205
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3318,31 +3276,27 @@ require 'pp'
|
|
3318
3276
|
# Setup authorization
|
3319
3277
|
Intrinio.configure do |config|
|
3320
3278
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3279
|
+
config.allow_retries = true
|
3321
3280
|
end
|
3322
3281
|
|
3323
3282
|
security_api = Intrinio::SecurityApi.new
|
3324
|
-
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3283
|
+
identifier = "AAPL"
|
3284
|
+
|
3285
|
+
opts = {
|
3286
|
+
short_period: 7,
|
3287
|
+
medium_period: 14,
|
3288
|
+
long_period: 28,
|
3289
|
+
short_weight: 4.0,
|
3290
|
+
medium_weight: 2.0,
|
3291
|
+
long_weight: 1.0,
|
3292
|
+
start_date: "2018-01-01",
|
3293
|
+
end_date: "2019-01-01",
|
3294
|
+
page_size: 100,
|
3295
|
+
next_page: nil
|
3338
3296
|
}
|
3339
3297
|
|
3340
|
-
|
3341
|
-
|
3342
|
-
pp result
|
3343
|
-
rescue Intrinio::ApiError => e
|
3344
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_uo: #{e}"
|
3345
|
-
end
|
3298
|
+
result = security_api.get_security_price_technicals_uo(identifier, opts)
|
3299
|
+
pp result
|
3346
3300
|
```
|
3347
3301
|
|
3348
3302
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3422,26 +3376,22 @@ require 'pp'
|
|
3422
3376
|
# Setup authorization
|
3423
3377
|
Intrinio.configure do |config|
|
3424
3378
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3379
|
+
config.allow_retries = true
|
3425
3380
|
end
|
3426
3381
|
|
3427
3382
|
security_api = Intrinio::SecurityApi.new
|
3428
|
-
|
3429
|
-
|
3430
|
-
|
3431
|
-
|
3432
|
-
|
3433
|
-
|
3434
|
-
|
3435
|
-
|
3436
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3383
|
+
identifier = "AAPL"
|
3384
|
+
|
3385
|
+
opts = {
|
3386
|
+
period: 14,
|
3387
|
+
start_date: "2018-01-01",
|
3388
|
+
end_date: "2019-01-01",
|
3389
|
+
page_size: 100,
|
3390
|
+
next_page: nil
|
3437
3391
|
}
|
3438
3392
|
|
3439
|
-
|
3440
|
-
|
3441
|
-
pp result
|
3442
|
-
rescue Intrinio::ApiError => e
|
3443
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vi: #{e}"
|
3444
|
-
end
|
3393
|
+
result = security_api.get_security_price_technicals_vi(identifier, opts)
|
3394
|
+
pp result
|
3445
3395
|
```
|
3446
3396
|
|
3447
3397
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3516,25 +3466,21 @@ require 'pp'
|
|
3516
3466
|
# Setup authorization
|
3517
3467
|
Intrinio.configure do |config|
|
3518
3468
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3469
|
+
config.allow_retries = true
|
3519
3470
|
end
|
3520
3471
|
|
3521
3472
|
security_api = Intrinio::SecurityApi.new
|
3473
|
+
identifier = "AAPL"
|
3522
3474
|
|
3523
|
-
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
page_size: 100, # Integer | The number of results to return
|
3529
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3475
|
+
opts = {
|
3476
|
+
start_date: "2018-01-01",
|
3477
|
+
end_date: "2019-01-01",
|
3478
|
+
page_size: 100,
|
3479
|
+
next_page: nil
|
3530
3480
|
}
|
3531
3481
|
|
3532
|
-
|
3533
|
-
|
3534
|
-
pp result
|
3535
|
-
rescue Intrinio::ApiError => e
|
3536
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vpt: #{e}"
|
3537
|
-
end
|
3482
|
+
result = security_api.get_security_price_technicals_vpt(identifier, opts)
|
3483
|
+
pp result
|
3538
3484
|
```
|
3539
3485
|
|
3540
3486
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3608,25 +3554,21 @@ require 'pp'
|
|
3608
3554
|
# Setup authorization
|
3609
3555
|
Intrinio.configure do |config|
|
3610
3556
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3557
|
+
config.allow_retries = true
|
3611
3558
|
end
|
3612
3559
|
|
3613
3560
|
security_api = Intrinio::SecurityApi.new
|
3561
|
+
identifier = "AAPL"
|
3614
3562
|
|
3615
|
-
|
3616
|
-
|
3617
|
-
|
3618
|
-
|
3619
|
-
|
3620
|
-
page_size: 100, # Integer | The number of results to return
|
3621
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3563
|
+
opts = {
|
3564
|
+
start_date: "2018-01-01",
|
3565
|
+
end_date: "2019-01-01",
|
3566
|
+
page_size: 100,
|
3567
|
+
next_page: nil
|
3622
3568
|
}
|
3623
3569
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
pp result
|
3627
|
-
rescue Intrinio::ApiError => e
|
3628
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vwap: #{e}"
|
3629
|
-
end
|
3570
|
+
result = security_api.get_security_price_technicals_vwap(identifier, opts)
|
3571
|
+
pp result
|
3630
3572
|
```
|
3631
3573
|
|
3632
3574
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3700,26 +3642,22 @@ require 'pp'
|
|
3700
3642
|
# Setup authorization
|
3701
3643
|
Intrinio.configure do |config|
|
3702
3644
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3645
|
+
config.allow_retries = true
|
3703
3646
|
end
|
3704
3647
|
|
3705
3648
|
security_api = Intrinio::SecurityApi.new
|
3706
|
-
|
3707
|
-
|
3708
|
-
|
3709
|
-
|
3710
|
-
|
3711
|
-
|
3712
|
-
|
3713
|
-
|
3714
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3649
|
+
identifier = "AAPL"
|
3650
|
+
|
3651
|
+
opts = {
|
3652
|
+
period: 14,
|
3653
|
+
start_date: "2018-01-01",
|
3654
|
+
end_date: "2019-01-01",
|
3655
|
+
page_size: 100,
|
3656
|
+
next_page: nil
|
3715
3657
|
}
|
3716
3658
|
|
3717
|
-
|
3718
|
-
|
3719
|
-
pp result
|
3720
|
-
rescue Intrinio::ApiError => e
|
3721
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_wr: #{e}"
|
3722
|
-
end
|
3659
|
+
result = security_api.get_security_price_technicals_wr(identifier, opts)
|
3660
|
+
pp result
|
3723
3661
|
```
|
3724
3662
|
|
3725
3663
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3794,22 +3732,18 @@ require 'pp'
|
|
3794
3732
|
# Setup authorization
|
3795
3733
|
Intrinio.configure do |config|
|
3796
3734
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3735
|
+
config.allow_retries = true
|
3797
3736
|
end
|
3798
3737
|
|
3799
3738
|
security_api = Intrinio::SecurityApi.new
|
3739
|
+
identifier = "AAPL"
|
3800
3740
|
|
3801
|
-
|
3802
|
-
|
3803
|
-
opts = {
|
3804
|
-
source: nil # String | Return the realtime price from the specified data source. If no source is specified, the best source available is used.
|
3741
|
+
opts = {
|
3742
|
+
source: "bats"
|
3805
3743
|
}
|
3806
3744
|
|
3807
|
-
|
3808
|
-
|
3809
|
-
pp result
|
3810
|
-
rescue Intrinio::ApiError => e
|
3811
|
-
puts "Exception when calling SecurityApi->get_security_realtime_price: #{e}"
|
3812
|
-
end
|
3745
|
+
result = security_api.get_security_realtime_price(identifier, opts)
|
3746
|
+
pp result
|
3813
3747
|
```
|
3814
3748
|
|
3815
3749
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3880,25 +3814,21 @@ require 'pp'
|
|
3880
3814
|
# Setup authorization
|
3881
3815
|
Intrinio.configure do |config|
|
3882
3816
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3817
|
+
config.allow_retries = true
|
3883
3818
|
end
|
3884
3819
|
|
3885
3820
|
security_api = Intrinio::SecurityApi.new
|
3821
|
+
identifier = "AAPL"
|
3886
3822
|
|
3887
|
-
|
3888
|
-
|
3889
|
-
|
3890
|
-
|
3891
|
-
|
3892
|
-
page_size: 100, # Integer | The number of results to return
|
3893
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3823
|
+
opts = {
|
3824
|
+
start_date: Date.parse("2018-01-01"),
|
3825
|
+
end_date: Date.parse("2019-01-01"),
|
3826
|
+
page_size: 100,
|
3827
|
+
next_page: nil
|
3894
3828
|
}
|
3895
3829
|
|
3896
|
-
|
3897
|
-
|
3898
|
-
pp result
|
3899
|
-
rescue Intrinio::ApiError => e
|
3900
|
-
puts "Exception when calling SecurityApi->get_security_stock_price_adjustments: #{e}"
|
3901
|
-
end
|
3830
|
+
result = security_api.get_security_stock_price_adjustments(identifier, opts)
|
3831
|
+
pp result
|
3902
3832
|
```
|
3903
3833
|
|
3904
3834
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3972,26 +3902,22 @@ require 'pp'
|
|
3972
3902
|
# Setup authorization
|
3973
3903
|
Intrinio.configure do |config|
|
3974
3904
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3905
|
+
config.allow_retries = true
|
3975
3906
|
end
|
3976
3907
|
|
3977
3908
|
security_api = Intrinio::SecurityApi.new
|
3978
|
-
|
3979
|
-
|
3980
|
-
|
3981
|
-
|
3982
|
-
|
3983
|
-
|
3984
|
-
|
3985
|
-
|
3986
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
3909
|
+
identifier = "AAPL"
|
3910
|
+
|
3911
|
+
opts = {
|
3912
|
+
start_date: Date.parse("2018-01-01"),
|
3913
|
+
end_date: Date.parse("2019-01-01"),
|
3914
|
+
frequency: "daily",
|
3915
|
+
page_size: 100,
|
3916
|
+
next_page: nil
|
3987
3917
|
}
|
3988
3918
|
|
3989
|
-
|
3990
|
-
|
3991
|
-
pp result
|
3992
|
-
rescue Intrinio::ApiError => e
|
3993
|
-
puts "Exception when calling SecurityApi->get_security_stock_prices: #{e}"
|
3994
|
-
end
|
3919
|
+
result = security_api.get_security_stock_prices(identifier, opts)
|
3920
|
+
pp result
|
3995
3921
|
```
|
3996
3922
|
|
3997
3923
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4066,38 +3992,34 @@ require 'pp'
|
|
4066
3992
|
# Setup authorization
|
4067
3993
|
Intrinio.configure do |config|
|
4068
3994
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3995
|
+
config.allow_retries = true
|
4069
3996
|
end
|
4070
3997
|
|
4071
3998
|
security_api = Intrinio::SecurityApi.new
|
4072
|
-
|
4073
|
-
|
4074
|
-
|
4075
|
-
|
4076
|
-
|
4077
|
-
|
4078
|
-
|
4079
|
-
|
4080
|
-
|
4081
|
-
|
4082
|
-
|
4083
|
-
|
4084
|
-
|
4085
|
-
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
4089
|
-
|
4090
|
-
|
4091
|
-
|
4092
|
-
page_size: 100 # Integer | The number of results to return
|
3999
|
+
identifier = "AAPL"
|
4000
|
+
|
4001
|
+
opts = {
|
4002
|
+
start_date: nil,
|
4003
|
+
end_date: nil,
|
4004
|
+
mean_greater: nil,
|
4005
|
+
mean_less: nil,
|
4006
|
+
strong_buys_greater: nil,
|
4007
|
+
strong_buys_less: nil,
|
4008
|
+
buys_greater: nil,
|
4009
|
+
buys_less: nil,
|
4010
|
+
holds_greater: nil,
|
4011
|
+
holds_less: nil,
|
4012
|
+
sells_greater: nil,
|
4013
|
+
sells_less: nil,
|
4014
|
+
strong_sells_greater: nil,
|
4015
|
+
strong_sells_less: nil,
|
4016
|
+
total_greater: nil,
|
4017
|
+
total_less: nil,
|
4018
|
+
page_size: 100
|
4093
4019
|
}
|
4094
4020
|
|
4095
|
-
|
4096
|
-
|
4097
|
-
pp result
|
4098
|
-
rescue Intrinio::ApiError => e
|
4099
|
-
puts "Exception when calling SecurityApi->get_security_zacks_analyst_ratings: #{e}"
|
4100
|
-
end
|
4021
|
+
result = security_api.get_security_zacks_analyst_ratings(identifier, opts)
|
4022
|
+
pp result
|
4101
4023
|
```
|
4102
4024
|
|
4103
4025
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4184,22 +4106,18 @@ require 'pp'
|
|
4184
4106
|
# Setup authorization
|
4185
4107
|
Intrinio.configure do |config|
|
4186
4108
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4109
|
+
config.allow_retries = true
|
4187
4110
|
end
|
4188
4111
|
|
4189
4112
|
security_api = Intrinio::SecurityApi.new
|
4113
|
+
identifier = "AAPL"
|
4190
4114
|
|
4191
|
-
|
4192
|
-
|
4193
|
-
opts = {
|
4194
|
-
date: nil # String | Lookup a historical snapshot on the given date
|
4115
|
+
opts = {
|
4116
|
+
date: nil
|
4195
4117
|
}
|
4196
4118
|
|
4197
|
-
|
4198
|
-
|
4199
|
-
pp result
|
4200
|
-
rescue Intrinio::ApiError => e
|
4201
|
-
puts "Exception when calling SecurityApi->get_security_zacks_analyst_ratings_snapshot: #{e}"
|
4202
|
-
end
|
4119
|
+
result = security_api.get_security_zacks_analyst_ratings_snapshot(identifier, opts)
|
4120
|
+
pp result
|
4203
4121
|
```
|
4204
4122
|
|
4205
4123
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4270,23 +4188,19 @@ require 'pp'
|
|
4270
4188
|
# Setup authorization
|
4271
4189
|
Intrinio.configure do |config|
|
4272
4190
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4191
|
+
config.allow_retries = true
|
4273
4192
|
end
|
4274
4193
|
|
4275
4194
|
security_api = Intrinio::SecurityApi.new
|
4195
|
+
identifier = "AAPL"
|
4276
4196
|
|
4277
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
page_size: 100, # Integer | The number of results to return
|
4281
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
4197
|
+
opts = {
|
4198
|
+
page_size: 100,
|
4199
|
+
next_page: nil
|
4282
4200
|
}
|
4283
4201
|
|
4284
|
-
|
4285
|
-
|
4286
|
-
pp result
|
4287
|
-
rescue Intrinio::ApiError => e
|
4288
|
-
puts "Exception when calling SecurityApi->get_security_zacks_eps_surprises: #{e}"
|
4289
|
-
end
|
4202
|
+
result = security_api.get_security_zacks_eps_surprises(identifier, opts)
|
4203
|
+
pp result
|
4290
4204
|
```
|
4291
4205
|
|
4292
4206
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4358,23 +4272,19 @@ require 'pp'
|
|
4358
4272
|
# Setup authorization
|
4359
4273
|
Intrinio.configure do |config|
|
4360
4274
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4275
|
+
config.allow_retries = true
|
4361
4276
|
end
|
4362
4277
|
|
4363
4278
|
security_api = Intrinio::SecurityApi.new
|
4279
|
+
identifier = "AAPL"
|
4364
4280
|
|
4365
|
-
|
4366
|
-
|
4367
|
-
|
4368
|
-
page_size: 100, # Integer | The number of results to return
|
4369
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
4281
|
+
opts = {
|
4282
|
+
page_size: 100,
|
4283
|
+
next_page: nil
|
4370
4284
|
}
|
4371
4285
|
|
4372
|
-
|
4373
|
-
|
4374
|
-
pp result
|
4375
|
-
rescue Intrinio::ApiError => e
|
4376
|
-
puts "Exception when calling SecurityApi->get_security_zacks_sales_surprises: #{e}"
|
4377
|
-
end
|
4286
|
+
result = security_api.get_security_zacks_sales_surprises(identifier, opts)
|
4287
|
+
pp result
|
4378
4288
|
```
|
4379
4289
|
|
4380
4290
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4430,7 +4340,7 @@ Name | Type | Description | Notes
|
|
4430
4340
|
#### Screen Securities
|
4431
4341
|
|
4432
4342
|
|
4433
|
-
Screen Securities using complex logic
|
4343
|
+
Screen Securities using complex logic. Use POST only. See <a href=\"https://docs.intrinio.com/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions.
|
4434
4344
|
|
4435
4345
|
[//]: # (END_OVERVIEW)
|
4436
4346
|
|
@@ -4446,24 +4356,34 @@ require 'pp'
|
|
4446
4356
|
# Setup authorization
|
4447
4357
|
Intrinio.configure do |config|
|
4448
4358
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4359
|
+
config.allow_retries = true
|
4449
4360
|
end
|
4450
4361
|
|
4451
4362
|
security_api = Intrinio::SecurityApi.new
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4363
|
+
clauses = [
|
4364
|
+
{
|
4365
|
+
"field": "marketcap",
|
4366
|
+
"operator": "gt",
|
4367
|
+
"value": "10000000"
|
4368
|
+
},
|
4369
|
+
{
|
4370
|
+
"field": "beta",
|
4371
|
+
"operator": "lt",
|
4372
|
+
"value": "5"
|
4373
|
+
}
|
4374
|
+
]
|
4375
|
+
|
4376
|
+
|
4377
|
+
opts = {
|
4378
|
+
logic: Intrinio::SecurityScreenGroup.new(operator: "AND", clauses: clauses),
|
4379
|
+
order_column: "marketcap",
|
4380
|
+
order_direction: "asc",
|
4381
|
+
primary_only: false,
|
4382
|
+
page_size: 100
|
4459
4383
|
}
|
4460
4384
|
|
4461
|
-
|
4462
|
-
|
4463
|
-
pp result
|
4464
|
-
rescue Intrinio::ApiError => e
|
4465
|
-
puts "Exception when calling SecurityApi->screen_securities: #{e}"
|
4466
|
-
end
|
4385
|
+
result = security_api.screen_securities(opts)
|
4386
|
+
pp result
|
4467
4387
|
```
|
4468
4388
|
|
4469
4389
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4477,7 +4397,7 @@ end
|
|
4477
4397
|
|
4478
4398
|
Name | Type | Description | Notes
|
4479
4399
|
------------- | ------------- | ------------- | -------------
|
4480
|
-
**logic** | [**SecurityScreenGroup**](SecurityScreenGroup.md)| The logic to screen with, consisting of operators, clauses, and nested groups
|
4400
|
+
**logic** | [**SecurityScreenGroup**](SecurityScreenGroup.md)| The logic to screen with, consisting of operators, clauses, and nested groups. </br> See <a href=\"https://docs.intrinio.com/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions. | [optional]
|
4481
4401
|
**order_column** | String| Results returned sorted by this column | [optional]
|
4482
4402
|
**order_direction** | String| Sort order to use with the order_column | [optional] [default to asc]
|
4483
4403
|
**primary_only** | BOOLEAN| Return only primary securities | [optional] [default to false]
|
@@ -4537,22 +4457,18 @@ require 'pp'
|
|
4537
4457
|
# Setup authorization
|
4538
4458
|
Intrinio.configure do |config|
|
4539
4459
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4460
|
+
config.allow_retries = true
|
4540
4461
|
end
|
4541
4462
|
|
4542
4463
|
security_api = Intrinio::SecurityApi.new
|
4464
|
+
query = "Apple"
|
4543
4465
|
|
4544
|
-
|
4545
|
-
|
4546
|
-
opts = {
|
4547
|
-
page_size: 100 # Integer | The number of results to return
|
4466
|
+
opts = {
|
4467
|
+
page_size: 100
|
4548
4468
|
}
|
4549
4469
|
|
4550
|
-
|
4551
|
-
|
4552
|
-
pp result
|
4553
|
-
rescue Intrinio::ApiError => e
|
4554
|
-
puts "Exception when calling SecurityApi->search_securities: #{e}"
|
4555
|
-
end
|
4470
|
+
result = security_api.search_securities(query, opts)
|
4471
|
+
pp result
|
4556
4472
|
```
|
4557
4473
|
|
4558
4474
|
[//]: # (END_CODE_EXAMPLE)
|