intrinio-sdk 5.6.1 → 5.6.3
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 +16 -12
- data/docs/BulkDownloadsApi.md +3 -7
- data/docs/CompanyApi.md +113 -172
- data/docs/DataPointApi.md +10 -22
- 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 +14 -19
- data/docs/IndexApi.md +117 -204
- data/docs/MunicipalityApi.md +28 -39
- data/docs/OptionsApi.md +45 -62
- data/docs/RealtimeStockPrice.md +1 -0
- data/docs/SecurityApi.md +534 -719
- 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 +1 -1
- data/lib/intrinio-sdk/api/bulk_downloads_api.rb +1 -1
- data/lib/intrinio-sdk/api/company_api.rb +1 -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 +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 +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 +1 -1
- data/lib/intrinio-sdk/api/security_api.rb +9 -9
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +1 -1
- 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 +30 -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_expirations.rb +1 -1
- 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 +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_price.rb +1 -1
- 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 +1 -1
- 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 +1 -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 +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 +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 +1 -1
- data/spec/api/security_api_spec.rb +5 -5
- 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_spec.rb +1 -1
- data/spec/models/api_response_options_expirations_spec.rb +1 -1
- data/spec/models/api_response_options_spec.rb +1 -1
- 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 +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_spec.rb +1 -1
- data/spec/models/option_price_spec.rb +1 -1
- data/spec/models/option_spec.rb +1 -1
- 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 +1 -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 +26 -7
data/docs/MunicipalityApi.md
CHANGED
@@ -39,6 +39,7 @@ Method | HTTP request | Description
|
|
39
39
|
#### All Municipalities
|
40
40
|
|
41
41
|
|
42
|
+
Returns all Municipalities. When parameters are specified, returns matching municipalities.
|
42
43
|
|
43
44
|
[//]: # (END_OVERVIEW)
|
44
45
|
|
@@ -54,32 +55,29 @@ require 'pp'
|
|
54
55
|
# Setup authorization
|
55
56
|
Intrinio.configure do |config|
|
56
57
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
58
|
+
config.allow_retries = true
|
57
59
|
end
|
58
60
|
|
59
61
|
municipality_api = Intrinio::MunicipalityApi.new
|
60
62
|
|
61
|
-
opts = {
|
62
|
-
has_financials:
|
63
|
-
government_name: nil,
|
64
|
-
government_type: nil,
|
65
|
-
area_name: nil,
|
66
|
-
area_type: nil,
|
67
|
-
city: nil,
|
68
|
-
state: nil,
|
69
|
-
zipcode: nil,
|
70
|
-
population_greater_than: nil,
|
71
|
-
population_less_than: nil,
|
72
|
-
enrollment_greater_than: nil,
|
73
|
-
enrollment_less_than: nil,
|
74
|
-
next_page: nil
|
63
|
+
opts = {
|
64
|
+
has_financials: nil,
|
65
|
+
government_name: nil,
|
66
|
+
government_type: nil,
|
67
|
+
area_name: nil,
|
68
|
+
area_type: nil,
|
69
|
+
city: nil,
|
70
|
+
state: nil,
|
71
|
+
zipcode: nil,
|
72
|
+
population_greater_than: nil,
|
73
|
+
population_less_than: nil,
|
74
|
+
enrollment_greater_than: nil,
|
75
|
+
enrollment_less_than: nil,
|
76
|
+
next_page: nil
|
75
77
|
}
|
76
78
|
|
77
|
-
|
78
|
-
|
79
|
-
pp result
|
80
|
-
rescue Intrinio::ApiError => e
|
81
|
-
puts "Exception when calling MunicipalityApi->get_all_municipalities: #{e}"
|
82
|
-
end
|
79
|
+
result = municipality_api.get_all_municipalities(opts)
|
80
|
+
pp result
|
83
81
|
```
|
84
82
|
|
85
83
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -161,19 +159,14 @@ require 'pp'
|
|
161
159
|
# Setup authorization
|
162
160
|
Intrinio.configure do |config|
|
163
161
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
162
|
+
config.allow_retries = true
|
164
163
|
end
|
165
164
|
|
166
165
|
municipality_api = Intrinio::MunicipalityApi.new
|
166
|
+
id = "mun_Xn7x4z"
|
167
167
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
begin
|
172
|
-
result = municipality_api.get_municipality_by_id(id)
|
173
|
-
pp result
|
174
|
-
rescue Intrinio::ApiError => e
|
175
|
-
puts "Exception when calling MunicipalityApi->get_municipality_by_id: #{e}"
|
176
|
-
end
|
168
|
+
result = municipality_api.get_municipality_by_id(id)
|
169
|
+
pp result
|
177
170
|
```
|
178
171
|
|
179
172
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -243,22 +236,18 @@ require 'pp'
|
|
243
236
|
# Setup authorization
|
244
237
|
Intrinio.configure do |config|
|
245
238
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
239
|
+
config.allow_retries = true
|
246
240
|
end
|
247
241
|
|
248
242
|
municipality_api = Intrinio::MunicipalityApi.new
|
243
|
+
id = "mun_Xn7x4z"
|
249
244
|
|
250
|
-
|
251
|
-
|
252
|
-
opts = {
|
253
|
-
fiscal_year: 2017 # Float | Return financials for the given fiscal year
|
245
|
+
opts = {
|
246
|
+
fiscal_year: 2017
|
254
247
|
}
|
255
248
|
|
256
|
-
|
257
|
-
|
258
|
-
pp result
|
259
|
-
rescue Intrinio::ApiError => e
|
260
|
-
puts "Exception when calling MunicipalityApi->get_municipality_financials: #{e}"
|
261
|
-
end
|
249
|
+
result = municipality_api.get_municipality_financials(id, opts)
|
250
|
+
pp result
|
262
251
|
```
|
263
252
|
|
264
253
|
[//]: # (END_CODE_EXAMPLE)
|
data/docs/OptionsApi.md
CHANGED
@@ -56,30 +56,26 @@ require 'pp'
|
|
56
56
|
# Setup authorization
|
57
57
|
Intrinio.configure do |config|
|
58
58
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
59
|
+
config.allow_retries = true
|
59
60
|
end
|
60
61
|
|
61
62
|
options_api = Intrinio::OptionsApi.new
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
63
|
+
symbol = "AAPL"
|
64
|
+
|
65
|
+
opts = {
|
66
|
+
type: "put",
|
67
|
+
strike: 170,
|
68
|
+
strike_greater_than: 150,
|
69
|
+
strike_less_than: 190,
|
70
|
+
expiration: "2019-03-01",
|
71
|
+
expiration_after: "2019-01-01",
|
72
|
+
expiration_before: "2019-12-31",
|
73
|
+
page_size: 100,
|
74
|
+
next_page: nil
|
75
75
|
}
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
pp result
|
80
|
-
rescue Intrinio::ApiError => e
|
81
|
-
puts "Exception when calling OptionsApi->get_options: #{e}"
|
82
|
-
end
|
77
|
+
result = options_api.get_options(symbol, opts)
|
78
|
+
pp result
|
83
79
|
```
|
84
80
|
|
85
81
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -158,30 +154,25 @@ require 'pp'
|
|
158
154
|
# Setup authorization
|
159
155
|
Intrinio.configure do |config|
|
160
156
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
157
|
+
config.allow_retries = true
|
161
158
|
end
|
162
159
|
|
163
160
|
options_api = Intrinio::OptionsApi.new
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
moneyness: "in_the_money", # String | The moneyness of the options contracts to return. 'all' will return all options contracts. 'in_the_money' will return options contracts that are in the money (call options with strike prices below the current price, put options with strike prices above the current price). 'out_of_they_money' will return options contracts that are out of the money (call options with strike prices above the current price, put options with strike prices below the current price). 'near_the_money' will return options contracts that are $0.50 or less away from being in the money.
|
176
|
-
page_size: 100 # Integer | The number of results to return
|
161
|
+
symbol = "MSFT"
|
162
|
+
expiration = "2019-04-05"
|
163
|
+
|
164
|
+
opts = {
|
165
|
+
date: nil,
|
166
|
+
type: nil,
|
167
|
+
strike: nil,
|
168
|
+
strike_greater_than: nil,
|
169
|
+
strike_less_than: nil,
|
170
|
+
moneyness: nil,
|
171
|
+
page_size: 100
|
177
172
|
}
|
178
173
|
|
179
|
-
|
180
|
-
|
181
|
-
pp result
|
182
|
-
rescue Intrinio::ApiError => e
|
183
|
-
puts "Exception when calling OptionsApi->get_options_chain: #{e}"
|
184
|
-
end
|
174
|
+
result = options_api.get_options_chain(symbol, expiration, opts)
|
175
|
+
pp result
|
185
176
|
```
|
186
177
|
|
187
178
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -259,23 +250,19 @@ require 'pp'
|
|
259
250
|
# Setup authorization
|
260
251
|
Intrinio.configure do |config|
|
261
252
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
253
|
+
config.allow_retries = true
|
262
254
|
end
|
263
255
|
|
264
256
|
options_api = Intrinio::OptionsApi.new
|
257
|
+
symbol = "MSFT"
|
265
258
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
after: "2019-01-01", # String | Return option contract expiration dates after this date.
|
270
|
-
before: "2019-12-31" # String | Return option contract expiration dates before this date.
|
259
|
+
opts = {
|
260
|
+
after: "2019-01-01",
|
261
|
+
before: "2019-12-31"
|
271
262
|
}
|
272
263
|
|
273
|
-
|
274
|
-
|
275
|
-
pp result
|
276
|
-
rescue Intrinio::ApiError => e
|
277
|
-
puts "Exception when calling OptionsApi->get_options_expirations: #{e}"
|
278
|
-
end
|
264
|
+
result = options_api.get_options_expirations(symbol, opts)
|
265
|
+
pp result
|
279
266
|
```
|
280
267
|
|
281
268
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -347,25 +334,21 @@ require 'pp'
|
|
347
334
|
# Setup authorization
|
348
335
|
Intrinio.configure do |config|
|
349
336
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
337
|
+
config.allow_retries = true
|
350
338
|
end
|
351
339
|
|
352
340
|
options_api = Intrinio::OptionsApi.new
|
341
|
+
identifier = "MSFT190405C00118000"
|
353
342
|
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
page_size: 100, # Integer | The number of results to return
|
360
|
-
next_page: nil # String | Gets the next page of data from a previous API call
|
343
|
+
opts = {
|
344
|
+
start_date: "2019-01-01",
|
345
|
+
end_date: "2019-12-31",
|
346
|
+
page_size: 100,
|
347
|
+
next_page: nil
|
361
348
|
}
|
362
349
|
|
363
|
-
|
364
|
-
|
365
|
-
pp result
|
366
|
-
rescue Intrinio::ApiError => e
|
367
|
-
puts "Exception when calling OptionsApi->get_options_prices: #{e}"
|
368
|
-
end
|
350
|
+
result = options_api.get_options_prices(identifier, opts)
|
351
|
+
pp result
|
369
352
|
```
|
370
353
|
|
371
354
|
[//]: # (END_CODE_EXAMPLE)
|
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,34 @@ 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
|
-
next_page: nil
|
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
|
+
next_page: nil
|
126
127
|
}
|
127
128
|
|
128
|
-
|
129
|
-
|
130
|
-
pp result
|
131
|
-
rescue Intrinio::ApiError => e
|
132
|
-
puts "Exception when calling SecurityApi->get_all_securities: #{e}"
|
133
|
-
end
|
129
|
+
result = security_api.get_all_securities(opts)
|
130
|
+
pp result
|
134
131
|
```
|
135
132
|
|
136
133
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -217,19 +214,14 @@ require 'pp'
|
|
217
214
|
# Setup authorization
|
218
215
|
Intrinio.configure do |config|
|
219
216
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
217
|
+
config.allow_retries = true
|
220
218
|
end
|
221
219
|
|
222
220
|
security_api = Intrinio::SecurityApi.new
|
221
|
+
identifier = "AAPL"
|
223
222
|
|
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
|
223
|
+
result = security_api.get_security_by_id(identifier)
|
224
|
+
pp result
|
233
225
|
```
|
234
226
|
|
235
227
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -299,21 +291,15 @@ require 'pp'
|
|
299
291
|
# Setup authorization
|
300
292
|
Intrinio.configure do |config|
|
301
293
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
294
|
+
config.allow_retries = true
|
302
295
|
end
|
303
296
|
|
304
297
|
security_api = Intrinio::SecurityApi.new
|
298
|
+
identifier = "AAPL"
|
299
|
+
tag = "close_price"
|
305
300
|
|
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
|
301
|
+
result = security_api.get_security_data_point_number(identifier, tag)
|
302
|
+
pp result
|
317
303
|
```
|
318
304
|
|
319
305
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -384,21 +370,15 @@ require 'pp'
|
|
384
370
|
# Setup authorization
|
385
371
|
Intrinio.configure do |config|
|
386
372
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
373
|
+
config.allow_retries = true
|
387
374
|
end
|
388
375
|
|
389
376
|
security_api = Intrinio::SecurityApi.new
|
377
|
+
identifier = "AAPL"
|
378
|
+
tag = "figi"
|
390
379
|
|
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
|
380
|
+
result = security_api.get_security_data_point_text(identifier, tag)
|
381
|
+
pp result
|
402
382
|
```
|
403
383
|
|
404
384
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -469,30 +449,25 @@ require 'pp'
|
|
469
449
|
# Setup authorization
|
470
450
|
Intrinio.configure do |config|
|
471
451
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
452
|
+
config.allow_retries = true
|
472
453
|
end
|
473
454
|
|
474
455
|
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
|
456
|
+
identifier = "AAPL"
|
457
|
+
tag = "adj_close_price"
|
458
|
+
|
459
|
+
opts = {
|
460
|
+
frequency: "daily",
|
461
|
+
type: nil,
|
462
|
+
start_date: Date.parse("2018-01-01"),
|
463
|
+
end_date: nil,
|
464
|
+
sort_order: "desc",
|
465
|
+
page_size: 100,
|
466
|
+
next_page: nil
|
488
467
|
}
|
489
468
|
|
490
|
-
|
491
|
-
|
492
|
-
pp result
|
493
|
-
rescue Intrinio::ApiError => e
|
494
|
-
puts "Exception when calling SecurityApi->get_security_historical_data: #{e}"
|
495
|
-
end
|
469
|
+
result = security_api.get_security_historical_data(identifier, tag, opts)
|
470
|
+
pp result
|
496
471
|
```
|
497
472
|
|
498
473
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -570,28 +545,24 @@ require 'pp'
|
|
570
545
|
# Setup authorization
|
571
546
|
Intrinio.configure do |config|
|
572
547
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
548
|
+
config.allow_retries = true
|
573
549
|
end
|
574
550
|
|
575
551
|
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
|
552
|
+
identifier = "AAPL"
|
553
|
+
|
554
|
+
opts = {
|
555
|
+
source: nil,
|
556
|
+
start_date: Date.parse("2018-01-01"),
|
557
|
+
start_time: nil,
|
558
|
+
end_date: Date.parse("2019-01-01"),
|
559
|
+
end_time: nil,
|
560
|
+
page_size: 100,
|
561
|
+
next_page: nil
|
587
562
|
}
|
588
563
|
|
589
|
-
|
590
|
-
|
591
|
-
pp result
|
592
|
-
rescue Intrinio::ApiError => e
|
593
|
-
puts "Exception when calling SecurityApi->get_security_intraday_prices: #{e}"
|
594
|
-
end
|
564
|
+
result = security_api.get_security_intraday_prices(identifier, opts)
|
565
|
+
pp result
|
595
566
|
```
|
596
567
|
|
597
568
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -608,9 +579,9 @@ Name | Type | Description | Notes
|
|
608
579
|
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
609
580
|
**source** | String| Return intraday prices from the specified data source | [optional]
|
610
581
|
**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` (
|
582
|
+
**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
583
|
**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` (
|
584
|
+
**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
585
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
615
586
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
616
587
|
|
@@ -649,7 +620,7 @@ Name | Type | Description | Notes
|
|
649
620
|
|
650
621
|
> DividendRecord get_security_latest_dividend_record(identifier)
|
651
622
|
|
652
|
-
####
|
623
|
+
#### Latest Dividend Record for Security
|
653
624
|
|
654
625
|
|
655
626
|
Returns the latest available dividend information for the Security with the given `identifier`
|
@@ -668,19 +639,14 @@ require 'pp'
|
|
668
639
|
# Setup authorization
|
669
640
|
Intrinio.configure do |config|
|
670
641
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
642
|
+
config.allow_retries = true
|
671
643
|
end
|
672
644
|
|
673
645
|
security_api = Intrinio::SecurityApi.new
|
646
|
+
identifier = "AAPL"
|
674
647
|
|
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
|
648
|
+
result = security_api.get_security_latest_dividend_record(identifier)
|
649
|
+
pp result
|
684
650
|
```
|
685
651
|
|
686
652
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -731,7 +697,7 @@ Name | Type | Description | Notes
|
|
731
697
|
|
732
698
|
> EarningsRecord get_security_latest_earnings_record(identifier)
|
733
699
|
|
734
|
-
####
|
700
|
+
#### Latest Earnings Record for Security
|
735
701
|
|
736
702
|
|
737
703
|
Returns latest available earnings information for the Security with the given `identifier`
|
@@ -750,19 +716,14 @@ require 'pp'
|
|
750
716
|
# Setup authorization
|
751
717
|
Intrinio.configure do |config|
|
752
718
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
719
|
+
config.allow_retries = true
|
753
720
|
end
|
754
721
|
|
755
722
|
security_api = Intrinio::SecurityApi.new
|
723
|
+
identifier = "AAPL"
|
756
724
|
|
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
|
725
|
+
result = security_api.get_security_latest_earnings_record(identifier)
|
726
|
+
pp result
|
766
727
|
```
|
767
728
|
|
768
729
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -832,25 +793,21 @@ require 'pp'
|
|
832
793
|
# Setup authorization
|
833
794
|
Intrinio.configure do |config|
|
834
795
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
796
|
+
config.allow_retries = true
|
835
797
|
end
|
836
798
|
|
837
799
|
security_api = Intrinio::SecurityApi.new
|
800
|
+
identifier = "AAPL"
|
838
801
|
|
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
|
802
|
+
opts = {
|
803
|
+
start_date: "2018-01-01",
|
804
|
+
end_date: "2019-01-01",
|
805
|
+
page_size: 100,
|
806
|
+
next_page: nil
|
846
807
|
}
|
847
808
|
|
848
|
-
|
849
|
-
|
850
|
-
pp result
|
851
|
-
rescue Intrinio::ApiError => e
|
852
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adi: #{e}"
|
853
|
-
end
|
809
|
+
result = security_api.get_security_price_technicals_adi(identifier, opts)
|
810
|
+
pp result
|
854
811
|
```
|
855
812
|
|
856
813
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -924,26 +881,22 @@ require 'pp'
|
|
924
881
|
# Setup authorization
|
925
882
|
Intrinio.configure do |config|
|
926
883
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
884
|
+
config.allow_retries = true
|
927
885
|
end
|
928
886
|
|
929
887
|
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
|
888
|
+
identifier = "AAPL"
|
889
|
+
|
890
|
+
opts = {
|
891
|
+
period: 22,
|
892
|
+
start_date: "2018-01-01",
|
893
|
+
end_date: "2019-01-01",
|
894
|
+
page_size: 100,
|
895
|
+
next_page: nil
|
939
896
|
}
|
940
897
|
|
941
|
-
|
942
|
-
|
943
|
-
pp result
|
944
|
-
rescue Intrinio::ApiError => e
|
945
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adtv: #{e}"
|
946
|
-
end
|
898
|
+
result = security_api.get_security_price_technicals_adtv(identifier, opts)
|
899
|
+
pp result
|
947
900
|
```
|
948
901
|
|
949
902
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1018,26 +971,22 @@ require 'pp'
|
|
1018
971
|
# Setup authorization
|
1019
972
|
Intrinio.configure do |config|
|
1020
973
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
974
|
+
config.allow_retries = true
|
1021
975
|
end
|
1022
976
|
|
1023
977
|
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
|
978
|
+
identifier = "AAPL"
|
979
|
+
|
980
|
+
opts = {
|
981
|
+
period: 14,
|
982
|
+
start_date: "2018-01-01",
|
983
|
+
end_date: "2019-01-01",
|
984
|
+
page_size: 100,
|
985
|
+
next_page: nil
|
1033
986
|
}
|
1034
987
|
|
1035
|
-
|
1036
|
-
|
1037
|
-
pp result
|
1038
|
-
rescue Intrinio::ApiError => e
|
1039
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adx: #{e}"
|
1040
|
-
end
|
988
|
+
result = security_api.get_security_price_technicals_adx(identifier, opts)
|
989
|
+
pp result
|
1041
990
|
```
|
1042
991
|
|
1043
992
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1112,27 +1061,23 @@ require 'pp'
|
|
1112
1061
|
# Setup authorization
|
1113
1062
|
Intrinio.configure do |config|
|
1114
1063
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1064
|
+
config.allow_retries = true
|
1115
1065
|
end
|
1116
1066
|
|
1117
1067
|
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
|
1068
|
+
identifier = "AAPL"
|
1069
|
+
|
1070
|
+
opts = {
|
1071
|
+
short_period: 5,
|
1072
|
+
long_period: 34,
|
1073
|
+
start_date: "2018-01-01",
|
1074
|
+
end_date: "2019-01-01",
|
1075
|
+
page_size: 100,
|
1076
|
+
next_page: nil
|
1128
1077
|
}
|
1129
1078
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
pp result
|
1133
|
-
rescue Intrinio::ApiError => e
|
1134
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ao: #{e}"
|
1135
|
-
end
|
1079
|
+
result = security_api.get_security_price_technicals_ao(identifier, opts)
|
1080
|
+
pp result
|
1136
1081
|
```
|
1137
1082
|
|
1138
1083
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1208,26 +1153,22 @@ require 'pp'
|
|
1208
1153
|
# Setup authorization
|
1209
1154
|
Intrinio.configure do |config|
|
1210
1155
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1156
|
+
config.allow_retries = true
|
1211
1157
|
end
|
1212
1158
|
|
1213
1159
|
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
|
1160
|
+
identifier = "AAPL"
|
1161
|
+
|
1162
|
+
opts = {
|
1163
|
+
period: 14,
|
1164
|
+
start_date: "2018-01-01",
|
1165
|
+
end_date: "2019-01-01",
|
1166
|
+
page_size: 100,
|
1167
|
+
next_page: nil
|
1223
1168
|
}
|
1224
1169
|
|
1225
|
-
|
1226
|
-
|
1227
|
-
pp result
|
1228
|
-
rescue Intrinio::ApiError => e
|
1229
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_atr: #{e}"
|
1230
|
-
end
|
1170
|
+
result = security_api.get_security_price_technicals_atr(identifier, opts)
|
1171
|
+
pp result
|
1231
1172
|
```
|
1232
1173
|
|
1233
1174
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1302,28 +1243,24 @@ require 'pp'
|
|
1302
1243
|
# Setup authorization
|
1303
1244
|
Intrinio.configure do |config|
|
1304
1245
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1246
|
+
config.allow_retries = true
|
1305
1247
|
end
|
1306
1248
|
|
1307
1249
|
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
|
1250
|
+
identifier = "AAPL"
|
1251
|
+
|
1252
|
+
opts = {
|
1253
|
+
period: 20,
|
1254
|
+
standard_deviations: 2.0,
|
1255
|
+
price_key: "close",
|
1256
|
+
start_date: "2018-01-01",
|
1257
|
+
end_date: "2019-01-01",
|
1258
|
+
page_size: 100,
|
1259
|
+
next_page: nil
|
1319
1260
|
}
|
1320
1261
|
|
1321
|
-
|
1322
|
-
|
1323
|
-
pp result
|
1324
|
-
rescue Intrinio::ApiError => e
|
1325
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_bb: #{e}"
|
1326
|
-
end
|
1262
|
+
result = security_api.get_security_price_technicals_bb(identifier, opts)
|
1263
|
+
pp result
|
1327
1264
|
```
|
1328
1265
|
|
1329
1266
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1400,27 +1337,23 @@ require 'pp'
|
|
1400
1337
|
# Setup authorization
|
1401
1338
|
Intrinio.configure do |config|
|
1402
1339
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1340
|
+
config.allow_retries = true
|
1403
1341
|
end
|
1404
1342
|
|
1405
1343
|
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
|
1344
|
+
identifier = "AAPL"
|
1345
|
+
|
1346
|
+
opts = {
|
1347
|
+
period: 20,
|
1348
|
+
constant: 0.015,
|
1349
|
+
start_date: "2018-01-01",
|
1350
|
+
end_date: "2019-01-01",
|
1351
|
+
page_size: 100,
|
1352
|
+
next_page: nil
|
1416
1353
|
}
|
1417
1354
|
|
1418
|
-
|
1419
|
-
|
1420
|
-
pp result
|
1421
|
-
rescue Intrinio::ApiError => e
|
1422
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cci: #{e}"
|
1423
|
-
end
|
1355
|
+
result = security_api.get_security_price_technicals_cci(identifier, opts)
|
1356
|
+
pp result
|
1424
1357
|
```
|
1425
1358
|
|
1426
1359
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1496,26 +1429,22 @@ require 'pp'
|
|
1496
1429
|
# Setup authorization
|
1497
1430
|
Intrinio.configure do |config|
|
1498
1431
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1432
|
+
config.allow_retries = true
|
1499
1433
|
end
|
1500
1434
|
|
1501
1435
|
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
|
1436
|
+
identifier = "AAPL"
|
1437
|
+
|
1438
|
+
opts = {
|
1439
|
+
period: 20,
|
1440
|
+
start_date: "2018-01-01",
|
1441
|
+
end_date: "2019-01-01",
|
1442
|
+
page_size: 100,
|
1443
|
+
next_page: nil
|
1511
1444
|
}
|
1512
1445
|
|
1513
|
-
|
1514
|
-
|
1515
|
-
pp result
|
1516
|
-
rescue Intrinio::ApiError => e
|
1517
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cmf: #{e}"
|
1518
|
-
end
|
1446
|
+
result = security_api.get_security_price_technicals_cmf(identifier, opts)
|
1447
|
+
pp result
|
1519
1448
|
```
|
1520
1449
|
|
1521
1450
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1590,27 +1519,23 @@ require 'pp'
|
|
1590
1519
|
# Setup authorization
|
1591
1520
|
Intrinio.configure do |config|
|
1592
1521
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1522
|
+
config.allow_retries = true
|
1593
1523
|
end
|
1594
1524
|
|
1595
1525
|
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
|
1526
|
+
identifier = "AAPL"
|
1527
|
+
|
1528
|
+
opts = {
|
1529
|
+
period: 20,
|
1530
|
+
price_key: "close",
|
1531
|
+
start_date: "2018-01-01",
|
1532
|
+
end_date: "2019-01-01",
|
1533
|
+
page_size: 100,
|
1534
|
+
next_page: nil
|
1606
1535
|
}
|
1607
1536
|
|
1608
|
-
|
1609
|
-
|
1610
|
-
pp result
|
1611
|
-
rescue Intrinio::ApiError => e
|
1612
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dc: #{e}"
|
1613
|
-
end
|
1537
|
+
result = security_api.get_security_price_technicals_dc(identifier, opts)
|
1538
|
+
pp result
|
1614
1539
|
```
|
1615
1540
|
|
1616
1541
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1686,27 +1611,23 @@ require 'pp'
|
|
1686
1611
|
# Setup authorization
|
1687
1612
|
Intrinio.configure do |config|
|
1688
1613
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1614
|
+
config.allow_retries = true
|
1689
1615
|
end
|
1690
1616
|
|
1691
1617
|
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
|
1618
|
+
identifier = "AAPL"
|
1619
|
+
|
1620
|
+
opts = {
|
1621
|
+
period: 20,
|
1622
|
+
price_key: "close",
|
1623
|
+
start_date: "2018-01-01",
|
1624
|
+
end_date: "2019-01-01",
|
1625
|
+
page_size: 100,
|
1626
|
+
next_page: nil
|
1702
1627
|
}
|
1703
1628
|
|
1704
|
-
|
1705
|
-
|
1706
|
-
pp result
|
1707
|
-
rescue Intrinio::ApiError => e
|
1708
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dpo: #{e}"
|
1709
|
-
end
|
1629
|
+
result = security_api.get_security_price_technicals_dpo(identifier, opts)
|
1630
|
+
pp result
|
1710
1631
|
```
|
1711
1632
|
|
1712
1633
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1782,26 +1703,22 @@ require 'pp'
|
|
1782
1703
|
# Setup authorization
|
1783
1704
|
Intrinio.configure do |config|
|
1784
1705
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1706
|
+
config.allow_retries = true
|
1785
1707
|
end
|
1786
1708
|
|
1787
1709
|
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
|
1710
|
+
identifier = "AAPL"
|
1711
|
+
|
1712
|
+
opts = {
|
1713
|
+
period: 20,
|
1714
|
+
start_date: "2018-01-01",
|
1715
|
+
end_date: "2019-01-01",
|
1716
|
+
page_size: 100,
|
1717
|
+
next_page: nil
|
1797
1718
|
}
|
1798
1719
|
|
1799
|
-
|
1800
|
-
|
1801
|
-
pp result
|
1802
|
-
rescue Intrinio::ApiError => e
|
1803
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_eom: #{e}"
|
1804
|
-
end
|
1720
|
+
result = security_api.get_security_price_technicals_eom(identifier, opts)
|
1721
|
+
pp result
|
1805
1722
|
```
|
1806
1723
|
|
1807
1724
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1876,25 +1793,21 @@ require 'pp'
|
|
1876
1793
|
# Setup authorization
|
1877
1794
|
Intrinio.configure do |config|
|
1878
1795
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1796
|
+
config.allow_retries = true
|
1879
1797
|
end
|
1880
1798
|
|
1881
1799
|
security_api = Intrinio::SecurityApi.new
|
1800
|
+
identifier = "AAPL"
|
1882
1801
|
|
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
|
1802
|
+
opts = {
|
1803
|
+
start_date: "2018-01-01",
|
1804
|
+
end_date: "2019-01-01",
|
1805
|
+
page_size: 100,
|
1806
|
+
next_page: nil
|
1890
1807
|
}
|
1891
1808
|
|
1892
|
-
|
1893
|
-
|
1894
|
-
pp result
|
1895
|
-
rescue Intrinio::ApiError => e
|
1896
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_fi: #{e}"
|
1897
|
-
end
|
1809
|
+
result = security_api.get_security_price_technicals_fi(identifier, opts)
|
1810
|
+
pp result
|
1898
1811
|
```
|
1899
1812
|
|
1900
1813
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1968,28 +1881,24 @@ require 'pp'
|
|
1968
1881
|
# Setup authorization
|
1969
1882
|
Intrinio.configure do |config|
|
1970
1883
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1884
|
+
config.allow_retries = true
|
1971
1885
|
end
|
1972
1886
|
|
1973
1887
|
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
|
1888
|
+
identifier = "AAPL"
|
1889
|
+
|
1890
|
+
opts = {
|
1891
|
+
low_period: 9,
|
1892
|
+
medium_period: 26,
|
1893
|
+
high_period: 52,
|
1894
|
+
start_date: "2018-01-01",
|
1895
|
+
end_date: "2019-01-01",
|
1896
|
+
page_size: 100,
|
1897
|
+
next_page: nil
|
1985
1898
|
}
|
1986
1899
|
|
1987
|
-
|
1988
|
-
|
1989
|
-
pp result
|
1990
|
-
rescue Intrinio::ApiError => e
|
1991
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ichimoku: #{e}"
|
1992
|
-
end
|
1900
|
+
result = security_api.get_security_price_technicals_ichimoku(identifier, opts)
|
1901
|
+
pp result
|
1993
1902
|
```
|
1994
1903
|
|
1995
1904
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2066,26 +1975,22 @@ require 'pp'
|
|
2066
1975
|
# Setup authorization
|
2067
1976
|
Intrinio.configure do |config|
|
2068
1977
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1978
|
+
config.allow_retries = true
|
2069
1979
|
end
|
2070
1980
|
|
2071
1981
|
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
|
1982
|
+
identifier = "AAPL"
|
1983
|
+
|
1984
|
+
opts = {
|
1985
|
+
period: 10,
|
1986
|
+
start_date: "2018-01-01",
|
1987
|
+
end_date: "2019-01-01",
|
1988
|
+
page_size: 100,
|
1989
|
+
next_page: nil
|
2081
1990
|
}
|
2082
1991
|
|
2083
|
-
|
2084
|
-
|
2085
|
-
pp result
|
2086
|
-
rescue Intrinio::ApiError => e
|
2087
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kc: #{e}"
|
2088
|
-
end
|
1992
|
+
result = security_api.get_security_price_technicals_kc(identifier, opts)
|
1993
|
+
pp result
|
2089
1994
|
```
|
2090
1995
|
|
2091
1996
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2160,34 +2065,30 @@ require 'pp'
|
|
2160
2065
|
# Setup authorization
|
2161
2066
|
Intrinio.configure do |config|
|
2162
2067
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2068
|
+
config.allow_retries = true
|
2163
2069
|
end
|
2164
2070
|
|
2165
2071
|
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
|
2072
|
+
identifier = "AAPL"
|
2073
|
+
|
2074
|
+
opts = {
|
2075
|
+
roc1: 10,
|
2076
|
+
roc2: 15,
|
2077
|
+
roc3: 20,
|
2078
|
+
roc4: 30,
|
2079
|
+
sma1: 10,
|
2080
|
+
sma2: 10,
|
2081
|
+
sma3: 10,
|
2082
|
+
sma4: 15,
|
2083
|
+
price_key: "close",
|
2084
|
+
start_date: "2018-01-01",
|
2085
|
+
end_date: "2019-01-01",
|
2086
|
+
page_size: 100,
|
2087
|
+
next_page: nil
|
2183
2088
|
}
|
2184
2089
|
|
2185
|
-
|
2186
|
-
|
2187
|
-
pp result
|
2188
|
-
rescue Intrinio::ApiError => e
|
2189
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kst: #{e}"
|
2190
|
-
end
|
2090
|
+
result = security_api.get_security_price_technicals_kst(identifier, opts)
|
2091
|
+
pp result
|
2191
2092
|
```
|
2192
2093
|
|
2193
2094
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2270,29 +2171,25 @@ require 'pp'
|
|
2270
2171
|
# Setup authorization
|
2271
2172
|
Intrinio.configure do |config|
|
2272
2173
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2174
|
+
config.allow_retries = true
|
2273
2175
|
end
|
2274
2176
|
|
2275
2177
|
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
|
2178
|
+
identifier = "AAPL"
|
2179
|
+
|
2180
|
+
opts = {
|
2181
|
+
fast_period: 12,
|
2182
|
+
slow_period: 26,
|
2183
|
+
signal_period: 9,
|
2184
|
+
price_key: "close",
|
2185
|
+
start_date: "2018-01-01",
|
2186
|
+
end_date: "2019-01-01",
|
2187
|
+
page_size: 100,
|
2188
|
+
next_page: nil
|
2288
2189
|
}
|
2289
2190
|
|
2290
|
-
|
2291
|
-
|
2292
|
-
pp result
|
2293
|
-
rescue Intrinio::ApiError => e
|
2294
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_macd: #{e}"
|
2295
|
-
end
|
2191
|
+
result = security_api.get_security_price_technicals_macd(identifier, opts)
|
2192
|
+
pp result
|
2296
2193
|
```
|
2297
2194
|
|
2298
2195
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2370,26 +2267,22 @@ require 'pp'
|
|
2370
2267
|
# Setup authorization
|
2371
2268
|
Intrinio.configure do |config|
|
2372
2269
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2270
|
+
config.allow_retries = true
|
2373
2271
|
end
|
2374
2272
|
|
2375
2273
|
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
|
2274
|
+
identifier = "AAPL"
|
2275
|
+
|
2276
|
+
opts = {
|
2277
|
+
period: 14,
|
2278
|
+
start_date: "2018-01-01",
|
2279
|
+
end_date: "2019-01-01",
|
2280
|
+
page_size: 100,
|
2281
|
+
next_page: nil
|
2385
2282
|
}
|
2386
2283
|
|
2387
|
-
|
2388
|
-
|
2389
|
-
pp result
|
2390
|
-
rescue Intrinio::ApiError => e
|
2391
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mfi: #{e}"
|
2392
|
-
end
|
2284
|
+
result = security_api.get_security_price_technicals_mfi(identifier, opts)
|
2285
|
+
pp result
|
2393
2286
|
```
|
2394
2287
|
|
2395
2288
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2464,27 +2357,23 @@ require 'pp'
|
|
2464
2357
|
# Setup authorization
|
2465
2358
|
Intrinio.configure do |config|
|
2466
2359
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2360
|
+
config.allow_retries = true
|
2467
2361
|
end
|
2468
2362
|
|
2469
2363
|
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
|
2364
|
+
identifier = "AAPL"
|
2365
|
+
|
2366
|
+
opts = {
|
2367
|
+
ema_period: 9,
|
2368
|
+
sum_period: 25,
|
2369
|
+
start_date: "2018-01-01",
|
2370
|
+
end_date: "2019-01-01",
|
2371
|
+
page_size: 100,
|
2372
|
+
next_page: nil
|
2480
2373
|
}
|
2481
2374
|
|
2482
|
-
|
2483
|
-
|
2484
|
-
pp result
|
2485
|
-
rescue Intrinio::ApiError => e
|
2486
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mi: #{e}"
|
2487
|
-
end
|
2375
|
+
result = security_api.get_security_price_technicals_mi(identifier, opts)
|
2376
|
+
pp result
|
2488
2377
|
```
|
2489
2378
|
|
2490
2379
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2560,25 +2449,21 @@ require 'pp'
|
|
2560
2449
|
# Setup authorization
|
2561
2450
|
Intrinio.configure do |config|
|
2562
2451
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2452
|
+
config.allow_retries = true
|
2563
2453
|
end
|
2564
2454
|
|
2565
2455
|
security_api = Intrinio::SecurityApi.new
|
2456
|
+
identifier = "AAPL"
|
2566
2457
|
|
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
|
2458
|
+
opts = {
|
2459
|
+
start_date: "2018-01-01",
|
2460
|
+
end_date: "2019-01-01",
|
2461
|
+
page_size: 100,
|
2462
|
+
next_page: nil
|
2574
2463
|
}
|
2575
2464
|
|
2576
|
-
|
2577
|
-
|
2578
|
-
pp result
|
2579
|
-
rescue Intrinio::ApiError => e
|
2580
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_nvi: #{e}"
|
2581
|
-
end
|
2465
|
+
result = security_api.get_security_price_technicals_nvi(identifier, opts)
|
2466
|
+
pp result
|
2582
2467
|
```
|
2583
2468
|
|
2584
2469
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2652,25 +2537,21 @@ require 'pp'
|
|
2652
2537
|
# Setup authorization
|
2653
2538
|
Intrinio.configure do |config|
|
2654
2539
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2540
|
+
config.allow_retries = true
|
2655
2541
|
end
|
2656
2542
|
|
2657
2543
|
security_api = Intrinio::SecurityApi.new
|
2544
|
+
identifier = "AAPL"
|
2658
2545
|
|
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
|
2546
|
+
opts = {
|
2547
|
+
start_date: "2018-01-01",
|
2548
|
+
end_date: "2019-01-01",
|
2549
|
+
page_size: 100,
|
2550
|
+
next_page: nil
|
2666
2551
|
}
|
2667
2552
|
|
2668
|
-
|
2669
|
-
|
2670
|
-
pp result
|
2671
|
-
rescue Intrinio::ApiError => e
|
2672
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_obv: #{e}"
|
2673
|
-
end
|
2553
|
+
result = security_api.get_security_price_technicals_obv(identifier, opts)
|
2554
|
+
pp result
|
2674
2555
|
```
|
2675
2556
|
|
2676
2557
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2744,26 +2625,22 @@ require 'pp'
|
|
2744
2625
|
# Setup authorization
|
2745
2626
|
Intrinio.configure do |config|
|
2746
2627
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2628
|
+
config.allow_retries = true
|
2747
2629
|
end
|
2748
2630
|
|
2749
2631
|
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
|
2632
|
+
identifier = "AAPL"
|
2633
|
+
|
2634
|
+
opts = {
|
2635
|
+
period: 10,
|
2636
|
+
start_date: "2018-01-01",
|
2637
|
+
end_date: "2019-01-01",
|
2638
|
+
page_size: 100,
|
2639
|
+
next_page: nil
|
2759
2640
|
}
|
2760
2641
|
|
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
|
2642
|
+
result = security_api.get_security_price_technicals_obv_mean(identifier, opts)
|
2643
|
+
pp result
|
2767
2644
|
```
|
2768
2645
|
|
2769
2646
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2838,27 +2715,23 @@ require 'pp'
|
|
2838
2715
|
# Setup authorization
|
2839
2716
|
Intrinio.configure do |config|
|
2840
2717
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2718
|
+
config.allow_retries = true
|
2841
2719
|
end
|
2842
2720
|
|
2843
2721
|
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
|
2722
|
+
identifier = "AAPL"
|
2723
|
+
|
2724
|
+
opts = {
|
2725
|
+
period: 14,
|
2726
|
+
price_key: "close",
|
2727
|
+
start_date: "2018-01-01",
|
2728
|
+
end_date: "2019-01-01",
|
2729
|
+
page_size: 100,
|
2730
|
+
next_page: nil
|
2854
2731
|
}
|
2855
2732
|
|
2856
|
-
|
2857
|
-
|
2858
|
-
pp result
|
2859
|
-
rescue Intrinio::ApiError => e
|
2860
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_rsi: #{e}"
|
2861
|
-
end
|
2733
|
+
result = security_api.get_security_price_technicals_rsi(identifier, opts)
|
2734
|
+
pp result
|
2862
2735
|
```
|
2863
2736
|
|
2864
2737
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2934,27 +2807,23 @@ require 'pp'
|
|
2934
2807
|
# Setup authorization
|
2935
2808
|
Intrinio.configure do |config|
|
2936
2809
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2810
|
+
config.allow_retries = true
|
2937
2811
|
end
|
2938
2812
|
|
2939
2813
|
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
|
2814
|
+
identifier = "AAPL"
|
2815
|
+
|
2816
|
+
opts = {
|
2817
|
+
period: 20,
|
2818
|
+
price_key: "close",
|
2819
|
+
start_date: "2018-01-01",
|
2820
|
+
end_date: "2019-01-01",
|
2821
|
+
page_size: 100,
|
2822
|
+
next_page: nil
|
2950
2823
|
}
|
2951
2824
|
|
2952
|
-
|
2953
|
-
|
2954
|
-
pp result
|
2955
|
-
rescue Intrinio::ApiError => e
|
2956
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sma: #{e}"
|
2957
|
-
end
|
2825
|
+
result = security_api.get_security_price_technicals_sma(identifier, opts)
|
2826
|
+
pp result
|
2958
2827
|
```
|
2959
2828
|
|
2960
2829
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3030,27 +2899,23 @@ require 'pp'
|
|
3030
2899
|
# Setup authorization
|
3031
2900
|
Intrinio.configure do |config|
|
3032
2901
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2902
|
+
config.allow_retries = true
|
3033
2903
|
end
|
3034
2904
|
|
3035
2905
|
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
|
2906
|
+
identifier = "AAPL"
|
2907
|
+
|
2908
|
+
opts = {
|
2909
|
+
period: 14,
|
2910
|
+
signal_period: 3,
|
2911
|
+
start_date: "2018-01-01",
|
2912
|
+
end_date: "2019-01-01",
|
2913
|
+
page_size: 100,
|
2914
|
+
next_page: nil
|
3046
2915
|
}
|
3047
2916
|
|
3048
|
-
|
3049
|
-
|
3050
|
-
pp result
|
3051
|
-
rescue Intrinio::ApiError => e
|
3052
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sr: #{e}"
|
3053
|
-
end
|
2917
|
+
result = security_api.get_security_price_technicals_sr(identifier, opts)
|
2918
|
+
pp result
|
3054
2919
|
```
|
3055
2920
|
|
3056
2921
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3126,26 +2991,22 @@ require 'pp'
|
|
3126
2991
|
# Setup authorization
|
3127
2992
|
Intrinio.configure do |config|
|
3128
2993
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2994
|
+
config.allow_retries = true
|
3129
2995
|
end
|
3130
2996
|
|
3131
2997
|
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
|
2998
|
+
identifier = "AAPL"
|
2999
|
+
|
3000
|
+
opts = {
|
3001
|
+
period: 15,
|
3002
|
+
start_date: "2018-01-01",
|
3003
|
+
end_date: "2019-01-01",
|
3004
|
+
page_size: 100,
|
3005
|
+
next_page: nil
|
3141
3006
|
}
|
3142
3007
|
|
3143
|
-
|
3144
|
-
|
3145
|
-
pp result
|
3146
|
-
rescue Intrinio::ApiError => e
|
3147
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_trix: #{e}"
|
3148
|
-
end
|
3008
|
+
result = security_api.get_security_price_technicals_trix(identifier, opts)
|
3009
|
+
pp result
|
3149
3010
|
```
|
3150
3011
|
|
3151
3012
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3220,28 +3081,24 @@ require 'pp'
|
|
3220
3081
|
# Setup authorization
|
3221
3082
|
Intrinio.configure do |config|
|
3222
3083
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3084
|
+
config.allow_retries = true
|
3223
3085
|
end
|
3224
3086
|
|
3225
3087
|
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
|
3088
|
+
identifier = "AAPL"
|
3089
|
+
|
3090
|
+
opts = {
|
3091
|
+
low_period: 13,
|
3092
|
+
high_period: 25,
|
3093
|
+
price_key: "close",
|
3094
|
+
start_date: "2018-01-01",
|
3095
|
+
end_date: "2019-01-01",
|
3096
|
+
page_size: 100,
|
3097
|
+
next_page: nil
|
3237
3098
|
}
|
3238
3099
|
|
3239
|
-
|
3240
|
-
|
3241
|
-
pp result
|
3242
|
-
rescue Intrinio::ApiError => e
|
3243
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_tsi: #{e}"
|
3244
|
-
end
|
3100
|
+
result = security_api.get_security_price_technicals_tsi(identifier, opts)
|
3101
|
+
pp result
|
3245
3102
|
```
|
3246
3103
|
|
3247
3104
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3318,31 +3175,27 @@ require 'pp'
|
|
3318
3175
|
# Setup authorization
|
3319
3176
|
Intrinio.configure do |config|
|
3320
3177
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3178
|
+
config.allow_retries = true
|
3321
3179
|
end
|
3322
3180
|
|
3323
3181
|
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
|
3182
|
+
identifier = "AAPL"
|
3183
|
+
|
3184
|
+
opts = {
|
3185
|
+
short_period: 7,
|
3186
|
+
medium_period: 14,
|
3187
|
+
long_period: 28,
|
3188
|
+
short_weight: 4.0,
|
3189
|
+
medium_weight: 2.0,
|
3190
|
+
long_weight: 1.0,
|
3191
|
+
start_date: "2018-01-01",
|
3192
|
+
end_date: "2019-01-01",
|
3193
|
+
page_size: 100,
|
3194
|
+
next_page: nil
|
3338
3195
|
}
|
3339
3196
|
|
3340
|
-
|
3341
|
-
|
3342
|
-
pp result
|
3343
|
-
rescue Intrinio::ApiError => e
|
3344
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_uo: #{e}"
|
3345
|
-
end
|
3197
|
+
result = security_api.get_security_price_technicals_uo(identifier, opts)
|
3198
|
+
pp result
|
3346
3199
|
```
|
3347
3200
|
|
3348
3201
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3422,26 +3275,22 @@ require 'pp'
|
|
3422
3275
|
# Setup authorization
|
3423
3276
|
Intrinio.configure do |config|
|
3424
3277
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3278
|
+
config.allow_retries = true
|
3425
3279
|
end
|
3426
3280
|
|
3427
3281
|
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
|
3282
|
+
identifier = "AAPL"
|
3283
|
+
|
3284
|
+
opts = {
|
3285
|
+
period: 14,
|
3286
|
+
start_date: "2018-01-01",
|
3287
|
+
end_date: "2019-01-01",
|
3288
|
+
page_size: 100,
|
3289
|
+
next_page: nil
|
3437
3290
|
}
|
3438
3291
|
|
3439
|
-
|
3440
|
-
|
3441
|
-
pp result
|
3442
|
-
rescue Intrinio::ApiError => e
|
3443
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vi: #{e}"
|
3444
|
-
end
|
3292
|
+
result = security_api.get_security_price_technicals_vi(identifier, opts)
|
3293
|
+
pp result
|
3445
3294
|
```
|
3446
3295
|
|
3447
3296
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3516,25 +3365,21 @@ require 'pp'
|
|
3516
3365
|
# Setup authorization
|
3517
3366
|
Intrinio.configure do |config|
|
3518
3367
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3368
|
+
config.allow_retries = true
|
3519
3369
|
end
|
3520
3370
|
|
3521
3371
|
security_api = Intrinio::SecurityApi.new
|
3372
|
+
identifier = "AAPL"
|
3522
3373
|
|
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
|
3374
|
+
opts = {
|
3375
|
+
start_date: "2018-01-01",
|
3376
|
+
end_date: "2019-01-01",
|
3377
|
+
page_size: 100,
|
3378
|
+
next_page: nil
|
3530
3379
|
}
|
3531
3380
|
|
3532
|
-
|
3533
|
-
|
3534
|
-
pp result
|
3535
|
-
rescue Intrinio::ApiError => e
|
3536
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vpt: #{e}"
|
3537
|
-
end
|
3381
|
+
result = security_api.get_security_price_technicals_vpt(identifier, opts)
|
3382
|
+
pp result
|
3538
3383
|
```
|
3539
3384
|
|
3540
3385
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3608,25 +3453,21 @@ require 'pp'
|
|
3608
3453
|
# Setup authorization
|
3609
3454
|
Intrinio.configure do |config|
|
3610
3455
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3456
|
+
config.allow_retries = true
|
3611
3457
|
end
|
3612
3458
|
|
3613
3459
|
security_api = Intrinio::SecurityApi.new
|
3460
|
+
identifier = "AAPL"
|
3614
3461
|
|
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
|
3462
|
+
opts = {
|
3463
|
+
start_date: "2018-01-01",
|
3464
|
+
end_date: "2019-01-01",
|
3465
|
+
page_size: 100,
|
3466
|
+
next_page: nil
|
3622
3467
|
}
|
3623
3468
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
pp result
|
3627
|
-
rescue Intrinio::ApiError => e
|
3628
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vwap: #{e}"
|
3629
|
-
end
|
3469
|
+
result = security_api.get_security_price_technicals_vwap(identifier, opts)
|
3470
|
+
pp result
|
3630
3471
|
```
|
3631
3472
|
|
3632
3473
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3700,26 +3541,22 @@ require 'pp'
|
|
3700
3541
|
# Setup authorization
|
3701
3542
|
Intrinio.configure do |config|
|
3702
3543
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3544
|
+
config.allow_retries = true
|
3703
3545
|
end
|
3704
3546
|
|
3705
3547
|
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
|
3548
|
+
identifier = "AAPL"
|
3549
|
+
|
3550
|
+
opts = {
|
3551
|
+
period: 14,
|
3552
|
+
start_date: "2018-01-01",
|
3553
|
+
end_date: "2019-01-01",
|
3554
|
+
page_size: 100,
|
3555
|
+
next_page: nil
|
3715
3556
|
}
|
3716
3557
|
|
3717
|
-
|
3718
|
-
|
3719
|
-
pp result
|
3720
|
-
rescue Intrinio::ApiError => e
|
3721
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_wr: #{e}"
|
3722
|
-
end
|
3558
|
+
result = security_api.get_security_price_technicals_wr(identifier, opts)
|
3559
|
+
pp result
|
3723
3560
|
```
|
3724
3561
|
|
3725
3562
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3794,22 +3631,18 @@ require 'pp'
|
|
3794
3631
|
# Setup authorization
|
3795
3632
|
Intrinio.configure do |config|
|
3796
3633
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3634
|
+
config.allow_retries = true
|
3797
3635
|
end
|
3798
3636
|
|
3799
3637
|
security_api = Intrinio::SecurityApi.new
|
3638
|
+
identifier = "AAPL"
|
3800
3639
|
|
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.
|
3640
|
+
opts = {
|
3641
|
+
source: nil
|
3805
3642
|
}
|
3806
3643
|
|
3807
|
-
|
3808
|
-
|
3809
|
-
pp result
|
3810
|
-
rescue Intrinio::ApiError => e
|
3811
|
-
puts "Exception when calling SecurityApi->get_security_realtime_price: #{e}"
|
3812
|
-
end
|
3644
|
+
result = security_api.get_security_realtime_price(identifier, opts)
|
3645
|
+
pp result
|
3813
3646
|
```
|
3814
3647
|
|
3815
3648
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3880,25 +3713,21 @@ require 'pp'
|
|
3880
3713
|
# Setup authorization
|
3881
3714
|
Intrinio.configure do |config|
|
3882
3715
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3716
|
+
config.allow_retries = true
|
3883
3717
|
end
|
3884
3718
|
|
3885
3719
|
security_api = Intrinio::SecurityApi.new
|
3720
|
+
identifier = "AAPL"
|
3886
3721
|
|
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
|
3722
|
+
opts = {
|
3723
|
+
start_date: Date.parse("2018-01-01"),
|
3724
|
+
end_date: Date.parse("2019-01-01"),
|
3725
|
+
page_size: 100,
|
3726
|
+
next_page: nil
|
3894
3727
|
}
|
3895
3728
|
|
3896
|
-
|
3897
|
-
|
3898
|
-
pp result
|
3899
|
-
rescue Intrinio::ApiError => e
|
3900
|
-
puts "Exception when calling SecurityApi->get_security_stock_price_adjustments: #{e}"
|
3901
|
-
end
|
3729
|
+
result = security_api.get_security_stock_price_adjustments(identifier, opts)
|
3730
|
+
pp result
|
3902
3731
|
```
|
3903
3732
|
|
3904
3733
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3972,26 +3801,22 @@ require 'pp'
|
|
3972
3801
|
# Setup authorization
|
3973
3802
|
Intrinio.configure do |config|
|
3974
3803
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3804
|
+
config.allow_retries = true
|
3975
3805
|
end
|
3976
3806
|
|
3977
3807
|
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
|
3808
|
+
identifier = "AAPL"
|
3809
|
+
|
3810
|
+
opts = {
|
3811
|
+
start_date: Date.parse("2018-01-01"),
|
3812
|
+
end_date: Date.parse("2019-01-01"),
|
3813
|
+
frequency: "daily",
|
3814
|
+
page_size: 100,
|
3815
|
+
next_page: nil
|
3987
3816
|
}
|
3988
3817
|
|
3989
|
-
|
3990
|
-
|
3991
|
-
pp result
|
3992
|
-
rescue Intrinio::ApiError => e
|
3993
|
-
puts "Exception when calling SecurityApi->get_security_stock_prices: #{e}"
|
3994
|
-
end
|
3818
|
+
result = security_api.get_security_stock_prices(identifier, opts)
|
3819
|
+
pp result
|
3995
3820
|
```
|
3996
3821
|
|
3997
3822
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4066,38 +3891,34 @@ require 'pp'
|
|
4066
3891
|
# Setup authorization
|
4067
3892
|
Intrinio.configure do |config|
|
4068
3893
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3894
|
+
config.allow_retries = true
|
4069
3895
|
end
|
4070
3896
|
|
4071
3897
|
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
|
3898
|
+
identifier = "AAPL"
|
3899
|
+
|
3900
|
+
opts = {
|
3901
|
+
start_date: nil,
|
3902
|
+
end_date: nil,
|
3903
|
+
mean_greater: nil,
|
3904
|
+
mean_less: nil,
|
3905
|
+
strong_buys_greater: nil,
|
3906
|
+
strong_buys_less: nil,
|
3907
|
+
buys_greater: nil,
|
3908
|
+
buys_less: nil,
|
3909
|
+
holds_greater: nil,
|
3910
|
+
holds_less: nil,
|
3911
|
+
sells_greater: nil,
|
3912
|
+
sells_less: nil,
|
3913
|
+
strong_sells_greater: nil,
|
3914
|
+
strong_sells_less: nil,
|
3915
|
+
total_greater: nil,
|
3916
|
+
total_less: nil,
|
3917
|
+
page_size: 100
|
4093
3918
|
}
|
4094
3919
|
|
4095
|
-
|
4096
|
-
|
4097
|
-
pp result
|
4098
|
-
rescue Intrinio::ApiError => e
|
4099
|
-
puts "Exception when calling SecurityApi->get_security_zacks_analyst_ratings: #{e}"
|
4100
|
-
end
|
3920
|
+
result = security_api.get_security_zacks_analyst_ratings(identifier, opts)
|
3921
|
+
pp result
|
4101
3922
|
```
|
4102
3923
|
|
4103
3924
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4184,22 +4005,18 @@ require 'pp'
|
|
4184
4005
|
# Setup authorization
|
4185
4006
|
Intrinio.configure do |config|
|
4186
4007
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4008
|
+
config.allow_retries = true
|
4187
4009
|
end
|
4188
4010
|
|
4189
4011
|
security_api = Intrinio::SecurityApi.new
|
4012
|
+
identifier = "AAPL"
|
4190
4013
|
|
4191
|
-
|
4192
|
-
|
4193
|
-
opts = {
|
4194
|
-
date: nil # String | Lookup a historical snapshot on the given date
|
4014
|
+
opts = {
|
4015
|
+
date: nil
|
4195
4016
|
}
|
4196
4017
|
|
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
|
4018
|
+
result = security_api.get_security_zacks_analyst_ratings_snapshot(identifier, opts)
|
4019
|
+
pp result
|
4203
4020
|
```
|
4204
4021
|
|
4205
4022
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4270,23 +4087,19 @@ require 'pp'
|
|
4270
4087
|
# Setup authorization
|
4271
4088
|
Intrinio.configure do |config|
|
4272
4089
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4090
|
+
config.allow_retries = true
|
4273
4091
|
end
|
4274
4092
|
|
4275
4093
|
security_api = Intrinio::SecurityApi.new
|
4094
|
+
identifier = "AAPL"
|
4276
4095
|
|
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
|
4096
|
+
opts = {
|
4097
|
+
page_size: 100,
|
4098
|
+
next_page: nil
|
4282
4099
|
}
|
4283
4100
|
|
4284
|
-
|
4285
|
-
|
4286
|
-
pp result
|
4287
|
-
rescue Intrinio::ApiError => e
|
4288
|
-
puts "Exception when calling SecurityApi->get_security_zacks_eps_surprises: #{e}"
|
4289
|
-
end
|
4101
|
+
result = security_api.get_security_zacks_eps_surprises(identifier, opts)
|
4102
|
+
pp result
|
4290
4103
|
```
|
4291
4104
|
|
4292
4105
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4358,23 +4171,19 @@ require 'pp'
|
|
4358
4171
|
# Setup authorization
|
4359
4172
|
Intrinio.configure do |config|
|
4360
4173
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4174
|
+
config.allow_retries = true
|
4361
4175
|
end
|
4362
4176
|
|
4363
4177
|
security_api = Intrinio::SecurityApi.new
|
4178
|
+
identifier = "AAPL"
|
4364
4179
|
|
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
|
4180
|
+
opts = {
|
4181
|
+
page_size: 100,
|
4182
|
+
next_page: nil
|
4370
4183
|
}
|
4371
4184
|
|
4372
|
-
|
4373
|
-
|
4374
|
-
pp result
|
4375
|
-
rescue Intrinio::ApiError => e
|
4376
|
-
puts "Exception when calling SecurityApi->get_security_zacks_sales_surprises: #{e}"
|
4377
|
-
end
|
4185
|
+
result = security_api.get_security_zacks_sales_surprises(identifier, opts)
|
4186
|
+
pp result
|
4378
4187
|
```
|
4379
4188
|
|
4380
4189
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4446,24 +4255,34 @@ require 'pp'
|
|
4446
4255
|
# Setup authorization
|
4447
4256
|
Intrinio.configure do |config|
|
4448
4257
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4258
|
+
config.allow_retries = true
|
4449
4259
|
end
|
4450
4260
|
|
4451
4261
|
security_api = Intrinio::SecurityApi.new
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4262
|
+
clauses = [
|
4263
|
+
{
|
4264
|
+
"field": "marketcap",
|
4265
|
+
"operator": "gt",
|
4266
|
+
"value": "10000000"
|
4267
|
+
},
|
4268
|
+
{
|
4269
|
+
"field": "beta",
|
4270
|
+
"operator": "lt",
|
4271
|
+
"value": "5"
|
4272
|
+
}
|
4273
|
+
]
|
4274
|
+
|
4275
|
+
|
4276
|
+
opts = {
|
4277
|
+
logic: Intrinio::SecurityScreenGroup.new(operator: "AND", clauses: clauses),
|
4278
|
+
order_column: "marketcap",
|
4279
|
+
order_direction: "asc",
|
4280
|
+
primary_only: false,
|
4281
|
+
page_size: 100
|
4459
4282
|
}
|
4460
4283
|
|
4461
|
-
|
4462
|
-
|
4463
|
-
pp result
|
4464
|
-
rescue Intrinio::ApiError => e
|
4465
|
-
puts "Exception when calling SecurityApi->screen_securities: #{e}"
|
4466
|
-
end
|
4284
|
+
result = security_api.screen_securities(opts)
|
4285
|
+
pp result
|
4467
4286
|
```
|
4468
4287
|
|
4469
4288
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4537,22 +4356,18 @@ require 'pp'
|
|
4537
4356
|
# Setup authorization
|
4538
4357
|
Intrinio.configure do |config|
|
4539
4358
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4359
|
+
config.allow_retries = true
|
4540
4360
|
end
|
4541
4361
|
|
4542
4362
|
security_api = Intrinio::SecurityApi.new
|
4363
|
+
query = "Apple"
|
4543
4364
|
|
4544
|
-
|
4545
|
-
|
4546
|
-
opts = {
|
4547
|
-
page_size: 100 # Integer | The number of results to return
|
4365
|
+
opts = {
|
4366
|
+
page_size: 100
|
4548
4367
|
}
|
4549
4368
|
|
4550
|
-
|
4551
|
-
|
4552
|
-
pp result
|
4553
|
-
rescue Intrinio::ApiError => e
|
4554
|
-
puts "Exception when calling SecurityApi->search_securities: #{e}"
|
4555
|
-
end
|
4369
|
+
result = security_api.search_securities(query, opts)
|
4370
|
+
pp result
|
4556
4371
|
```
|
4557
4372
|
|
4558
4373
|
[//]: # (END_CODE_EXAMPLE)
|