intrinio-sdk 5.5.0 → 5.7.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 +40 -12
- data/docs/ApiResponseETFHoldings.md +25 -0
- data/docs/ApiResponseETFs.md +21 -0
- data/docs/ApiResponseOptionsChainRealtime.md +23 -0
- data/docs/ApiResponseOptionsPriceRealtime.md +31 -0
- data/docs/ApiResponseOptionsStatsRealtime.md +31 -0
- data/docs/BulkDownloadsApi.md +3 -7
- data/docs/CompanyApi.md +115 -172
- data/docs/DataPointApi.md +10 -22
- data/docs/DataTagApi.md +21 -33
- data/docs/ETF.md +138 -0
- data/docs/ETFAnalytics.md +31 -0
- data/docs/ETFHolding.md +37 -0
- data/docs/ETFStats.md +53 -0
- data/docs/ETFSummary.md +27 -0
- data/docs/ETFsApi.md +490 -0
- data/docs/FilingApi.md +72 -116
- data/docs/ForexApi.md +22 -35
- data/docs/FundamentalsApi.md +19 -42
- data/docs/HistoricalDataApi.md +14 -19
- 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 +1 -0
- data/docs/SecurityApi.md +538 -721
- data/docs/SecuritySummary.md +1 -0
- data/docs/StockExchangeApi.md +43 -67
- data/docs/TechnicalApi.md +359 -483
- data/docs/ZacksApi.md +132 -165
- data/intrinio-sdk.gemspec +3 -2
- data/lib/intrinio-sdk.rb +17 -1
- data/lib/intrinio-sdk/api/bulk_downloads_api.rb +1 -1
- data/lib/intrinio-sdk/api/company_api.rb +4 -1
- data/lib/intrinio-sdk/api/data_point_api.rb +1 -1
- data/lib/intrinio-sdk/api/data_tag_api.rb +1 -1
- data/lib/intrinio-sdk/api/et_fs_api.rb +359 -0
- 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 +1 -1
- 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 +18 -15
- 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 +198 -0
- data/lib/intrinio-sdk/models/api_response_etf_holdings.rb +207 -0
- 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_intraday_prices.rb +1 -1
- 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 +1369 -0
- data/lib/intrinio-sdk/models/etf_analytics.rb +268 -0
- data/lib/intrinio-sdk/models/etf_holding.rb +359 -0
- data/lib/intrinio-sdk/models/etf_stats.rb +487 -0
- data/lib/intrinio-sdk/models/etf_summary.rb +259 -0
- 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 +12 -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 +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
- data/lib/intrinio-sdk/models/technical_indicator.rb +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 +2 -1
- data/spec/api/data_point_api_spec.rb +1 -1
- data/spec/api/data_tag_api_spec.rb +1 -1
- data/spec/api/et_fs_api_spec.rb +111 -0
- 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 +1 -1
- 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 +8 -7
- 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 +48 -0
- data/spec/models/api_response_etf_holdings_spec.rb +54 -0
- 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_intraday_prices_spec.rb +1 -1
- 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 +90 -0
- data/spec/models/etf_holding_spec.rb +144 -0
- data/spec/models/etf_spec.rb +750 -0
- data/spec/models/etf_stats_spec.rb +222 -0
- data/spec/models/etf_summary_spec.rb +84 -0
- 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 +7 -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_spec.rb +1 -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 +90 -7
data/docs/RealtimeStockPrice.md
CHANGED
@@ -14,6 +14,7 @@ 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.
|
data/docs/SecurityApi.md
CHANGED
@@ -10,8 +10,8 @@ Method | HTTP request | Description
|
|
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
12
|
[**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 |
|
13
|
+
[**get_security_latest_dividend_record**](SecurityApi.md#get_security_latest_dividend_record) | **GET** /securities/{identifier}/dividends/latest | Latest Dividend Record for Security
|
14
|
+
[**get_security_latest_earnings_record**](SecurityApi.md#get_security_latest_earnings_record) | **GET** /securities/{identifier}/earnings/latest | Latest Earnings Record for Security
|
15
15
|
[**get_security_price_technicals_adi**](SecurityApi.md#get_security_price_technicals_adi) | **GET** /securities/{identifier}/prices/technicals/adi | Accumulation/Distribution Index
|
16
16
|
[**get_security_price_technicals_adtv**](SecurityApi.md#get_security_price_technicals_adtv) | **GET** /securities/{identifier}/prices/technicals/adtv | Average Daily Trading Volume
|
17
17
|
[**get_security_price_technicals_adx**](SecurityApi.md#get_security_price_technicals_adx) | **GET** /securities/{identifier}/prices/technicals/adx | Average Directional Index
|
@@ -100,37 +100,35 @@ require 'pp'
|
|
100
100
|
# Setup authorization
|
101
101
|
Intrinio.configure do |config|
|
102
102
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
103
|
+
config.allow_retries = true
|
103
104
|
end
|
104
105
|
|
105
106
|
security_api = Intrinio::SecurityApi.new
|
106
107
|
|
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
|
-
|
108
|
+
opts = {
|
109
|
+
active: true,
|
110
|
+
delisted: false,
|
111
|
+
code: nil,
|
112
|
+
currency: nil,
|
113
|
+
ticker: nil,
|
114
|
+
name: nil,
|
115
|
+
composite_mic: nil,
|
116
|
+
exchange_mic: nil,
|
117
|
+
stock_prices_after: nil,
|
118
|
+
stock_prices_before: nil,
|
119
|
+
cik: nil,
|
120
|
+
figi: nil,
|
121
|
+
composite_figi: nil,
|
122
|
+
share_class_figi: nil,
|
123
|
+
figi_unique_id: nil,
|
124
|
+
include_non_figi: false,
|
125
|
+
page_size: 100,
|
126
|
+
primary_listing: nil,
|
127
|
+
next_page: nil
|
126
128
|
}
|
127
129
|
|
128
|
-
|
129
|
-
|
130
|
-
pp result
|
131
|
-
rescue Intrinio::ApiError => e
|
132
|
-
puts "Exception when calling SecurityApi->get_all_securities: #{e}"
|
133
|
-
end
|
130
|
+
result = security_api.get_all_securities(opts)
|
131
|
+
pp result
|
134
132
|
```
|
135
133
|
|
136
134
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -161,6 +159,7 @@ Name | Type | Description | Notes
|
|
161
159
|
**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
160
|
**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
161
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
162
|
+
**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 | [optional]
|
164
163
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
165
164
|
|
166
165
|
[//]: # (END_PARAMETERS)
|
@@ -217,19 +216,14 @@ require 'pp'
|
|
217
216
|
# Setup authorization
|
218
217
|
Intrinio.configure do |config|
|
219
218
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
219
|
+
config.allow_retries = true
|
220
220
|
end
|
221
221
|
|
222
222
|
security_api = Intrinio::SecurityApi.new
|
223
|
+
identifier = "AAPL"
|
223
224
|
|
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
|
225
|
+
result = security_api.get_security_by_id(identifier)
|
226
|
+
pp result
|
233
227
|
```
|
234
228
|
|
235
229
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -299,21 +293,15 @@ require 'pp'
|
|
299
293
|
# Setup authorization
|
300
294
|
Intrinio.configure do |config|
|
301
295
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
296
|
+
config.allow_retries = true
|
302
297
|
end
|
303
298
|
|
304
299
|
security_api = Intrinio::SecurityApi.new
|
300
|
+
identifier = "AAPL"
|
301
|
+
tag = "close_price"
|
305
302
|
|
306
|
-
|
307
|
-
|
308
|
-
tag = "close_price" # String | An Intrinio data tag ID or code (<a href='https://data.intrinio.com/data-tags'>reference</a>)
|
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
|
303
|
+
result = security_api.get_security_data_point_number(identifier, tag)
|
304
|
+
pp result
|
317
305
|
```
|
318
306
|
|
319
307
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -384,21 +372,15 @@ require 'pp'
|
|
384
372
|
# Setup authorization
|
385
373
|
Intrinio.configure do |config|
|
386
374
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
375
|
+
config.allow_retries = true
|
387
376
|
end
|
388
377
|
|
389
378
|
security_api = Intrinio::SecurityApi.new
|
379
|
+
identifier = "AAPL"
|
380
|
+
tag = "figi"
|
390
381
|
|
391
|
-
|
392
|
-
|
393
|
-
tag = "figi" # 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
|
382
|
+
result = security_api.get_security_data_point_text(identifier, tag)
|
383
|
+
pp result
|
402
384
|
```
|
403
385
|
|
404
386
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -469,30 +451,25 @@ require 'pp'
|
|
469
451
|
# Setup authorization
|
470
452
|
Intrinio.configure do |config|
|
471
453
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
454
|
+
config.allow_retries = true
|
472
455
|
end
|
473
456
|
|
474
457
|
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
|
458
|
+
identifier = "AAPL"
|
459
|
+
tag = "adj_close_price"
|
460
|
+
|
461
|
+
opts = {
|
462
|
+
frequency: "daily",
|
463
|
+
type: nil,
|
464
|
+
start_date: Date.parse("2018-01-01"),
|
465
|
+
end_date: nil,
|
466
|
+
sort_order: "desc",
|
467
|
+
page_size: 100,
|
468
|
+
next_page: nil
|
488
469
|
}
|
489
470
|
|
490
|
-
|
491
|
-
|
492
|
-
pp result
|
493
|
-
rescue Intrinio::ApiError => e
|
494
|
-
puts "Exception when calling SecurityApi->get_security_historical_data: #{e}"
|
495
|
-
end
|
471
|
+
result = security_api.get_security_historical_data(identifier, tag, opts)
|
472
|
+
pp result
|
496
473
|
```
|
497
474
|
|
498
475
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -570,28 +547,24 @@ require 'pp'
|
|
570
547
|
# Setup authorization
|
571
548
|
Intrinio.configure do |config|
|
572
549
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
550
|
+
config.allow_retries = true
|
573
551
|
end
|
574
552
|
|
575
553
|
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
|
554
|
+
identifier = "AAPL"
|
555
|
+
|
556
|
+
opts = {
|
557
|
+
source: nil,
|
558
|
+
start_date: Date.parse("2018-01-01"),
|
559
|
+
start_time: nil,
|
560
|
+
end_date: Date.parse("2019-01-01"),
|
561
|
+
end_time: nil,
|
562
|
+
page_size: 100,
|
563
|
+
next_page: nil
|
587
564
|
}
|
588
565
|
|
589
|
-
|
590
|
-
|
591
|
-
pp result
|
592
|
-
rescue Intrinio::ApiError => e
|
593
|
-
puts "Exception when calling SecurityApi->get_security_intraday_prices: #{e}"
|
594
|
-
end
|
566
|
+
result = security_api.get_security_intraday_prices(identifier, opts)
|
567
|
+
pp result
|
595
568
|
```
|
596
569
|
|
597
570
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -608,9 +581,9 @@ Name | Type | Description | Notes
|
|
608
581
|
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
609
582
|
**source** | String| Return intraday prices from the specified data source | [optional]
|
610
583
|
**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` (
|
584
|
+
**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
585
|
**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` (
|
586
|
+
**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
587
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
615
588
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
616
589
|
|
@@ -649,7 +622,7 @@ Name | Type | Description | Notes
|
|
649
622
|
|
650
623
|
> DividendRecord get_security_latest_dividend_record(identifier)
|
651
624
|
|
652
|
-
####
|
625
|
+
#### Latest Dividend Record for Security
|
653
626
|
|
654
627
|
|
655
628
|
Returns the latest available dividend information for the Security with the given `identifier`
|
@@ -668,19 +641,14 @@ require 'pp'
|
|
668
641
|
# Setup authorization
|
669
642
|
Intrinio.configure do |config|
|
670
643
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
644
|
+
config.allow_retries = true
|
671
645
|
end
|
672
646
|
|
673
647
|
security_api = Intrinio::SecurityApi.new
|
648
|
+
identifier = "AAPL"
|
674
649
|
|
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
|
650
|
+
result = security_api.get_security_latest_dividend_record(identifier)
|
651
|
+
pp result
|
684
652
|
```
|
685
653
|
|
686
654
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -731,7 +699,7 @@ Name | Type | Description | Notes
|
|
731
699
|
|
732
700
|
> EarningsRecord get_security_latest_earnings_record(identifier)
|
733
701
|
|
734
|
-
####
|
702
|
+
#### Latest Earnings Record for Security
|
735
703
|
|
736
704
|
|
737
705
|
Returns latest available earnings information for the Security with the given `identifier`
|
@@ -750,19 +718,14 @@ require 'pp'
|
|
750
718
|
# Setup authorization
|
751
719
|
Intrinio.configure do |config|
|
752
720
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
721
|
+
config.allow_retries = true
|
753
722
|
end
|
754
723
|
|
755
724
|
security_api = Intrinio::SecurityApi.new
|
725
|
+
identifier = "AAPL"
|
756
726
|
|
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
|
727
|
+
result = security_api.get_security_latest_earnings_record(identifier)
|
728
|
+
pp result
|
766
729
|
```
|
767
730
|
|
768
731
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -832,25 +795,21 @@ require 'pp'
|
|
832
795
|
# Setup authorization
|
833
796
|
Intrinio.configure do |config|
|
834
797
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
798
|
+
config.allow_retries = true
|
835
799
|
end
|
836
800
|
|
837
801
|
security_api = Intrinio::SecurityApi.new
|
802
|
+
identifier = "AAPL"
|
838
803
|
|
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
|
804
|
+
opts = {
|
805
|
+
start_date: "2018-01-01",
|
806
|
+
end_date: "2019-01-01",
|
807
|
+
page_size: 100,
|
808
|
+
next_page: nil
|
846
809
|
}
|
847
810
|
|
848
|
-
|
849
|
-
|
850
|
-
pp result
|
851
|
-
rescue Intrinio::ApiError => e
|
852
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adi: #{e}"
|
853
|
-
end
|
811
|
+
result = security_api.get_security_price_technicals_adi(identifier, opts)
|
812
|
+
pp result
|
854
813
|
```
|
855
814
|
|
856
815
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -924,26 +883,22 @@ require 'pp'
|
|
924
883
|
# Setup authorization
|
925
884
|
Intrinio.configure do |config|
|
926
885
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
886
|
+
config.allow_retries = true
|
927
887
|
end
|
928
888
|
|
929
889
|
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
|
890
|
+
identifier = "AAPL"
|
891
|
+
|
892
|
+
opts = {
|
893
|
+
period: 22,
|
894
|
+
start_date: "2018-01-01",
|
895
|
+
end_date: "2019-01-01",
|
896
|
+
page_size: 100,
|
897
|
+
next_page: nil
|
939
898
|
}
|
940
899
|
|
941
|
-
|
942
|
-
|
943
|
-
pp result
|
944
|
-
rescue Intrinio::ApiError => e
|
945
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adtv: #{e}"
|
946
|
-
end
|
900
|
+
result = security_api.get_security_price_technicals_adtv(identifier, opts)
|
901
|
+
pp result
|
947
902
|
```
|
948
903
|
|
949
904
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1018,26 +973,22 @@ require 'pp'
|
|
1018
973
|
# Setup authorization
|
1019
974
|
Intrinio.configure do |config|
|
1020
975
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
976
|
+
config.allow_retries = true
|
1021
977
|
end
|
1022
978
|
|
1023
979
|
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
|
980
|
+
identifier = "AAPL"
|
981
|
+
|
982
|
+
opts = {
|
983
|
+
period: 14,
|
984
|
+
start_date: "2018-01-01",
|
985
|
+
end_date: "2019-01-01",
|
986
|
+
page_size: 100,
|
987
|
+
next_page: nil
|
1033
988
|
}
|
1034
989
|
|
1035
|
-
|
1036
|
-
|
1037
|
-
pp result
|
1038
|
-
rescue Intrinio::ApiError => e
|
1039
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adx: #{e}"
|
1040
|
-
end
|
990
|
+
result = security_api.get_security_price_technicals_adx(identifier, opts)
|
991
|
+
pp result
|
1041
992
|
```
|
1042
993
|
|
1043
994
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1112,27 +1063,23 @@ require 'pp'
|
|
1112
1063
|
# Setup authorization
|
1113
1064
|
Intrinio.configure do |config|
|
1114
1065
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1066
|
+
config.allow_retries = true
|
1115
1067
|
end
|
1116
1068
|
|
1117
1069
|
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
|
1070
|
+
identifier = "AAPL"
|
1071
|
+
|
1072
|
+
opts = {
|
1073
|
+
short_period: 5,
|
1074
|
+
long_period: 34,
|
1075
|
+
start_date: "2018-01-01",
|
1076
|
+
end_date: "2019-01-01",
|
1077
|
+
page_size: 100,
|
1078
|
+
next_page: nil
|
1128
1079
|
}
|
1129
1080
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
pp result
|
1133
|
-
rescue Intrinio::ApiError => e
|
1134
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ao: #{e}"
|
1135
|
-
end
|
1081
|
+
result = security_api.get_security_price_technicals_ao(identifier, opts)
|
1082
|
+
pp result
|
1136
1083
|
```
|
1137
1084
|
|
1138
1085
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1208,26 +1155,22 @@ require 'pp'
|
|
1208
1155
|
# Setup authorization
|
1209
1156
|
Intrinio.configure do |config|
|
1210
1157
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1158
|
+
config.allow_retries = true
|
1211
1159
|
end
|
1212
1160
|
|
1213
1161
|
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
|
1162
|
+
identifier = "AAPL"
|
1163
|
+
|
1164
|
+
opts = {
|
1165
|
+
period: 14,
|
1166
|
+
start_date: "2018-01-01",
|
1167
|
+
end_date: "2019-01-01",
|
1168
|
+
page_size: 100,
|
1169
|
+
next_page: nil
|
1223
1170
|
}
|
1224
1171
|
|
1225
|
-
|
1226
|
-
|
1227
|
-
pp result
|
1228
|
-
rescue Intrinio::ApiError => e
|
1229
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_atr: #{e}"
|
1230
|
-
end
|
1172
|
+
result = security_api.get_security_price_technicals_atr(identifier, opts)
|
1173
|
+
pp result
|
1231
1174
|
```
|
1232
1175
|
|
1233
1176
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1302,28 +1245,24 @@ require 'pp'
|
|
1302
1245
|
# Setup authorization
|
1303
1246
|
Intrinio.configure do |config|
|
1304
1247
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1248
|
+
config.allow_retries = true
|
1305
1249
|
end
|
1306
1250
|
|
1307
1251
|
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
|
1252
|
+
identifier = "AAPL"
|
1253
|
+
|
1254
|
+
opts = {
|
1255
|
+
period: 20,
|
1256
|
+
standard_deviations: 2.0,
|
1257
|
+
price_key: "close",
|
1258
|
+
start_date: "2018-01-01",
|
1259
|
+
end_date: "2019-01-01",
|
1260
|
+
page_size: 100,
|
1261
|
+
next_page: nil
|
1319
1262
|
}
|
1320
1263
|
|
1321
|
-
|
1322
|
-
|
1323
|
-
pp result
|
1324
|
-
rescue Intrinio::ApiError => e
|
1325
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_bb: #{e}"
|
1326
|
-
end
|
1264
|
+
result = security_api.get_security_price_technicals_bb(identifier, opts)
|
1265
|
+
pp result
|
1327
1266
|
```
|
1328
1267
|
|
1329
1268
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1400,27 +1339,23 @@ require 'pp'
|
|
1400
1339
|
# Setup authorization
|
1401
1340
|
Intrinio.configure do |config|
|
1402
1341
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1342
|
+
config.allow_retries = true
|
1403
1343
|
end
|
1404
1344
|
|
1405
1345
|
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
|
1346
|
+
identifier = "AAPL"
|
1347
|
+
|
1348
|
+
opts = {
|
1349
|
+
period: 20,
|
1350
|
+
constant: 0.015,
|
1351
|
+
start_date: "2018-01-01",
|
1352
|
+
end_date: "2019-01-01",
|
1353
|
+
page_size: 100,
|
1354
|
+
next_page: nil
|
1416
1355
|
}
|
1417
1356
|
|
1418
|
-
|
1419
|
-
|
1420
|
-
pp result
|
1421
|
-
rescue Intrinio::ApiError => e
|
1422
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cci: #{e}"
|
1423
|
-
end
|
1357
|
+
result = security_api.get_security_price_technicals_cci(identifier, opts)
|
1358
|
+
pp result
|
1424
1359
|
```
|
1425
1360
|
|
1426
1361
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1496,26 +1431,22 @@ require 'pp'
|
|
1496
1431
|
# Setup authorization
|
1497
1432
|
Intrinio.configure do |config|
|
1498
1433
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1434
|
+
config.allow_retries = true
|
1499
1435
|
end
|
1500
1436
|
|
1501
1437
|
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
|
1438
|
+
identifier = "AAPL"
|
1439
|
+
|
1440
|
+
opts = {
|
1441
|
+
period: 20,
|
1442
|
+
start_date: "2018-01-01",
|
1443
|
+
end_date: "2019-01-01",
|
1444
|
+
page_size: 100,
|
1445
|
+
next_page: nil
|
1511
1446
|
}
|
1512
1447
|
|
1513
|
-
|
1514
|
-
|
1515
|
-
pp result
|
1516
|
-
rescue Intrinio::ApiError => e
|
1517
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cmf: #{e}"
|
1518
|
-
end
|
1448
|
+
result = security_api.get_security_price_technicals_cmf(identifier, opts)
|
1449
|
+
pp result
|
1519
1450
|
```
|
1520
1451
|
|
1521
1452
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1590,27 +1521,23 @@ require 'pp'
|
|
1590
1521
|
# Setup authorization
|
1591
1522
|
Intrinio.configure do |config|
|
1592
1523
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1524
|
+
config.allow_retries = true
|
1593
1525
|
end
|
1594
1526
|
|
1595
1527
|
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
|
1528
|
+
identifier = "AAPL"
|
1529
|
+
|
1530
|
+
opts = {
|
1531
|
+
period: 20,
|
1532
|
+
price_key: "close",
|
1533
|
+
start_date: "2018-01-01",
|
1534
|
+
end_date: "2019-01-01",
|
1535
|
+
page_size: 100,
|
1536
|
+
next_page: nil
|
1606
1537
|
}
|
1607
1538
|
|
1608
|
-
|
1609
|
-
|
1610
|
-
pp result
|
1611
|
-
rescue Intrinio::ApiError => e
|
1612
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dc: #{e}"
|
1613
|
-
end
|
1539
|
+
result = security_api.get_security_price_technicals_dc(identifier, opts)
|
1540
|
+
pp result
|
1614
1541
|
```
|
1615
1542
|
|
1616
1543
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1686,27 +1613,23 @@ require 'pp'
|
|
1686
1613
|
# Setup authorization
|
1687
1614
|
Intrinio.configure do |config|
|
1688
1615
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1616
|
+
config.allow_retries = true
|
1689
1617
|
end
|
1690
1618
|
|
1691
1619
|
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
|
1620
|
+
identifier = "AAPL"
|
1621
|
+
|
1622
|
+
opts = {
|
1623
|
+
period: 20,
|
1624
|
+
price_key: "close",
|
1625
|
+
start_date: "2018-01-01",
|
1626
|
+
end_date: "2019-01-01",
|
1627
|
+
page_size: 100,
|
1628
|
+
next_page: nil
|
1702
1629
|
}
|
1703
1630
|
|
1704
|
-
|
1705
|
-
|
1706
|
-
pp result
|
1707
|
-
rescue Intrinio::ApiError => e
|
1708
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dpo: #{e}"
|
1709
|
-
end
|
1631
|
+
result = security_api.get_security_price_technicals_dpo(identifier, opts)
|
1632
|
+
pp result
|
1710
1633
|
```
|
1711
1634
|
|
1712
1635
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1782,26 +1705,22 @@ require 'pp'
|
|
1782
1705
|
# Setup authorization
|
1783
1706
|
Intrinio.configure do |config|
|
1784
1707
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1708
|
+
config.allow_retries = true
|
1785
1709
|
end
|
1786
1710
|
|
1787
1711
|
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
|
1712
|
+
identifier = "AAPL"
|
1713
|
+
|
1714
|
+
opts = {
|
1715
|
+
period: 20,
|
1716
|
+
start_date: "2018-01-01",
|
1717
|
+
end_date: "2019-01-01",
|
1718
|
+
page_size: 100,
|
1719
|
+
next_page: nil
|
1797
1720
|
}
|
1798
1721
|
|
1799
|
-
|
1800
|
-
|
1801
|
-
pp result
|
1802
|
-
rescue Intrinio::ApiError => e
|
1803
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_eom: #{e}"
|
1804
|
-
end
|
1722
|
+
result = security_api.get_security_price_technicals_eom(identifier, opts)
|
1723
|
+
pp result
|
1805
1724
|
```
|
1806
1725
|
|
1807
1726
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1876,25 +1795,21 @@ require 'pp'
|
|
1876
1795
|
# Setup authorization
|
1877
1796
|
Intrinio.configure do |config|
|
1878
1797
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1798
|
+
config.allow_retries = true
|
1879
1799
|
end
|
1880
1800
|
|
1881
1801
|
security_api = Intrinio::SecurityApi.new
|
1802
|
+
identifier = "AAPL"
|
1882
1803
|
|
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
|
1804
|
+
opts = {
|
1805
|
+
start_date: "2018-01-01",
|
1806
|
+
end_date: "2019-01-01",
|
1807
|
+
page_size: 100,
|
1808
|
+
next_page: nil
|
1890
1809
|
}
|
1891
1810
|
|
1892
|
-
|
1893
|
-
|
1894
|
-
pp result
|
1895
|
-
rescue Intrinio::ApiError => e
|
1896
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_fi: #{e}"
|
1897
|
-
end
|
1811
|
+
result = security_api.get_security_price_technicals_fi(identifier, opts)
|
1812
|
+
pp result
|
1898
1813
|
```
|
1899
1814
|
|
1900
1815
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1968,28 +1883,24 @@ require 'pp'
|
|
1968
1883
|
# Setup authorization
|
1969
1884
|
Intrinio.configure do |config|
|
1970
1885
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1886
|
+
config.allow_retries = true
|
1971
1887
|
end
|
1972
1888
|
|
1973
1889
|
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
|
1890
|
+
identifier = "AAPL"
|
1891
|
+
|
1892
|
+
opts = {
|
1893
|
+
low_period: 9,
|
1894
|
+
medium_period: 26,
|
1895
|
+
high_period: 52,
|
1896
|
+
start_date: "2018-01-01",
|
1897
|
+
end_date: "2019-01-01",
|
1898
|
+
page_size: 100,
|
1899
|
+
next_page: nil
|
1985
1900
|
}
|
1986
1901
|
|
1987
|
-
|
1988
|
-
|
1989
|
-
pp result
|
1990
|
-
rescue Intrinio::ApiError => e
|
1991
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ichimoku: #{e}"
|
1992
|
-
end
|
1902
|
+
result = security_api.get_security_price_technicals_ichimoku(identifier, opts)
|
1903
|
+
pp result
|
1993
1904
|
```
|
1994
1905
|
|
1995
1906
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2066,26 +1977,22 @@ require 'pp'
|
|
2066
1977
|
# Setup authorization
|
2067
1978
|
Intrinio.configure do |config|
|
2068
1979
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1980
|
+
config.allow_retries = true
|
2069
1981
|
end
|
2070
1982
|
|
2071
1983
|
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
|
1984
|
+
identifier = "AAPL"
|
1985
|
+
|
1986
|
+
opts = {
|
1987
|
+
period: 10,
|
1988
|
+
start_date: "2018-01-01",
|
1989
|
+
end_date: "2019-01-01",
|
1990
|
+
page_size: 100,
|
1991
|
+
next_page: nil
|
2081
1992
|
}
|
2082
1993
|
|
2083
|
-
|
2084
|
-
|
2085
|
-
pp result
|
2086
|
-
rescue Intrinio::ApiError => e
|
2087
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kc: #{e}"
|
2088
|
-
end
|
1994
|
+
result = security_api.get_security_price_technicals_kc(identifier, opts)
|
1995
|
+
pp result
|
2089
1996
|
```
|
2090
1997
|
|
2091
1998
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2160,34 +2067,30 @@ require 'pp'
|
|
2160
2067
|
# Setup authorization
|
2161
2068
|
Intrinio.configure do |config|
|
2162
2069
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2070
|
+
config.allow_retries = true
|
2163
2071
|
end
|
2164
2072
|
|
2165
2073
|
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
|
2074
|
+
identifier = "AAPL"
|
2075
|
+
|
2076
|
+
opts = {
|
2077
|
+
roc1: 10,
|
2078
|
+
roc2: 15,
|
2079
|
+
roc3: 20,
|
2080
|
+
roc4: 30,
|
2081
|
+
sma1: 10,
|
2082
|
+
sma2: 10,
|
2083
|
+
sma3: 10,
|
2084
|
+
sma4: 15,
|
2085
|
+
price_key: "close",
|
2086
|
+
start_date: "2018-01-01",
|
2087
|
+
end_date: "2019-01-01",
|
2088
|
+
page_size: 100,
|
2089
|
+
next_page: nil
|
2183
2090
|
}
|
2184
2091
|
|
2185
|
-
|
2186
|
-
|
2187
|
-
pp result
|
2188
|
-
rescue Intrinio::ApiError => e
|
2189
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kst: #{e}"
|
2190
|
-
end
|
2092
|
+
result = security_api.get_security_price_technicals_kst(identifier, opts)
|
2093
|
+
pp result
|
2191
2094
|
```
|
2192
2095
|
|
2193
2096
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2270,29 +2173,25 @@ require 'pp'
|
|
2270
2173
|
# Setup authorization
|
2271
2174
|
Intrinio.configure do |config|
|
2272
2175
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2176
|
+
config.allow_retries = true
|
2273
2177
|
end
|
2274
2178
|
|
2275
2179
|
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
|
2180
|
+
identifier = "AAPL"
|
2181
|
+
|
2182
|
+
opts = {
|
2183
|
+
fast_period: 12,
|
2184
|
+
slow_period: 26,
|
2185
|
+
signal_period: 9,
|
2186
|
+
price_key: "close",
|
2187
|
+
start_date: "2018-01-01",
|
2188
|
+
end_date: "2019-01-01",
|
2189
|
+
page_size: 100,
|
2190
|
+
next_page: nil
|
2288
2191
|
}
|
2289
2192
|
|
2290
|
-
|
2291
|
-
|
2292
|
-
pp result
|
2293
|
-
rescue Intrinio::ApiError => e
|
2294
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_macd: #{e}"
|
2295
|
-
end
|
2193
|
+
result = security_api.get_security_price_technicals_macd(identifier, opts)
|
2194
|
+
pp result
|
2296
2195
|
```
|
2297
2196
|
|
2298
2197
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2370,26 +2269,22 @@ require 'pp'
|
|
2370
2269
|
# Setup authorization
|
2371
2270
|
Intrinio.configure do |config|
|
2372
2271
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2272
|
+
config.allow_retries = true
|
2373
2273
|
end
|
2374
2274
|
|
2375
2275
|
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
|
2276
|
+
identifier = "AAPL"
|
2277
|
+
|
2278
|
+
opts = {
|
2279
|
+
period: 14,
|
2280
|
+
start_date: "2018-01-01",
|
2281
|
+
end_date: "2019-01-01",
|
2282
|
+
page_size: 100,
|
2283
|
+
next_page: nil
|
2385
2284
|
}
|
2386
2285
|
|
2387
|
-
|
2388
|
-
|
2389
|
-
pp result
|
2390
|
-
rescue Intrinio::ApiError => e
|
2391
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mfi: #{e}"
|
2392
|
-
end
|
2286
|
+
result = security_api.get_security_price_technicals_mfi(identifier, opts)
|
2287
|
+
pp result
|
2393
2288
|
```
|
2394
2289
|
|
2395
2290
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2464,27 +2359,23 @@ require 'pp'
|
|
2464
2359
|
# Setup authorization
|
2465
2360
|
Intrinio.configure do |config|
|
2466
2361
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2362
|
+
config.allow_retries = true
|
2467
2363
|
end
|
2468
2364
|
|
2469
2365
|
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
|
2366
|
+
identifier = "AAPL"
|
2367
|
+
|
2368
|
+
opts = {
|
2369
|
+
ema_period: 9,
|
2370
|
+
sum_period: 25,
|
2371
|
+
start_date: "2018-01-01",
|
2372
|
+
end_date: "2019-01-01",
|
2373
|
+
page_size: 100,
|
2374
|
+
next_page: nil
|
2480
2375
|
}
|
2481
2376
|
|
2482
|
-
|
2483
|
-
|
2484
|
-
pp result
|
2485
|
-
rescue Intrinio::ApiError => e
|
2486
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mi: #{e}"
|
2487
|
-
end
|
2377
|
+
result = security_api.get_security_price_technicals_mi(identifier, opts)
|
2378
|
+
pp result
|
2488
2379
|
```
|
2489
2380
|
|
2490
2381
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2560,25 +2451,21 @@ require 'pp'
|
|
2560
2451
|
# Setup authorization
|
2561
2452
|
Intrinio.configure do |config|
|
2562
2453
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2454
|
+
config.allow_retries = true
|
2563
2455
|
end
|
2564
2456
|
|
2565
2457
|
security_api = Intrinio::SecurityApi.new
|
2458
|
+
identifier = "AAPL"
|
2566
2459
|
|
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
|
2460
|
+
opts = {
|
2461
|
+
start_date: "2018-01-01",
|
2462
|
+
end_date: "2019-01-01",
|
2463
|
+
page_size: 100,
|
2464
|
+
next_page: nil
|
2574
2465
|
}
|
2575
2466
|
|
2576
|
-
|
2577
|
-
|
2578
|
-
pp result
|
2579
|
-
rescue Intrinio::ApiError => e
|
2580
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_nvi: #{e}"
|
2581
|
-
end
|
2467
|
+
result = security_api.get_security_price_technicals_nvi(identifier, opts)
|
2468
|
+
pp result
|
2582
2469
|
```
|
2583
2470
|
|
2584
2471
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2652,25 +2539,21 @@ require 'pp'
|
|
2652
2539
|
# Setup authorization
|
2653
2540
|
Intrinio.configure do |config|
|
2654
2541
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2542
|
+
config.allow_retries = true
|
2655
2543
|
end
|
2656
2544
|
|
2657
2545
|
security_api = Intrinio::SecurityApi.new
|
2546
|
+
identifier = "AAPL"
|
2658
2547
|
|
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
|
2548
|
+
opts = {
|
2549
|
+
start_date: "2018-01-01",
|
2550
|
+
end_date: "2019-01-01",
|
2551
|
+
page_size: 100,
|
2552
|
+
next_page: nil
|
2666
2553
|
}
|
2667
2554
|
|
2668
|
-
|
2669
|
-
|
2670
|
-
pp result
|
2671
|
-
rescue Intrinio::ApiError => e
|
2672
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_obv: #{e}"
|
2673
|
-
end
|
2555
|
+
result = security_api.get_security_price_technicals_obv(identifier, opts)
|
2556
|
+
pp result
|
2674
2557
|
```
|
2675
2558
|
|
2676
2559
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2744,26 +2627,22 @@ require 'pp'
|
|
2744
2627
|
# Setup authorization
|
2745
2628
|
Intrinio.configure do |config|
|
2746
2629
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2630
|
+
config.allow_retries = true
|
2747
2631
|
end
|
2748
2632
|
|
2749
2633
|
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
|
2634
|
+
identifier = "AAPL"
|
2635
|
+
|
2636
|
+
opts = {
|
2637
|
+
period: 10,
|
2638
|
+
start_date: "2018-01-01",
|
2639
|
+
end_date: "2019-01-01",
|
2640
|
+
page_size: 100,
|
2641
|
+
next_page: nil
|
2759
2642
|
}
|
2760
2643
|
|
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
|
2644
|
+
result = security_api.get_security_price_technicals_obv_mean(identifier, opts)
|
2645
|
+
pp result
|
2767
2646
|
```
|
2768
2647
|
|
2769
2648
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2838,27 +2717,23 @@ require 'pp'
|
|
2838
2717
|
# Setup authorization
|
2839
2718
|
Intrinio.configure do |config|
|
2840
2719
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2720
|
+
config.allow_retries = true
|
2841
2721
|
end
|
2842
2722
|
|
2843
2723
|
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
|
2724
|
+
identifier = "AAPL"
|
2725
|
+
|
2726
|
+
opts = {
|
2727
|
+
period: 14,
|
2728
|
+
price_key: "close",
|
2729
|
+
start_date: "2018-01-01",
|
2730
|
+
end_date: "2019-01-01",
|
2731
|
+
page_size: 100,
|
2732
|
+
next_page: nil
|
2854
2733
|
}
|
2855
2734
|
|
2856
|
-
|
2857
|
-
|
2858
|
-
pp result
|
2859
|
-
rescue Intrinio::ApiError => e
|
2860
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_rsi: #{e}"
|
2861
|
-
end
|
2735
|
+
result = security_api.get_security_price_technicals_rsi(identifier, opts)
|
2736
|
+
pp result
|
2862
2737
|
```
|
2863
2738
|
|
2864
2739
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2934,27 +2809,23 @@ require 'pp'
|
|
2934
2809
|
# Setup authorization
|
2935
2810
|
Intrinio.configure do |config|
|
2936
2811
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2812
|
+
config.allow_retries = true
|
2937
2813
|
end
|
2938
2814
|
|
2939
2815
|
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
|
2816
|
+
identifier = "AAPL"
|
2817
|
+
|
2818
|
+
opts = {
|
2819
|
+
period: 20,
|
2820
|
+
price_key: "close",
|
2821
|
+
start_date: "2018-01-01",
|
2822
|
+
end_date: "2019-01-01",
|
2823
|
+
page_size: 100,
|
2824
|
+
next_page: nil
|
2950
2825
|
}
|
2951
2826
|
|
2952
|
-
|
2953
|
-
|
2954
|
-
pp result
|
2955
|
-
rescue Intrinio::ApiError => e
|
2956
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sma: #{e}"
|
2957
|
-
end
|
2827
|
+
result = security_api.get_security_price_technicals_sma(identifier, opts)
|
2828
|
+
pp result
|
2958
2829
|
```
|
2959
2830
|
|
2960
2831
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3030,27 +2901,23 @@ require 'pp'
|
|
3030
2901
|
# Setup authorization
|
3031
2902
|
Intrinio.configure do |config|
|
3032
2903
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2904
|
+
config.allow_retries = true
|
3033
2905
|
end
|
3034
2906
|
|
3035
2907
|
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
|
2908
|
+
identifier = "AAPL"
|
2909
|
+
|
2910
|
+
opts = {
|
2911
|
+
period: 14,
|
2912
|
+
signal_period: 3,
|
2913
|
+
start_date: "2018-01-01",
|
2914
|
+
end_date: "2019-01-01",
|
2915
|
+
page_size: 100,
|
2916
|
+
next_page: nil
|
3046
2917
|
}
|
3047
2918
|
|
3048
|
-
|
3049
|
-
|
3050
|
-
pp result
|
3051
|
-
rescue Intrinio::ApiError => e
|
3052
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sr: #{e}"
|
3053
|
-
end
|
2919
|
+
result = security_api.get_security_price_technicals_sr(identifier, opts)
|
2920
|
+
pp result
|
3054
2921
|
```
|
3055
2922
|
|
3056
2923
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3126,26 +2993,22 @@ require 'pp'
|
|
3126
2993
|
# Setup authorization
|
3127
2994
|
Intrinio.configure do |config|
|
3128
2995
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2996
|
+
config.allow_retries = true
|
3129
2997
|
end
|
3130
2998
|
|
3131
2999
|
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
|
3000
|
+
identifier = "AAPL"
|
3001
|
+
|
3002
|
+
opts = {
|
3003
|
+
period: 15,
|
3004
|
+
start_date: "2018-01-01",
|
3005
|
+
end_date: "2019-01-01",
|
3006
|
+
page_size: 100,
|
3007
|
+
next_page: nil
|
3141
3008
|
}
|
3142
3009
|
|
3143
|
-
|
3144
|
-
|
3145
|
-
pp result
|
3146
|
-
rescue Intrinio::ApiError => e
|
3147
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_trix: #{e}"
|
3148
|
-
end
|
3010
|
+
result = security_api.get_security_price_technicals_trix(identifier, opts)
|
3011
|
+
pp result
|
3149
3012
|
```
|
3150
3013
|
|
3151
3014
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3220,28 +3083,24 @@ require 'pp'
|
|
3220
3083
|
# Setup authorization
|
3221
3084
|
Intrinio.configure do |config|
|
3222
3085
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3086
|
+
config.allow_retries = true
|
3223
3087
|
end
|
3224
3088
|
|
3225
3089
|
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
|
3090
|
+
identifier = "AAPL"
|
3091
|
+
|
3092
|
+
opts = {
|
3093
|
+
low_period: 13,
|
3094
|
+
high_period: 25,
|
3095
|
+
price_key: "close",
|
3096
|
+
start_date: "2018-01-01",
|
3097
|
+
end_date: "2019-01-01",
|
3098
|
+
page_size: 100,
|
3099
|
+
next_page: nil
|
3237
3100
|
}
|
3238
3101
|
|
3239
|
-
|
3240
|
-
|
3241
|
-
pp result
|
3242
|
-
rescue Intrinio::ApiError => e
|
3243
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_tsi: #{e}"
|
3244
|
-
end
|
3102
|
+
result = security_api.get_security_price_technicals_tsi(identifier, opts)
|
3103
|
+
pp result
|
3245
3104
|
```
|
3246
3105
|
|
3247
3106
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3318,31 +3177,27 @@ require 'pp'
|
|
3318
3177
|
# Setup authorization
|
3319
3178
|
Intrinio.configure do |config|
|
3320
3179
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3180
|
+
config.allow_retries = true
|
3321
3181
|
end
|
3322
3182
|
|
3323
3183
|
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
|
3184
|
+
identifier = "AAPL"
|
3185
|
+
|
3186
|
+
opts = {
|
3187
|
+
short_period: 7,
|
3188
|
+
medium_period: 14,
|
3189
|
+
long_period: 28,
|
3190
|
+
short_weight: 4.0,
|
3191
|
+
medium_weight: 2.0,
|
3192
|
+
long_weight: 1.0,
|
3193
|
+
start_date: "2018-01-01",
|
3194
|
+
end_date: "2019-01-01",
|
3195
|
+
page_size: 100,
|
3196
|
+
next_page: nil
|
3338
3197
|
}
|
3339
3198
|
|
3340
|
-
|
3341
|
-
|
3342
|
-
pp result
|
3343
|
-
rescue Intrinio::ApiError => e
|
3344
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_uo: #{e}"
|
3345
|
-
end
|
3199
|
+
result = security_api.get_security_price_technicals_uo(identifier, opts)
|
3200
|
+
pp result
|
3346
3201
|
```
|
3347
3202
|
|
3348
3203
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3422,26 +3277,22 @@ require 'pp'
|
|
3422
3277
|
# Setup authorization
|
3423
3278
|
Intrinio.configure do |config|
|
3424
3279
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3280
|
+
config.allow_retries = true
|
3425
3281
|
end
|
3426
3282
|
|
3427
3283
|
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
|
3284
|
+
identifier = "AAPL"
|
3285
|
+
|
3286
|
+
opts = {
|
3287
|
+
period: 14,
|
3288
|
+
start_date: "2018-01-01",
|
3289
|
+
end_date: "2019-01-01",
|
3290
|
+
page_size: 100,
|
3291
|
+
next_page: nil
|
3437
3292
|
}
|
3438
3293
|
|
3439
|
-
|
3440
|
-
|
3441
|
-
pp result
|
3442
|
-
rescue Intrinio::ApiError => e
|
3443
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vi: #{e}"
|
3444
|
-
end
|
3294
|
+
result = security_api.get_security_price_technicals_vi(identifier, opts)
|
3295
|
+
pp result
|
3445
3296
|
```
|
3446
3297
|
|
3447
3298
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3516,25 +3367,21 @@ require 'pp'
|
|
3516
3367
|
# Setup authorization
|
3517
3368
|
Intrinio.configure do |config|
|
3518
3369
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3370
|
+
config.allow_retries = true
|
3519
3371
|
end
|
3520
3372
|
|
3521
3373
|
security_api = Intrinio::SecurityApi.new
|
3374
|
+
identifier = "AAPL"
|
3522
3375
|
|
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
|
3376
|
+
opts = {
|
3377
|
+
start_date: "2018-01-01",
|
3378
|
+
end_date: "2019-01-01",
|
3379
|
+
page_size: 100,
|
3380
|
+
next_page: nil
|
3530
3381
|
}
|
3531
3382
|
|
3532
|
-
|
3533
|
-
|
3534
|
-
pp result
|
3535
|
-
rescue Intrinio::ApiError => e
|
3536
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vpt: #{e}"
|
3537
|
-
end
|
3383
|
+
result = security_api.get_security_price_technicals_vpt(identifier, opts)
|
3384
|
+
pp result
|
3538
3385
|
```
|
3539
3386
|
|
3540
3387
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3608,25 +3455,21 @@ require 'pp'
|
|
3608
3455
|
# Setup authorization
|
3609
3456
|
Intrinio.configure do |config|
|
3610
3457
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3458
|
+
config.allow_retries = true
|
3611
3459
|
end
|
3612
3460
|
|
3613
3461
|
security_api = Intrinio::SecurityApi.new
|
3462
|
+
identifier = "AAPL"
|
3614
3463
|
|
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
|
3464
|
+
opts = {
|
3465
|
+
start_date: "2018-01-01",
|
3466
|
+
end_date: "2019-01-01",
|
3467
|
+
page_size: 100,
|
3468
|
+
next_page: nil
|
3622
3469
|
}
|
3623
3470
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
pp result
|
3627
|
-
rescue Intrinio::ApiError => e
|
3628
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vwap: #{e}"
|
3629
|
-
end
|
3471
|
+
result = security_api.get_security_price_technicals_vwap(identifier, opts)
|
3472
|
+
pp result
|
3630
3473
|
```
|
3631
3474
|
|
3632
3475
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3700,26 +3543,22 @@ require 'pp'
|
|
3700
3543
|
# Setup authorization
|
3701
3544
|
Intrinio.configure do |config|
|
3702
3545
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3546
|
+
config.allow_retries = true
|
3703
3547
|
end
|
3704
3548
|
|
3705
3549
|
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
|
3550
|
+
identifier = "AAPL"
|
3551
|
+
|
3552
|
+
opts = {
|
3553
|
+
period: 14,
|
3554
|
+
start_date: "2018-01-01",
|
3555
|
+
end_date: "2019-01-01",
|
3556
|
+
page_size: 100,
|
3557
|
+
next_page: nil
|
3715
3558
|
}
|
3716
3559
|
|
3717
|
-
|
3718
|
-
|
3719
|
-
pp result
|
3720
|
-
rescue Intrinio::ApiError => e
|
3721
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_wr: #{e}"
|
3722
|
-
end
|
3560
|
+
result = security_api.get_security_price_technicals_wr(identifier, opts)
|
3561
|
+
pp result
|
3723
3562
|
```
|
3724
3563
|
|
3725
3564
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3794,22 +3633,18 @@ require 'pp'
|
|
3794
3633
|
# Setup authorization
|
3795
3634
|
Intrinio.configure do |config|
|
3796
3635
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3636
|
+
config.allow_retries = true
|
3797
3637
|
end
|
3798
3638
|
|
3799
3639
|
security_api = Intrinio::SecurityApi.new
|
3640
|
+
identifier = "AAPL"
|
3800
3641
|
|
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.
|
3642
|
+
opts = {
|
3643
|
+
source: "bats"
|
3805
3644
|
}
|
3806
3645
|
|
3807
|
-
|
3808
|
-
|
3809
|
-
pp result
|
3810
|
-
rescue Intrinio::ApiError => e
|
3811
|
-
puts "Exception when calling SecurityApi->get_security_realtime_price: #{e}"
|
3812
|
-
end
|
3646
|
+
result = security_api.get_security_realtime_price(identifier, opts)
|
3647
|
+
pp result
|
3813
3648
|
```
|
3814
3649
|
|
3815
3650
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3880,25 +3715,21 @@ require 'pp'
|
|
3880
3715
|
# Setup authorization
|
3881
3716
|
Intrinio.configure do |config|
|
3882
3717
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3718
|
+
config.allow_retries = true
|
3883
3719
|
end
|
3884
3720
|
|
3885
3721
|
security_api = Intrinio::SecurityApi.new
|
3722
|
+
identifier = "AAPL"
|
3886
3723
|
|
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
|
3724
|
+
opts = {
|
3725
|
+
start_date: Date.parse("2018-01-01"),
|
3726
|
+
end_date: Date.parse("2019-01-01"),
|
3727
|
+
page_size: 100,
|
3728
|
+
next_page: nil
|
3894
3729
|
}
|
3895
3730
|
|
3896
|
-
|
3897
|
-
|
3898
|
-
pp result
|
3899
|
-
rescue Intrinio::ApiError => e
|
3900
|
-
puts "Exception when calling SecurityApi->get_security_stock_price_adjustments: #{e}"
|
3901
|
-
end
|
3731
|
+
result = security_api.get_security_stock_price_adjustments(identifier, opts)
|
3732
|
+
pp result
|
3902
3733
|
```
|
3903
3734
|
|
3904
3735
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3972,26 +3803,22 @@ require 'pp'
|
|
3972
3803
|
# Setup authorization
|
3973
3804
|
Intrinio.configure do |config|
|
3974
3805
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3806
|
+
config.allow_retries = true
|
3975
3807
|
end
|
3976
3808
|
|
3977
3809
|
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
|
3810
|
+
identifier = "AAPL"
|
3811
|
+
|
3812
|
+
opts = {
|
3813
|
+
start_date: Date.parse("2018-01-01"),
|
3814
|
+
end_date: Date.parse("2019-01-01"),
|
3815
|
+
frequency: "daily",
|
3816
|
+
page_size: 100,
|
3817
|
+
next_page: nil
|
3987
3818
|
}
|
3988
3819
|
|
3989
|
-
|
3990
|
-
|
3991
|
-
pp result
|
3992
|
-
rescue Intrinio::ApiError => e
|
3993
|
-
puts "Exception when calling SecurityApi->get_security_stock_prices: #{e}"
|
3994
|
-
end
|
3820
|
+
result = security_api.get_security_stock_prices(identifier, opts)
|
3821
|
+
pp result
|
3995
3822
|
```
|
3996
3823
|
|
3997
3824
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4066,38 +3893,34 @@ require 'pp'
|
|
4066
3893
|
# Setup authorization
|
4067
3894
|
Intrinio.configure do |config|
|
4068
3895
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3896
|
+
config.allow_retries = true
|
4069
3897
|
end
|
4070
3898
|
|
4071
3899
|
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
|
3900
|
+
identifier = "AAPL"
|
3901
|
+
|
3902
|
+
opts = {
|
3903
|
+
start_date: nil,
|
3904
|
+
end_date: nil,
|
3905
|
+
mean_greater: nil,
|
3906
|
+
mean_less: nil,
|
3907
|
+
strong_buys_greater: nil,
|
3908
|
+
strong_buys_less: nil,
|
3909
|
+
buys_greater: nil,
|
3910
|
+
buys_less: nil,
|
3911
|
+
holds_greater: nil,
|
3912
|
+
holds_less: nil,
|
3913
|
+
sells_greater: nil,
|
3914
|
+
sells_less: nil,
|
3915
|
+
strong_sells_greater: nil,
|
3916
|
+
strong_sells_less: nil,
|
3917
|
+
total_greater: nil,
|
3918
|
+
total_less: nil,
|
3919
|
+
page_size: 100
|
4093
3920
|
}
|
4094
3921
|
|
4095
|
-
|
4096
|
-
|
4097
|
-
pp result
|
4098
|
-
rescue Intrinio::ApiError => e
|
4099
|
-
puts "Exception when calling SecurityApi->get_security_zacks_analyst_ratings: #{e}"
|
4100
|
-
end
|
3922
|
+
result = security_api.get_security_zacks_analyst_ratings(identifier, opts)
|
3923
|
+
pp result
|
4101
3924
|
```
|
4102
3925
|
|
4103
3926
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4184,22 +4007,18 @@ require 'pp'
|
|
4184
4007
|
# Setup authorization
|
4185
4008
|
Intrinio.configure do |config|
|
4186
4009
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4010
|
+
config.allow_retries = true
|
4187
4011
|
end
|
4188
4012
|
|
4189
4013
|
security_api = Intrinio::SecurityApi.new
|
4014
|
+
identifier = "AAPL"
|
4190
4015
|
|
4191
|
-
|
4192
|
-
|
4193
|
-
opts = {
|
4194
|
-
date: nil # String | Lookup a historical snapshot on the given date
|
4016
|
+
opts = {
|
4017
|
+
date: nil
|
4195
4018
|
}
|
4196
4019
|
|
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
|
4020
|
+
result = security_api.get_security_zacks_analyst_ratings_snapshot(identifier, opts)
|
4021
|
+
pp result
|
4203
4022
|
```
|
4204
4023
|
|
4205
4024
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4270,23 +4089,19 @@ require 'pp'
|
|
4270
4089
|
# Setup authorization
|
4271
4090
|
Intrinio.configure do |config|
|
4272
4091
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4092
|
+
config.allow_retries = true
|
4273
4093
|
end
|
4274
4094
|
|
4275
4095
|
security_api = Intrinio::SecurityApi.new
|
4096
|
+
identifier = "AAPL"
|
4276
4097
|
|
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
|
4098
|
+
opts = {
|
4099
|
+
page_size: 100,
|
4100
|
+
next_page: nil
|
4282
4101
|
}
|
4283
4102
|
|
4284
|
-
|
4285
|
-
|
4286
|
-
pp result
|
4287
|
-
rescue Intrinio::ApiError => e
|
4288
|
-
puts "Exception when calling SecurityApi->get_security_zacks_eps_surprises: #{e}"
|
4289
|
-
end
|
4103
|
+
result = security_api.get_security_zacks_eps_surprises(identifier, opts)
|
4104
|
+
pp result
|
4290
4105
|
```
|
4291
4106
|
|
4292
4107
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4358,23 +4173,19 @@ require 'pp'
|
|
4358
4173
|
# Setup authorization
|
4359
4174
|
Intrinio.configure do |config|
|
4360
4175
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4176
|
+
config.allow_retries = true
|
4361
4177
|
end
|
4362
4178
|
|
4363
4179
|
security_api = Intrinio::SecurityApi.new
|
4180
|
+
identifier = "AAPL"
|
4364
4181
|
|
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
|
4182
|
+
opts = {
|
4183
|
+
page_size: 100,
|
4184
|
+
next_page: nil
|
4370
4185
|
}
|
4371
4186
|
|
4372
|
-
|
4373
|
-
|
4374
|
-
pp result
|
4375
|
-
rescue Intrinio::ApiError => e
|
4376
|
-
puts "Exception when calling SecurityApi->get_security_zacks_sales_surprises: #{e}"
|
4377
|
-
end
|
4187
|
+
result = security_api.get_security_zacks_sales_surprises(identifier, opts)
|
4188
|
+
pp result
|
4378
4189
|
```
|
4379
4190
|
|
4380
4191
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4430,7 +4241,7 @@ Name | Type | Description | Notes
|
|
4430
4241
|
#### Screen Securities
|
4431
4242
|
|
4432
4243
|
|
4433
|
-
Screen Securities using complex logic
|
4244
|
+
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
4245
|
|
4435
4246
|
[//]: # (END_OVERVIEW)
|
4436
4247
|
|
@@ -4446,24 +4257,34 @@ require 'pp'
|
|
4446
4257
|
# Setup authorization
|
4447
4258
|
Intrinio.configure do |config|
|
4448
4259
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4260
|
+
config.allow_retries = true
|
4449
4261
|
end
|
4450
4262
|
|
4451
4263
|
security_api = Intrinio::SecurityApi.new
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4264
|
+
clauses = [
|
4265
|
+
{
|
4266
|
+
"field": "marketcap",
|
4267
|
+
"operator": "gt",
|
4268
|
+
"value": "10000000"
|
4269
|
+
},
|
4270
|
+
{
|
4271
|
+
"field": "beta",
|
4272
|
+
"operator": "lt",
|
4273
|
+
"value": "5"
|
4274
|
+
}
|
4275
|
+
]
|
4276
|
+
|
4277
|
+
|
4278
|
+
opts = {
|
4279
|
+
logic: Intrinio::SecurityScreenGroup.new(operator: "AND", clauses: clauses),
|
4280
|
+
order_column: "marketcap",
|
4281
|
+
order_direction: "asc",
|
4282
|
+
primary_only: false,
|
4283
|
+
page_size: 100
|
4459
4284
|
}
|
4460
4285
|
|
4461
|
-
|
4462
|
-
|
4463
|
-
pp result
|
4464
|
-
rescue Intrinio::ApiError => e
|
4465
|
-
puts "Exception when calling SecurityApi->screen_securities: #{e}"
|
4466
|
-
end
|
4286
|
+
result = security_api.screen_securities(opts)
|
4287
|
+
pp result
|
4467
4288
|
```
|
4468
4289
|
|
4469
4290
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4477,7 +4298,7 @@ end
|
|
4477
4298
|
|
4478
4299
|
Name | Type | Description | Notes
|
4479
4300
|
------------- | ------------- | ------------- | -------------
|
4480
|
-
**logic** | [**SecurityScreenGroup**](SecurityScreenGroup.md)| The logic to screen with, consisting of operators, clauses, and nested groups
|
4301
|
+
**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
4302
|
**order_column** | String| Results returned sorted by this column | [optional]
|
4482
4303
|
**order_direction** | String| Sort order to use with the order_column | [optional] [default to asc]
|
4483
4304
|
**primary_only** | BOOLEAN| Return only primary securities | [optional] [default to false]
|
@@ -4537,22 +4358,18 @@ require 'pp'
|
|
4537
4358
|
# Setup authorization
|
4538
4359
|
Intrinio.configure do |config|
|
4539
4360
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4361
|
+
config.allow_retries = true
|
4540
4362
|
end
|
4541
4363
|
|
4542
4364
|
security_api = Intrinio::SecurityApi.new
|
4365
|
+
query = "Apple"
|
4543
4366
|
|
4544
|
-
|
4545
|
-
|
4546
|
-
opts = {
|
4547
|
-
page_size: 100 # Integer | The number of results to return
|
4367
|
+
opts = {
|
4368
|
+
page_size: 100
|
4548
4369
|
}
|
4549
4370
|
|
4550
|
-
|
4551
|
-
|
4552
|
-
pp result
|
4553
|
-
rescue Intrinio::ApiError => e
|
4554
|
-
puts "Exception when calling SecurityApi->search_securities: #{e}"
|
4555
|
-
end
|
4371
|
+
result = security_api.search_securities(query, opts)
|
4372
|
+
pp result
|
4556
4373
|
```
|
4557
4374
|
|
4558
4375
|
[//]: # (END_CODE_EXAMPLE)
|