intrinio-sdk 5.6.1 → 5.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +2 -0
- data/README.md +51 -12
- data/docs/ApiResponseCompanyInsiderTransactionFilings.md +28 -0
- data/docs/ApiResponseInsiderTransactionFilings.md +32 -0
- data/docs/ApiResponseOptionsChainRealtime.md +23 -0
- data/docs/ApiResponseOptionsPriceRealtime.md +31 -0
- data/docs/ApiResponseOptionsStatsRealtime.md +31 -0
- data/docs/ApiResponseOwnerInsiderTransactionFilings.md +28 -0
- data/docs/ApiResponseOwnerInstitutionalHoldings.md +21 -0
- data/docs/ApiResponseOwners.md +24 -0
- data/docs/ApiResponseSecurityInstitutionalOwnership.md +24 -0
- data/docs/ApiResponseSecurityIntervalPrices.md +29 -0
- data/docs/BulkDownloadsApi.md +3 -7
- data/docs/CompanyApi.md +296 -171
- 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/InsiderTransaction.md +44 -0
- data/docs/InsiderTransactionFiling.md +32 -0
- data/docs/InsiderTransactionFilingsApi.md +95 -0
- data/docs/InstitutionalHolding.md +34 -0
- data/docs/InstitutionalOwnership.md +29 -0
- data/docs/MunicipalityApi.md +28 -39
- data/docs/OptionChainRealtime.md +31 -0
- data/docs/OptionFactorsRealtime.md +25 -0
- data/docs/OptionPriceRealtime.md +31 -0
- data/docs/OptionRealtime.md +24 -0
- data/docs/OptionStatsRealtime.md +24 -0
- data/docs/OptionsApi.md +314 -62
- data/docs/Owner.md +32 -0
- data/docs/OwnerSummary.md +21 -0
- data/docs/OwnersApi.md +434 -0
- data/docs/RealtimeStockPrice.md +2 -0
- data/docs/SecurityApi.md +715 -721
- data/docs/SecuritySummary.md +1 -0
- data/docs/StockExchangeApi.md +43 -67
- data/docs/StockPrice.md +7 -0
- data/docs/StockPriceInterval.md +25 -0
- data/docs/TechnicalApi.md +359 -483
- data/docs/ZacksApi.md +132 -165
- data/intrinio-sdk.gemspec +3 -2
- data/lib/intrinio-sdk.rb +25 -1
- data/lib/intrinio-sdk/api/bulk_downloads_api.rb +1 -1
- data/lib/intrinio-sdk/api/company_api.rb +148 -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/insider_transaction_filings_api.rb +86 -0
- data/lib/intrinio-sdk/api/municipality_api.rb +3 -3
- data/lib/intrinio-sdk/api/options_api.rb +217 -1
- data/lib/intrinio-sdk/api/owners_api.rb +338 -0
- data/lib/intrinio-sdk/api/security_api.rb +157 -15
- data/lib/intrinio-sdk/api/stock_exchange_api.rb +3 -3
- data/lib/intrinio-sdk/api/technical_api.rb +1 -1
- data/lib/intrinio-sdk/api/zacks_api.rb +1 -1
- data/lib/intrinio-sdk/api_client.rb +56 -24
- data/lib/intrinio-sdk/api_error.rb +1 -1
- data/lib/intrinio-sdk/configuration.rb +4 -1
- data/lib/intrinio-sdk/models/accumulation_distribution_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_bulk_download_links.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_companies_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_filings.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_fundamentals.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_company_insider_transaction_filings.rb +210 -0
- 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_insider_transaction_filings.rb +220 -0
- data/lib/intrinio-sdk/models/api_response_municipalities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_municipalitiy_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_news.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_option_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options_chain.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options_chain_realtime.rb +191 -0
- data/lib/intrinio-sdk/models/api_response_options_expirations.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_options_price_realtime.rb +206 -0
- data/lib/intrinio-sdk/models/api_response_options_stats_realtime.rb +206 -0
- data/lib/intrinio-sdk/models/api_response_owner_insider_transaction_filings.rb +210 -0
- data/lib/intrinio-sdk/models/api_response_owner_institutional_holdings.rb +198 -0
- data/lib/intrinio-sdk/models/api_response_owners.rb +201 -0
- data/lib/intrinio-sdk/models/api_response_reported_financials.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_securities_search.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_accumulation_distribution_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_average_daily_trading_volume.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_average_directional_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_average_true_range.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_awesome_oscillator.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_bollinger_bands.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_chaikin_money_flow.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_commodity_channel_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_detrended_price_oscillator.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_donchian_channel.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_ease_of_movement.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_force_index.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_historical_data.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_ichimoku_kinko_hyo.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_institutional_ownership.rb +200 -0
- data/lib/intrinio-sdk/models/api_response_security_interval_prices.rb +254 -0
- data/lib/intrinio-sdk/models/api_response_security_intraday_prices.rb +1 -1
- data/lib/intrinio-sdk/models/api_response_security_keltner_channel.rb +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/insider_transaction.rb +369 -0
- data/lib/intrinio-sdk/models/insider_transaction_filing.rb +221 -0
- data/lib/intrinio-sdk/models/institutional_holding.rb +329 -0
- data/lib/intrinio-sdk/models/institutional_ownership.rb +279 -0
- data/lib/intrinio-sdk/models/intraday_stock_price.rb +1 -1
- data/lib/intrinio-sdk/models/keltner_channel_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/know_sure_thing_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/mass_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/money_flow_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/moving_average_convergence_divergence_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/municipality.rb +1 -1
- data/lib/intrinio-sdk/models/municipality_financial.rb +1 -1
- data/lib/intrinio-sdk/models/negative_volume_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/on_balance_volume_mean_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/on_balance_volume_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/option.rb +1 -1
- data/lib/intrinio-sdk/models/option_chain.rb +1 -1
- data/lib/intrinio-sdk/models/option_chain_realtime.rb +206 -0
- data/lib/intrinio-sdk/models/option_factors_realtime.rb +239 -0
- data/lib/intrinio-sdk/models/option_price.rb +1 -1
- data/lib/intrinio-sdk/models/option_price_realtime.rb +332 -0
- data/lib/intrinio-sdk/models/option_realtime.rb +262 -0
- data/lib/intrinio-sdk/models/option_stats_realtime.rb +229 -0
- data/lib/intrinio-sdk/models/owner.rb +309 -0
- data/lib/intrinio-sdk/models/owner_summary.rb +199 -0
- data/lib/intrinio-sdk/models/realtime_stock_price.rb +22 -2
- data/lib/intrinio-sdk/models/realtime_stock_price_security.rb +1 -1
- data/lib/intrinio-sdk/models/relative_strength_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/reported_financial.rb +1 -1
- data/lib/intrinio-sdk/models/reported_financial_dimension.rb +1 -1
- data/lib/intrinio-sdk/models/reported_tag.rb +1 -1
- data/lib/intrinio-sdk/models/security.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_clause.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_group.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result.rb +1 -1
- data/lib/intrinio-sdk/models/security_screen_result_data.rb +1 -1
- data/lib/intrinio-sdk/models/security_summary.rb +15 -5
- data/lib/intrinio-sdk/models/sic_index.rb +1 -1
- data/lib/intrinio-sdk/models/simple_moving_average_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/standardized_financial.rb +1 -1
- data/lib/intrinio-sdk/models/stochastic_oscillator_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/stock_exchange.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index.rb +1 -1
- data/lib/intrinio-sdk/models/stock_market_index_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price.rb +72 -2
- data/lib/intrinio-sdk/models/stock_price_adjustment.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_adjustment_summary.rb +1 -1
- data/lib/intrinio-sdk/models/stock_price_interval.rb +239 -0
- data/lib/intrinio-sdk/models/stock_price_summary.rb +1 -1
- data/lib/intrinio-sdk/models/technical_indicator.rb +1 -1
- data/lib/intrinio-sdk/models/triple_exponential_average_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/true_strength_index_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/ultimate_oscillator_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/volume_price_trend_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/volume_weighted_average_price_value.rb +1 -1
- data/lib/intrinio-sdk/models/vortex_indicator_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/williams_r_technical_value.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_analyst_rating.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_analyst_rating_snapshot.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_analyst_rating_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_estimate.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_growth_rate.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_surprise.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_eps_surprise_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_etf_holding.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_company_detail.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_company_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_historical_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_owner_detail.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_institutional_holding_owner_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_long_term_growth_rate.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_sales_surprise.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_sales_surprise_summary.rb +1 -1
- data/lib/intrinio-sdk/models/zacks_target_price_consensus.rb +1 -1
- data/lib/intrinio-sdk/version.rb +2 -2
- data/spec/api/bulk_downloads_api_spec.rb +1 -1
- data/spec/api/company_api_spec.rb +36 -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/insider_transaction_filings_api_spec.rb +50 -0
- data/spec/api/municipality_api_spec.rb +2 -2
- data/spec/api/options_api_spec.rb +50 -1
- data/spec/api/owners_api_spec.rb +107 -0
- data/spec/api/security_api_spec.rb +41 -7
- data/spec/api/stock_exchange_api_spec.rb +1 -1
- data/spec/api/technical_api_spec.rb +1 -1
- data/spec/api/zacks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/accumulation_distribution_index_technical_value_spec.rb +1 -1
- data/spec/models/api_response_bulk_download_links_spec.rb +1 -1
- data/spec/models/api_response_companies_search_spec.rb +1 -1
- data/spec/models/api_response_companies_spec.rb +1 -1
- data/spec/models/api_response_company_filings_spec.rb +1 -1
- data/spec/models/api_response_company_fundamentals_spec.rb +1 -1
- data/spec/models/api_response_company_historical_data_spec.rb +1 -1
- data/spec/models/api_response_company_insider_transaction_filings_spec.rb +54 -0
- 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_insider_transaction_filings_spec.rb +60 -0
- data/spec/models/api_response_municipalities_spec.rb +1 -1
- data/spec/models/api_response_municipalitiy_financials_spec.rb +1 -1
- data/spec/models/api_response_news_spec.rb +1 -1
- data/spec/models/api_response_option_prices_spec.rb +1 -1
- data/spec/models/api_response_options_chain_realtime_spec.rb +42 -0
- data/spec/models/api_response_options_chain_spec.rb +1 -1
- data/spec/models/api_response_options_expirations_spec.rb +1 -1
- data/spec/models/api_response_options_price_realtime_spec.rb +54 -0
- data/spec/models/api_response_options_spec.rb +1 -1
- data/spec/models/api_response_options_stats_realtime_spec.rb +54 -0
- data/spec/models/api_response_owner_insider_transaction_filings_spec.rb +54 -0
- data/spec/models/api_response_owner_institutional_holdings_spec.rb +48 -0
- data/spec/models/api_response_owners_spec.rb +48 -0
- data/spec/models/api_response_reported_financials_spec.rb +1 -1
- data/spec/models/api_response_securities_search_spec.rb +1 -1
- data/spec/models/api_response_securities_spec.rb +1 -1
- data/spec/models/api_response_security_accumulation_distribution_index_spec.rb +1 -1
- data/spec/models/api_response_security_average_daily_trading_volume_spec.rb +1 -1
- data/spec/models/api_response_security_average_directional_index_spec.rb +1 -1
- data/spec/models/api_response_security_average_true_range_spec.rb +1 -1
- data/spec/models/api_response_security_awesome_oscillator_spec.rb +1 -1
- data/spec/models/api_response_security_bollinger_bands_spec.rb +1 -1
- data/spec/models/api_response_security_chaikin_money_flow_spec.rb +1 -1
- data/spec/models/api_response_security_commodity_channel_index_spec.rb +1 -1
- data/spec/models/api_response_security_detrended_price_oscillator_spec.rb +1 -1
- data/spec/models/api_response_security_donchian_channel_spec.rb +1 -1
- data/spec/models/api_response_security_ease_of_movement_spec.rb +1 -1
- data/spec/models/api_response_security_force_index_spec.rb +1 -1
- data/spec/models/api_response_security_historical_data_spec.rb +1 -1
- data/spec/models/api_response_security_ichimoku_kinko_hyo_spec.rb +1 -1
- data/spec/models/api_response_security_institutional_ownership_spec.rb +48 -0
- data/spec/models/api_response_security_interval_prices_spec.rb +64 -0
- 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/insider_transaction_filing_spec.rb +60 -0
- data/spec/models/insider_transaction_spec.rb +150 -0
- data/spec/models/institutional_holding_spec.rb +126 -0
- data/spec/models/institutional_ownership_spec.rb +96 -0
- data/spec/models/intraday_stock_price_spec.rb +1 -1
- data/spec/models/keltner_channel_technical_value_spec.rb +1 -1
- data/spec/models/know_sure_thing_technical_value_spec.rb +1 -1
- data/spec/models/mass_index_technical_value_spec.rb +1 -1
- data/spec/models/money_flow_index_technical_value_spec.rb +1 -1
- data/spec/models/moving_average_convergence_divergence_technical_value_spec.rb +1 -1
- data/spec/models/municipality_financial_spec.rb +1 -1
- data/spec/models/municipality_spec.rb +1 -1
- data/spec/models/negative_volume_index_technical_value_spec.rb +1 -1
- data/spec/models/on_balance_volume_mean_technical_value_spec.rb +1 -1
- data/spec/models/on_balance_volume_technical_value_spec.rb +1 -1
- data/spec/models/option_chain_realtime_spec.rb +54 -0
- data/spec/models/option_chain_spec.rb +1 -1
- data/spec/models/option_factors_realtime_spec.rb +72 -0
- data/spec/models/option_price_realtime_spec.rb +112 -0
- data/spec/models/option_price_spec.rb +1 -1
- data/spec/models/option_realtime_spec.rb +70 -0
- data/spec/models/option_spec.rb +1 -1
- data/spec/models/option_stats_realtime_spec.rb +66 -0
- data/spec/models/owner_spec.rb +114 -0
- data/spec/models/owner_summary_spec.rb +48 -0
- data/spec/models/realtime_stock_price_security_spec.rb +1 -1
- data/spec/models/realtime_stock_price_spec.rb +13 -1
- data/spec/models/relative_strength_index_technical_value_spec.rb +1 -1
- data/spec/models/reported_financial_dimension_spec.rb +1 -1
- data/spec/models/reported_financial_spec.rb +1 -1
- data/spec/models/reported_tag_spec.rb +1 -1
- data/spec/models/security_screen_clause_spec.rb +1 -1
- data/spec/models/security_screen_group_spec.rb +1 -1
- data/spec/models/security_screen_result_data_spec.rb +1 -1
- data/spec/models/security_screen_result_spec.rb +1 -1
- data/spec/models/security_spec.rb +1 -1
- data/spec/models/security_summary_spec.rb +7 -1
- data/spec/models/sic_index_spec.rb +1 -1
- data/spec/models/simple_moving_average_technical_value_spec.rb +1 -1
- data/spec/models/standardized_financial_spec.rb +1 -1
- data/spec/models/stochastic_oscillator_technical_value_spec.rb +1 -1
- data/spec/models/stock_exchange_spec.rb +1 -1
- data/spec/models/stock_market_index_spec.rb +1 -1
- data/spec/models/stock_market_index_summary_spec.rb +1 -1
- data/spec/models/stock_price_adjustment_spec.rb +1 -1
- data/spec/models/stock_price_adjustment_summary_spec.rb +1 -1
- data/spec/models/stock_price_interval_spec.rb +72 -0
- data/spec/models/stock_price_spec.rb +43 -1
- data/spec/models/stock_price_summary_spec.rb +1 -1
- data/spec/models/technical_indicator_spec.rb +1 -1
- data/spec/models/triple_exponential_average_technical_value_spec.rb +1 -1
- data/spec/models/true_strength_index_technical_value_spec.rb +1 -1
- data/spec/models/ultimate_oscillator_technical_value_spec.rb +1 -1
- data/spec/models/volume_price_trend_technical_value_spec.rb +1 -1
- data/spec/models/volume_weighted_average_price_value_spec.rb +1 -1
- data/spec/models/vortex_indicator_technical_value_spec.rb +1 -1
- data/spec/models/williams_r_technical_value_spec.rb +1 -1
- data/spec/models/zacks_analyst_rating_snapshot_spec.rb +1 -1
- data/spec/models/zacks_analyst_rating_spec.rb +1 -1
- data/spec/models/zacks_analyst_rating_summary_spec.rb +1 -1
- data/spec/models/zacks_eps_estimate_spec.rb +1 -1
- data/spec/models/zacks_eps_growth_rate_spec.rb +1 -1
- data/spec/models/zacks_eps_surprise_spec.rb +1 -1
- data/spec/models/zacks_eps_surprise_summary_spec.rb +1 -1
- data/spec/models/zacks_etf_holding_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_company_detail_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_company_summary_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_historical_summary_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_owner_detail_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_owner_summary_spec.rb +1 -1
- data/spec/models/zacks_institutional_holding_spec.rb +1 -1
- data/spec/models/zacks_long_term_growth_rate_spec.rb +1 -1
- data/spec/models/zacks_sales_surprise_spec.rb +1 -1
- data/spec/models/zacks_sales_surprise_summary_spec.rb +1 -1
- data/spec/models/zacks_target_price_consensus_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +122 -7
data/docs/RealtimeStockPrice.md
CHANGED
@@ -14,11 +14,13 @@ Name | Type | Description
|
|
14
14
|
------------ | ------------- | -------------
|
15
15
|
**last_price** | Float | The price of the last trade.
|
16
16
|
**last_time** | DateTime | The date and time when the last trade occurred.
|
17
|
+
**last_size** | Float | The size of the last trade.
|
17
18
|
**bid_price** | Float | The price of the top bid order.
|
18
19
|
**bid_size** | Float | The size of the top bid order.
|
19
20
|
**ask_price** | Float | The price of the top ask order.
|
20
21
|
**ask_size** | Float | The size of the top ask order.
|
21
22
|
**open_price** | Float | The price at the open of the trading day.
|
23
|
+
**close_price** | Float | The price at the close of the trading day.
|
22
24
|
**high_price** | Float | The high price for the trading day.
|
23
25
|
**low_price** | Float | The low price for the trading day.
|
24
26
|
**exchange_volume** | Float | The number of shares exchanged during the trading day on the exchange.
|
data/docs/SecurityApi.md
CHANGED
@@ -9,9 +9,11 @@ Method | HTTP request | Description
|
|
9
9
|
[**get_security_data_point_number**](SecurityApi.md#get_security_data_point_number) | **GET** /securities/{identifier}/data_point/{tag}/number | Data Point (Number) for Security
|
10
10
|
[**get_security_data_point_text**](SecurityApi.md#get_security_data_point_text) | **GET** /securities/{identifier}/data_point/{tag}/text | Data Point (Text) for Security
|
11
11
|
[**get_security_historical_data**](SecurityApi.md#get_security_historical_data) | **GET** /securities/{identifier}/historical_data/{tag} | Historical Data for Security
|
12
|
+
[**get_security_insider_ownership**](SecurityApi.md#get_security_insider_ownership) | **GET** /securities/{identifier}/institutional_ownership | Institutional Ownership by Security
|
13
|
+
[**get_security_interval_prices**](SecurityApi.md#get_security_interval_prices) | **GET** /securities/{identifier}/prices/intervals | Interval Stock Prices for Security
|
12
14
|
[**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 |
|
15
|
+
[**get_security_latest_dividend_record**](SecurityApi.md#get_security_latest_dividend_record) | **GET** /securities/{identifier}/dividends/latest | Latest Dividend Record for Security
|
16
|
+
[**get_security_latest_earnings_record**](SecurityApi.md#get_security_latest_earnings_record) | **GET** /securities/{identifier}/earnings/latest | Latest Earnings Record for Security
|
15
17
|
[**get_security_price_technicals_adi**](SecurityApi.md#get_security_price_technicals_adi) | **GET** /securities/{identifier}/prices/technicals/adi | Accumulation/Distribution Index
|
16
18
|
[**get_security_price_technicals_adtv**](SecurityApi.md#get_security_price_technicals_adtv) | **GET** /securities/{identifier}/prices/technicals/adtv | Average Daily Trading Volume
|
17
19
|
[**get_security_price_technicals_adx**](SecurityApi.md#get_security_price_technicals_adx) | **GET** /securities/{identifier}/prices/technicals/adx | Average Directional Index
|
@@ -100,37 +102,35 @@ require 'pp'
|
|
100
102
|
# Setup authorization
|
101
103
|
Intrinio.configure do |config|
|
102
104
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
105
|
+
config.allow_retries = true
|
103
106
|
end
|
104
107
|
|
105
108
|
security_api = Intrinio::SecurityApi.new
|
106
109
|
|
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
|
-
|
110
|
+
opts = {
|
111
|
+
active: true,
|
112
|
+
delisted: false,
|
113
|
+
code: nil,
|
114
|
+
currency: nil,
|
115
|
+
ticker: nil,
|
116
|
+
name: nil,
|
117
|
+
composite_mic: nil,
|
118
|
+
exchange_mic: nil,
|
119
|
+
stock_prices_after: nil,
|
120
|
+
stock_prices_before: nil,
|
121
|
+
cik: nil,
|
122
|
+
figi: nil,
|
123
|
+
composite_figi: nil,
|
124
|
+
share_class_figi: nil,
|
125
|
+
figi_unique_id: nil,
|
126
|
+
include_non_figi: false,
|
127
|
+
page_size: 100,
|
128
|
+
primary_listing: nil,
|
129
|
+
next_page: nil
|
126
130
|
}
|
127
131
|
|
128
|
-
|
129
|
-
|
130
|
-
pp result
|
131
|
-
rescue Intrinio::ApiError => e
|
132
|
-
puts "Exception when calling SecurityApi->get_all_securities: #{e}"
|
133
|
-
end
|
132
|
+
result = security_api.get_all_securities(opts)
|
133
|
+
pp result
|
134
134
|
```
|
135
135
|
|
136
136
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -161,6 +161,7 @@ Name | Type | Description | Notes
|
|
161
161
|
**figi_unique_id** | String| Return securities with the given FIGI Unique ID (<a href=\"https://www.openfigi.com/about\" target=\"_blank\">reference</a>). | [optional]
|
162
162
|
**include_non_figi** | BOOLEAN| When true, include securities that do not have a FIGI. By default, this is false. If this parameter is not specified, only securities with a FIGI are returned. | [optional] [default to false]
|
163
163
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
164
|
+
**primary_listing** | BOOLEAN| If true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange. Returns both if omitted. | [optional]
|
164
165
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
165
166
|
|
166
167
|
[//]: # (END_PARAMETERS)
|
@@ -217,19 +218,14 @@ require 'pp'
|
|
217
218
|
# Setup authorization
|
218
219
|
Intrinio.configure do |config|
|
219
220
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
221
|
+
config.allow_retries = true
|
220
222
|
end
|
221
223
|
|
222
224
|
security_api = Intrinio::SecurityApi.new
|
225
|
+
identifier = "AAPL"
|
223
226
|
|
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
|
227
|
+
result = security_api.get_security_by_id(identifier)
|
228
|
+
pp result
|
233
229
|
```
|
234
230
|
|
235
231
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -299,21 +295,15 @@ require 'pp'
|
|
299
295
|
# Setup authorization
|
300
296
|
Intrinio.configure do |config|
|
301
297
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
298
|
+
config.allow_retries = true
|
302
299
|
end
|
303
300
|
|
304
301
|
security_api = Intrinio::SecurityApi.new
|
302
|
+
identifier = "AAPL"
|
303
|
+
tag = "close_price"
|
305
304
|
|
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
|
305
|
+
result = security_api.get_security_data_point_number(identifier, tag)
|
306
|
+
pp result
|
317
307
|
```
|
318
308
|
|
319
309
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -384,21 +374,15 @@ require 'pp'
|
|
384
374
|
# Setup authorization
|
385
375
|
Intrinio.configure do |config|
|
386
376
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
377
|
+
config.allow_retries = true
|
387
378
|
end
|
388
379
|
|
389
380
|
security_api = Intrinio::SecurityApi.new
|
381
|
+
identifier = "AAPL"
|
382
|
+
tag = "figi"
|
390
383
|
|
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
|
384
|
+
result = security_api.get_security_data_point_text(identifier, tag)
|
385
|
+
pp result
|
402
386
|
```
|
403
387
|
|
404
388
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -469,30 +453,25 @@ require 'pp'
|
|
469
453
|
# Setup authorization
|
470
454
|
Intrinio.configure do |config|
|
471
455
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
456
|
+
config.allow_retries = true
|
472
457
|
end
|
473
458
|
|
474
459
|
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
|
460
|
+
identifier = "AAPL"
|
461
|
+
tag = "adj_close_price"
|
462
|
+
|
463
|
+
opts = {
|
464
|
+
frequency: "daily",
|
465
|
+
type: nil,
|
466
|
+
start_date: Date.parse("2018-01-01"),
|
467
|
+
end_date: nil,
|
468
|
+
sort_order: "desc",
|
469
|
+
page_size: 100,
|
470
|
+
next_page: nil
|
488
471
|
}
|
489
472
|
|
490
|
-
|
491
|
-
|
492
|
-
pp result
|
493
|
-
rescue Intrinio::ApiError => e
|
494
|
-
puts "Exception when calling SecurityApi->get_security_historical_data: #{e}"
|
495
|
-
end
|
473
|
+
result = security_api.get_security_historical_data(identifier, tag, opts)
|
474
|
+
pp result
|
496
475
|
```
|
497
476
|
|
498
477
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -525,6 +504,181 @@ Name | Type | Description | Notes
|
|
525
504
|
[//]: # (END_OPERATION)
|
526
505
|
|
527
506
|
|
507
|
+
[//]: # (START_OPERATION)
|
508
|
+
|
509
|
+
[//]: # (CLASS:Intrinio::SecurityApi)
|
510
|
+
|
511
|
+
[//]: # (METHOD:get_security_insider_ownership)
|
512
|
+
|
513
|
+
[//]: # (RETURN_TYPE:Intrinio::ApiResponseSecurityInstitutionalOwnership)
|
514
|
+
|
515
|
+
[//]: # (RETURN_TYPE_KIND:object)
|
516
|
+
|
517
|
+
[//]: # (RETURN_TYPE_DOC:ApiResponseSecurityInstitutionalOwnership.md)
|
518
|
+
|
519
|
+
[//]: # (OPERATION:get_security_insider_ownership_v2)
|
520
|
+
|
521
|
+
[//]: # (ENDPOINT:/securities/{identifier}/institutional_ownership)
|
522
|
+
|
523
|
+
[//]: # (DOCUMENT_LINK:SecurityApi.md#get_security_insider_ownership)
|
524
|
+
|
525
|
+
## **get_security_insider_ownership**
|
526
|
+
|
527
|
+
[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/ruby/get_security_insider_ownership_v2)
|
528
|
+
|
529
|
+
[//]: # (START_OVERVIEW)
|
530
|
+
|
531
|
+
> ApiResponseSecurityInstitutionalOwnership get_security_insider_ownership(identifier)
|
532
|
+
|
533
|
+
#### Institutional Ownership by Security
|
534
|
+
|
535
|
+
|
536
|
+
Returns a list of all institutional owners of a given security.
|
537
|
+
|
538
|
+
[//]: # (END_OVERVIEW)
|
539
|
+
|
540
|
+
### Example
|
541
|
+
|
542
|
+
[//]: # (START_CODE_EXAMPLE)
|
543
|
+
|
544
|
+
```ruby
|
545
|
+
# Load the gem
|
546
|
+
require 'intrinio-sdk'
|
547
|
+
require 'pp'
|
548
|
+
|
549
|
+
# Setup authorization
|
550
|
+
Intrinio.configure do |config|
|
551
|
+
config.api_key['api_key'] = 'YOUR_API_KEY'
|
552
|
+
config.allow_retries = true
|
553
|
+
end
|
554
|
+
|
555
|
+
security_api = Intrinio::SecurityApi.new
|
556
|
+
identifier = "AAPL"
|
557
|
+
|
558
|
+
result = security_api.get_security_insider_ownership(identifier)
|
559
|
+
pp result
|
560
|
+
```
|
561
|
+
|
562
|
+
[//]: # (END_CODE_EXAMPLE)
|
563
|
+
|
564
|
+
[//]: # (START_DEFINITION)
|
565
|
+
|
566
|
+
### Parameters
|
567
|
+
|
568
|
+
[//]: # (START_PARAMETERS)
|
569
|
+
|
570
|
+
|
571
|
+
Name | Type | Description | Notes
|
572
|
+
------------- | ------------- | ------------- | -------------
|
573
|
+
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
574
|
+
|
575
|
+
[//]: # (END_PARAMETERS)
|
576
|
+
|
577
|
+
### Return type
|
578
|
+
|
579
|
+
[**ApiResponseSecurityInstitutionalOwnership**](ApiResponseSecurityInstitutionalOwnership.md)
|
580
|
+
|
581
|
+
[//]: # (END_OPERATION)
|
582
|
+
|
583
|
+
|
584
|
+
[//]: # (START_OPERATION)
|
585
|
+
|
586
|
+
[//]: # (CLASS:Intrinio::SecurityApi)
|
587
|
+
|
588
|
+
[//]: # (METHOD:get_security_interval_prices)
|
589
|
+
|
590
|
+
[//]: # (RETURN_TYPE:Intrinio::ApiResponseSecurityIntervalPrices)
|
591
|
+
|
592
|
+
[//]: # (RETURN_TYPE_KIND:object)
|
593
|
+
|
594
|
+
[//]: # (RETURN_TYPE_DOC:ApiResponseSecurityIntervalPrices.md)
|
595
|
+
|
596
|
+
[//]: # (OPERATION:get_security_interval_prices_v2)
|
597
|
+
|
598
|
+
[//]: # (ENDPOINT:/securities/{identifier}/prices/intervals)
|
599
|
+
|
600
|
+
[//]: # (DOCUMENT_LINK:SecurityApi.md#get_security_interval_prices)
|
601
|
+
|
602
|
+
## **get_security_interval_prices**
|
603
|
+
|
604
|
+
[**View Intrinio API Documentation**](https://docs.intrinio.com/documentation/ruby/get_security_interval_prices_v2)
|
605
|
+
|
606
|
+
[//]: # (START_OVERVIEW)
|
607
|
+
|
608
|
+
> ApiResponseSecurityIntervalPrices get_security_interval_prices(identifier, opts)
|
609
|
+
|
610
|
+
#### Interval Stock Prices for Security
|
611
|
+
|
612
|
+
|
613
|
+
Return Open, High, Low, Close, and Volume for a particular interval for the Security with the given `identifier`
|
614
|
+
|
615
|
+
[//]: # (END_OVERVIEW)
|
616
|
+
|
617
|
+
### Example
|
618
|
+
|
619
|
+
[//]: # (START_CODE_EXAMPLE)
|
620
|
+
|
621
|
+
```ruby
|
622
|
+
# Load the gem
|
623
|
+
require 'intrinio-sdk'
|
624
|
+
require 'pp'
|
625
|
+
|
626
|
+
# Setup authorization
|
627
|
+
Intrinio.configure do |config|
|
628
|
+
config.api_key['api_key'] = 'YOUR_API_KEY'
|
629
|
+
config.allow_retries = true
|
630
|
+
end
|
631
|
+
|
632
|
+
security_api = Intrinio::SecurityApi.new
|
633
|
+
identifier = "AAPL"
|
634
|
+
|
635
|
+
opts = {
|
636
|
+
source: nil,
|
637
|
+
start_date: Date.parse("2018-01-01"),
|
638
|
+
start_time: nil,
|
639
|
+
end_date: Date.parse("2019-01-01"),
|
640
|
+
end_time: nil,
|
641
|
+
timezone: "UTC",
|
642
|
+
interval_size: 1d,
|
643
|
+
page_size: 100,
|
644
|
+
next_page: nil
|
645
|
+
}
|
646
|
+
|
647
|
+
result = security_api.get_security_interval_prices(identifier, opts)
|
648
|
+
pp result
|
649
|
+
```
|
650
|
+
|
651
|
+
[//]: # (END_CODE_EXAMPLE)
|
652
|
+
|
653
|
+
[//]: # (START_DEFINITION)
|
654
|
+
|
655
|
+
### Parameters
|
656
|
+
|
657
|
+
[//]: # (START_PARAMETERS)
|
658
|
+
|
659
|
+
|
660
|
+
Name | Type | Description | Notes
|
661
|
+
------------- | ------------- | ------------- | -------------
|
662
|
+
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
663
|
+
**source** | String| Return intervals from the specified data source | [optional]
|
664
|
+
**start_date** | Date| Return intervals starting at the specified date | [optional]
|
665
|
+
**start_time** | String| Return intervals starting at the specified time on the `start_date` (24-hour in 'hh:mm' format, UTC timezone) | [optional]
|
666
|
+
**end_date** | Date| Return intervals stopping at the specified date | [optional]
|
667
|
+
**end_time** | String| Return intervals stopping at the specified time on the `end_date` (24-hour in 'hh:mm' format, UTC timezone) | [optional]
|
668
|
+
**timezone** | String| Returns trading times in this timezone | [optional] [default to UTC]
|
669
|
+
**interval_size** | String| The interval for which to return stock prices | [optional] [default to 1d]
|
670
|
+
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
671
|
+
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
672
|
+
|
673
|
+
[//]: # (END_PARAMETERS)
|
674
|
+
|
675
|
+
### Return type
|
676
|
+
|
677
|
+
[**ApiResponseSecurityIntervalPrices**](ApiResponseSecurityIntervalPrices.md)
|
678
|
+
|
679
|
+
[//]: # (END_OPERATION)
|
680
|
+
|
681
|
+
|
528
682
|
[//]: # (START_OPERATION)
|
529
683
|
|
530
684
|
[//]: # (CLASS:Intrinio::SecurityApi)
|
@@ -570,28 +724,24 @@ require 'pp'
|
|
570
724
|
# Setup authorization
|
571
725
|
Intrinio.configure do |config|
|
572
726
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
727
|
+
config.allow_retries = true
|
573
728
|
end
|
574
729
|
|
575
730
|
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
|
731
|
+
identifier = "AAPL"
|
732
|
+
|
733
|
+
opts = {
|
734
|
+
source: nil,
|
735
|
+
start_date: Date.parse("2018-01-01"),
|
736
|
+
start_time: nil,
|
737
|
+
end_date: Date.parse("2019-01-01"),
|
738
|
+
end_time: nil,
|
739
|
+
page_size: 100,
|
740
|
+
next_page: nil
|
587
741
|
}
|
588
742
|
|
589
|
-
|
590
|
-
|
591
|
-
pp result
|
592
|
-
rescue Intrinio::ApiError => e
|
593
|
-
puts "Exception when calling SecurityApi->get_security_intraday_prices: #{e}"
|
594
|
-
end
|
743
|
+
result = security_api.get_security_intraday_prices(identifier, opts)
|
744
|
+
pp result
|
595
745
|
```
|
596
746
|
|
597
747
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -608,9 +758,9 @@ Name | Type | Description | Notes
|
|
608
758
|
**identifier** | String| A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) |
|
609
759
|
**source** | String| Return intraday prices from the specified data source | [optional]
|
610
760
|
**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` (
|
761
|
+
**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
762
|
**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` (
|
763
|
+
**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
764
|
**page_size** | Integer| The number of results to return | [optional] [default to 100]
|
615
765
|
**next_page** | String| Gets the next page of data from a previous API call | [optional]
|
616
766
|
|
@@ -649,7 +799,7 @@ Name | Type | Description | Notes
|
|
649
799
|
|
650
800
|
> DividendRecord get_security_latest_dividend_record(identifier)
|
651
801
|
|
652
|
-
####
|
802
|
+
#### Latest Dividend Record for Security
|
653
803
|
|
654
804
|
|
655
805
|
Returns the latest available dividend information for the Security with the given `identifier`
|
@@ -668,19 +818,14 @@ require 'pp'
|
|
668
818
|
# Setup authorization
|
669
819
|
Intrinio.configure do |config|
|
670
820
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
821
|
+
config.allow_retries = true
|
671
822
|
end
|
672
823
|
|
673
824
|
security_api = Intrinio::SecurityApi.new
|
825
|
+
identifier = "AAPL"
|
674
826
|
|
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
|
827
|
+
result = security_api.get_security_latest_dividend_record(identifier)
|
828
|
+
pp result
|
684
829
|
```
|
685
830
|
|
686
831
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -731,7 +876,7 @@ Name | Type | Description | Notes
|
|
731
876
|
|
732
877
|
> EarningsRecord get_security_latest_earnings_record(identifier)
|
733
878
|
|
734
|
-
####
|
879
|
+
#### Latest Earnings Record for Security
|
735
880
|
|
736
881
|
|
737
882
|
Returns latest available earnings information for the Security with the given `identifier`
|
@@ -750,19 +895,14 @@ require 'pp'
|
|
750
895
|
# Setup authorization
|
751
896
|
Intrinio.configure do |config|
|
752
897
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
898
|
+
config.allow_retries = true
|
753
899
|
end
|
754
900
|
|
755
901
|
security_api = Intrinio::SecurityApi.new
|
902
|
+
identifier = "AAPL"
|
756
903
|
|
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
|
904
|
+
result = security_api.get_security_latest_earnings_record(identifier)
|
905
|
+
pp result
|
766
906
|
```
|
767
907
|
|
768
908
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -832,25 +972,21 @@ require 'pp'
|
|
832
972
|
# Setup authorization
|
833
973
|
Intrinio.configure do |config|
|
834
974
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
975
|
+
config.allow_retries = true
|
835
976
|
end
|
836
977
|
|
837
978
|
security_api = Intrinio::SecurityApi.new
|
979
|
+
identifier = "AAPL"
|
838
980
|
|
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
|
981
|
+
opts = {
|
982
|
+
start_date: "2018-01-01",
|
983
|
+
end_date: "2019-01-01",
|
984
|
+
page_size: 100,
|
985
|
+
next_page: nil
|
846
986
|
}
|
847
987
|
|
848
|
-
|
849
|
-
|
850
|
-
pp result
|
851
|
-
rescue Intrinio::ApiError => e
|
852
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adi: #{e}"
|
853
|
-
end
|
988
|
+
result = security_api.get_security_price_technicals_adi(identifier, opts)
|
989
|
+
pp result
|
854
990
|
```
|
855
991
|
|
856
992
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -924,26 +1060,22 @@ require 'pp'
|
|
924
1060
|
# Setup authorization
|
925
1061
|
Intrinio.configure do |config|
|
926
1062
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1063
|
+
config.allow_retries = true
|
927
1064
|
end
|
928
1065
|
|
929
1066
|
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
|
1067
|
+
identifier = "AAPL"
|
1068
|
+
|
1069
|
+
opts = {
|
1070
|
+
period: 22,
|
1071
|
+
start_date: "2018-01-01",
|
1072
|
+
end_date: "2019-01-01",
|
1073
|
+
page_size: 100,
|
1074
|
+
next_page: nil
|
939
1075
|
}
|
940
1076
|
|
941
|
-
|
942
|
-
|
943
|
-
pp result
|
944
|
-
rescue Intrinio::ApiError => e
|
945
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adtv: #{e}"
|
946
|
-
end
|
1077
|
+
result = security_api.get_security_price_technicals_adtv(identifier, opts)
|
1078
|
+
pp result
|
947
1079
|
```
|
948
1080
|
|
949
1081
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1018,26 +1150,22 @@ require 'pp'
|
|
1018
1150
|
# Setup authorization
|
1019
1151
|
Intrinio.configure do |config|
|
1020
1152
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1153
|
+
config.allow_retries = true
|
1021
1154
|
end
|
1022
1155
|
|
1023
1156
|
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
|
1157
|
+
identifier = "AAPL"
|
1158
|
+
|
1159
|
+
opts = {
|
1160
|
+
period: 14,
|
1161
|
+
start_date: "2018-01-01",
|
1162
|
+
end_date: "2019-01-01",
|
1163
|
+
page_size: 100,
|
1164
|
+
next_page: nil
|
1033
1165
|
}
|
1034
1166
|
|
1035
|
-
|
1036
|
-
|
1037
|
-
pp result
|
1038
|
-
rescue Intrinio::ApiError => e
|
1039
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_adx: #{e}"
|
1040
|
-
end
|
1167
|
+
result = security_api.get_security_price_technicals_adx(identifier, opts)
|
1168
|
+
pp result
|
1041
1169
|
```
|
1042
1170
|
|
1043
1171
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1112,27 +1240,23 @@ require 'pp'
|
|
1112
1240
|
# Setup authorization
|
1113
1241
|
Intrinio.configure do |config|
|
1114
1242
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1243
|
+
config.allow_retries = true
|
1115
1244
|
end
|
1116
1245
|
|
1117
1246
|
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
|
1247
|
+
identifier = "AAPL"
|
1248
|
+
|
1249
|
+
opts = {
|
1250
|
+
short_period: 5,
|
1251
|
+
long_period: 34,
|
1252
|
+
start_date: "2018-01-01",
|
1253
|
+
end_date: "2019-01-01",
|
1254
|
+
page_size: 100,
|
1255
|
+
next_page: nil
|
1128
1256
|
}
|
1129
1257
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
pp result
|
1133
|
-
rescue Intrinio::ApiError => e
|
1134
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ao: #{e}"
|
1135
|
-
end
|
1258
|
+
result = security_api.get_security_price_technicals_ao(identifier, opts)
|
1259
|
+
pp result
|
1136
1260
|
```
|
1137
1261
|
|
1138
1262
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1208,26 +1332,22 @@ require 'pp'
|
|
1208
1332
|
# Setup authorization
|
1209
1333
|
Intrinio.configure do |config|
|
1210
1334
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1335
|
+
config.allow_retries = true
|
1211
1336
|
end
|
1212
1337
|
|
1213
1338
|
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
|
1339
|
+
identifier = "AAPL"
|
1340
|
+
|
1341
|
+
opts = {
|
1342
|
+
period: 14,
|
1343
|
+
start_date: "2018-01-01",
|
1344
|
+
end_date: "2019-01-01",
|
1345
|
+
page_size: 100,
|
1346
|
+
next_page: nil
|
1223
1347
|
}
|
1224
1348
|
|
1225
|
-
|
1226
|
-
|
1227
|
-
pp result
|
1228
|
-
rescue Intrinio::ApiError => e
|
1229
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_atr: #{e}"
|
1230
|
-
end
|
1349
|
+
result = security_api.get_security_price_technicals_atr(identifier, opts)
|
1350
|
+
pp result
|
1231
1351
|
```
|
1232
1352
|
|
1233
1353
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1302,28 +1422,24 @@ require 'pp'
|
|
1302
1422
|
# Setup authorization
|
1303
1423
|
Intrinio.configure do |config|
|
1304
1424
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1425
|
+
config.allow_retries = true
|
1305
1426
|
end
|
1306
1427
|
|
1307
1428
|
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
|
1429
|
+
identifier = "AAPL"
|
1430
|
+
|
1431
|
+
opts = {
|
1432
|
+
period: 20,
|
1433
|
+
standard_deviations: 2.0,
|
1434
|
+
price_key: "close",
|
1435
|
+
start_date: "2018-01-01",
|
1436
|
+
end_date: "2019-01-01",
|
1437
|
+
page_size: 100,
|
1438
|
+
next_page: nil
|
1319
1439
|
}
|
1320
1440
|
|
1321
|
-
|
1322
|
-
|
1323
|
-
pp result
|
1324
|
-
rescue Intrinio::ApiError => e
|
1325
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_bb: #{e}"
|
1326
|
-
end
|
1441
|
+
result = security_api.get_security_price_technicals_bb(identifier, opts)
|
1442
|
+
pp result
|
1327
1443
|
```
|
1328
1444
|
|
1329
1445
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1400,27 +1516,23 @@ require 'pp'
|
|
1400
1516
|
# Setup authorization
|
1401
1517
|
Intrinio.configure do |config|
|
1402
1518
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1519
|
+
config.allow_retries = true
|
1403
1520
|
end
|
1404
1521
|
|
1405
1522
|
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
|
1523
|
+
identifier = "AAPL"
|
1524
|
+
|
1525
|
+
opts = {
|
1526
|
+
period: 20,
|
1527
|
+
constant: 0.015,
|
1528
|
+
start_date: "2018-01-01",
|
1529
|
+
end_date: "2019-01-01",
|
1530
|
+
page_size: 100,
|
1531
|
+
next_page: nil
|
1416
1532
|
}
|
1417
1533
|
|
1418
|
-
|
1419
|
-
|
1420
|
-
pp result
|
1421
|
-
rescue Intrinio::ApiError => e
|
1422
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cci: #{e}"
|
1423
|
-
end
|
1534
|
+
result = security_api.get_security_price_technicals_cci(identifier, opts)
|
1535
|
+
pp result
|
1424
1536
|
```
|
1425
1537
|
|
1426
1538
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1496,26 +1608,22 @@ require 'pp'
|
|
1496
1608
|
# Setup authorization
|
1497
1609
|
Intrinio.configure do |config|
|
1498
1610
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1611
|
+
config.allow_retries = true
|
1499
1612
|
end
|
1500
1613
|
|
1501
1614
|
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
|
1615
|
+
identifier = "AAPL"
|
1616
|
+
|
1617
|
+
opts = {
|
1618
|
+
period: 20,
|
1619
|
+
start_date: "2018-01-01",
|
1620
|
+
end_date: "2019-01-01",
|
1621
|
+
page_size: 100,
|
1622
|
+
next_page: nil
|
1511
1623
|
}
|
1512
1624
|
|
1513
|
-
|
1514
|
-
|
1515
|
-
pp result
|
1516
|
-
rescue Intrinio::ApiError => e
|
1517
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_cmf: #{e}"
|
1518
|
-
end
|
1625
|
+
result = security_api.get_security_price_technicals_cmf(identifier, opts)
|
1626
|
+
pp result
|
1519
1627
|
```
|
1520
1628
|
|
1521
1629
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1590,27 +1698,23 @@ require 'pp'
|
|
1590
1698
|
# Setup authorization
|
1591
1699
|
Intrinio.configure do |config|
|
1592
1700
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1701
|
+
config.allow_retries = true
|
1593
1702
|
end
|
1594
1703
|
|
1595
1704
|
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
|
1705
|
+
identifier = "AAPL"
|
1706
|
+
|
1707
|
+
opts = {
|
1708
|
+
period: 20,
|
1709
|
+
price_key: "close",
|
1710
|
+
start_date: "2018-01-01",
|
1711
|
+
end_date: "2019-01-01",
|
1712
|
+
page_size: 100,
|
1713
|
+
next_page: nil
|
1606
1714
|
}
|
1607
1715
|
|
1608
|
-
|
1609
|
-
|
1610
|
-
pp result
|
1611
|
-
rescue Intrinio::ApiError => e
|
1612
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dc: #{e}"
|
1613
|
-
end
|
1716
|
+
result = security_api.get_security_price_technicals_dc(identifier, opts)
|
1717
|
+
pp result
|
1614
1718
|
```
|
1615
1719
|
|
1616
1720
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1686,27 +1790,23 @@ require 'pp'
|
|
1686
1790
|
# Setup authorization
|
1687
1791
|
Intrinio.configure do |config|
|
1688
1792
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1793
|
+
config.allow_retries = true
|
1689
1794
|
end
|
1690
1795
|
|
1691
1796
|
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
|
1797
|
+
identifier = "AAPL"
|
1798
|
+
|
1799
|
+
opts = {
|
1800
|
+
period: 20,
|
1801
|
+
price_key: "close",
|
1802
|
+
start_date: "2018-01-01",
|
1803
|
+
end_date: "2019-01-01",
|
1804
|
+
page_size: 100,
|
1805
|
+
next_page: nil
|
1702
1806
|
}
|
1703
1807
|
|
1704
|
-
|
1705
|
-
|
1706
|
-
pp result
|
1707
|
-
rescue Intrinio::ApiError => e
|
1708
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_dpo: #{e}"
|
1709
|
-
end
|
1808
|
+
result = security_api.get_security_price_technicals_dpo(identifier, opts)
|
1809
|
+
pp result
|
1710
1810
|
```
|
1711
1811
|
|
1712
1812
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1782,26 +1882,22 @@ require 'pp'
|
|
1782
1882
|
# Setup authorization
|
1783
1883
|
Intrinio.configure do |config|
|
1784
1884
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1885
|
+
config.allow_retries = true
|
1785
1886
|
end
|
1786
1887
|
|
1787
1888
|
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
|
1889
|
+
identifier = "AAPL"
|
1890
|
+
|
1891
|
+
opts = {
|
1892
|
+
period: 20,
|
1893
|
+
start_date: "2018-01-01",
|
1894
|
+
end_date: "2019-01-01",
|
1895
|
+
page_size: 100,
|
1896
|
+
next_page: nil
|
1797
1897
|
}
|
1798
1898
|
|
1799
|
-
|
1800
|
-
|
1801
|
-
pp result
|
1802
|
-
rescue Intrinio::ApiError => e
|
1803
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_eom: #{e}"
|
1804
|
-
end
|
1899
|
+
result = security_api.get_security_price_technicals_eom(identifier, opts)
|
1900
|
+
pp result
|
1805
1901
|
```
|
1806
1902
|
|
1807
1903
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1876,25 +1972,21 @@ require 'pp'
|
|
1876
1972
|
# Setup authorization
|
1877
1973
|
Intrinio.configure do |config|
|
1878
1974
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
1975
|
+
config.allow_retries = true
|
1879
1976
|
end
|
1880
1977
|
|
1881
1978
|
security_api = Intrinio::SecurityApi.new
|
1979
|
+
identifier = "AAPL"
|
1882
1980
|
|
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
|
1981
|
+
opts = {
|
1982
|
+
start_date: "2018-01-01",
|
1983
|
+
end_date: "2019-01-01",
|
1984
|
+
page_size: 100,
|
1985
|
+
next_page: nil
|
1890
1986
|
}
|
1891
1987
|
|
1892
|
-
|
1893
|
-
|
1894
|
-
pp result
|
1895
|
-
rescue Intrinio::ApiError => e
|
1896
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_fi: #{e}"
|
1897
|
-
end
|
1988
|
+
result = security_api.get_security_price_technicals_fi(identifier, opts)
|
1989
|
+
pp result
|
1898
1990
|
```
|
1899
1991
|
|
1900
1992
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -1968,28 +2060,24 @@ require 'pp'
|
|
1968
2060
|
# Setup authorization
|
1969
2061
|
Intrinio.configure do |config|
|
1970
2062
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2063
|
+
config.allow_retries = true
|
1971
2064
|
end
|
1972
2065
|
|
1973
2066
|
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
|
2067
|
+
identifier = "AAPL"
|
2068
|
+
|
2069
|
+
opts = {
|
2070
|
+
low_period: 9,
|
2071
|
+
medium_period: 26,
|
2072
|
+
high_period: 52,
|
2073
|
+
start_date: "2018-01-01",
|
2074
|
+
end_date: "2019-01-01",
|
2075
|
+
page_size: 100,
|
2076
|
+
next_page: nil
|
1985
2077
|
}
|
1986
2078
|
|
1987
|
-
|
1988
|
-
|
1989
|
-
pp result
|
1990
|
-
rescue Intrinio::ApiError => e
|
1991
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_ichimoku: #{e}"
|
1992
|
-
end
|
2079
|
+
result = security_api.get_security_price_technicals_ichimoku(identifier, opts)
|
2080
|
+
pp result
|
1993
2081
|
```
|
1994
2082
|
|
1995
2083
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2066,26 +2154,22 @@ require 'pp'
|
|
2066
2154
|
# Setup authorization
|
2067
2155
|
Intrinio.configure do |config|
|
2068
2156
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2157
|
+
config.allow_retries = true
|
2069
2158
|
end
|
2070
2159
|
|
2071
2160
|
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
|
2161
|
+
identifier = "AAPL"
|
2162
|
+
|
2163
|
+
opts = {
|
2164
|
+
period: 10,
|
2165
|
+
start_date: "2018-01-01",
|
2166
|
+
end_date: "2019-01-01",
|
2167
|
+
page_size: 100,
|
2168
|
+
next_page: nil
|
2081
2169
|
}
|
2082
2170
|
|
2083
|
-
|
2084
|
-
|
2085
|
-
pp result
|
2086
|
-
rescue Intrinio::ApiError => e
|
2087
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kc: #{e}"
|
2088
|
-
end
|
2171
|
+
result = security_api.get_security_price_technicals_kc(identifier, opts)
|
2172
|
+
pp result
|
2089
2173
|
```
|
2090
2174
|
|
2091
2175
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2160,34 +2244,30 @@ require 'pp'
|
|
2160
2244
|
# Setup authorization
|
2161
2245
|
Intrinio.configure do |config|
|
2162
2246
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2247
|
+
config.allow_retries = true
|
2163
2248
|
end
|
2164
2249
|
|
2165
2250
|
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
|
2251
|
+
identifier = "AAPL"
|
2252
|
+
|
2253
|
+
opts = {
|
2254
|
+
roc1: 10,
|
2255
|
+
roc2: 15,
|
2256
|
+
roc3: 20,
|
2257
|
+
roc4: 30,
|
2258
|
+
sma1: 10,
|
2259
|
+
sma2: 10,
|
2260
|
+
sma3: 10,
|
2261
|
+
sma4: 15,
|
2262
|
+
price_key: "close",
|
2263
|
+
start_date: "2018-01-01",
|
2264
|
+
end_date: "2019-01-01",
|
2265
|
+
page_size: 100,
|
2266
|
+
next_page: nil
|
2183
2267
|
}
|
2184
2268
|
|
2185
|
-
|
2186
|
-
|
2187
|
-
pp result
|
2188
|
-
rescue Intrinio::ApiError => e
|
2189
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_kst: #{e}"
|
2190
|
-
end
|
2269
|
+
result = security_api.get_security_price_technicals_kst(identifier, opts)
|
2270
|
+
pp result
|
2191
2271
|
```
|
2192
2272
|
|
2193
2273
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2270,29 +2350,25 @@ require 'pp'
|
|
2270
2350
|
# Setup authorization
|
2271
2351
|
Intrinio.configure do |config|
|
2272
2352
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2353
|
+
config.allow_retries = true
|
2273
2354
|
end
|
2274
2355
|
|
2275
2356
|
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
|
2357
|
+
identifier = "AAPL"
|
2358
|
+
|
2359
|
+
opts = {
|
2360
|
+
fast_period: 12,
|
2361
|
+
slow_period: 26,
|
2362
|
+
signal_period: 9,
|
2363
|
+
price_key: "close",
|
2364
|
+
start_date: "2018-01-01",
|
2365
|
+
end_date: "2019-01-01",
|
2366
|
+
page_size: 100,
|
2367
|
+
next_page: nil
|
2288
2368
|
}
|
2289
2369
|
|
2290
|
-
|
2291
|
-
|
2292
|
-
pp result
|
2293
|
-
rescue Intrinio::ApiError => e
|
2294
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_macd: #{e}"
|
2295
|
-
end
|
2370
|
+
result = security_api.get_security_price_technicals_macd(identifier, opts)
|
2371
|
+
pp result
|
2296
2372
|
```
|
2297
2373
|
|
2298
2374
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2370,26 +2446,22 @@ require 'pp'
|
|
2370
2446
|
# Setup authorization
|
2371
2447
|
Intrinio.configure do |config|
|
2372
2448
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2449
|
+
config.allow_retries = true
|
2373
2450
|
end
|
2374
2451
|
|
2375
2452
|
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
|
2453
|
+
identifier = "AAPL"
|
2454
|
+
|
2455
|
+
opts = {
|
2456
|
+
period: 14,
|
2457
|
+
start_date: "2018-01-01",
|
2458
|
+
end_date: "2019-01-01",
|
2459
|
+
page_size: 100,
|
2460
|
+
next_page: nil
|
2385
2461
|
}
|
2386
2462
|
|
2387
|
-
|
2388
|
-
|
2389
|
-
pp result
|
2390
|
-
rescue Intrinio::ApiError => e
|
2391
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mfi: #{e}"
|
2392
|
-
end
|
2463
|
+
result = security_api.get_security_price_technicals_mfi(identifier, opts)
|
2464
|
+
pp result
|
2393
2465
|
```
|
2394
2466
|
|
2395
2467
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2464,27 +2536,23 @@ require 'pp'
|
|
2464
2536
|
# Setup authorization
|
2465
2537
|
Intrinio.configure do |config|
|
2466
2538
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2539
|
+
config.allow_retries = true
|
2467
2540
|
end
|
2468
2541
|
|
2469
2542
|
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
|
2543
|
+
identifier = "AAPL"
|
2544
|
+
|
2545
|
+
opts = {
|
2546
|
+
ema_period: 9,
|
2547
|
+
sum_period: 25,
|
2548
|
+
start_date: "2018-01-01",
|
2549
|
+
end_date: "2019-01-01",
|
2550
|
+
page_size: 100,
|
2551
|
+
next_page: nil
|
2480
2552
|
}
|
2481
2553
|
|
2482
|
-
|
2483
|
-
|
2484
|
-
pp result
|
2485
|
-
rescue Intrinio::ApiError => e
|
2486
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_mi: #{e}"
|
2487
|
-
end
|
2554
|
+
result = security_api.get_security_price_technicals_mi(identifier, opts)
|
2555
|
+
pp result
|
2488
2556
|
```
|
2489
2557
|
|
2490
2558
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2560,25 +2628,21 @@ require 'pp'
|
|
2560
2628
|
# Setup authorization
|
2561
2629
|
Intrinio.configure do |config|
|
2562
2630
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2631
|
+
config.allow_retries = true
|
2563
2632
|
end
|
2564
2633
|
|
2565
2634
|
security_api = Intrinio::SecurityApi.new
|
2635
|
+
identifier = "AAPL"
|
2566
2636
|
|
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
|
2637
|
+
opts = {
|
2638
|
+
start_date: "2018-01-01",
|
2639
|
+
end_date: "2019-01-01",
|
2640
|
+
page_size: 100,
|
2641
|
+
next_page: nil
|
2574
2642
|
}
|
2575
2643
|
|
2576
|
-
|
2577
|
-
|
2578
|
-
pp result
|
2579
|
-
rescue Intrinio::ApiError => e
|
2580
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_nvi: #{e}"
|
2581
|
-
end
|
2644
|
+
result = security_api.get_security_price_technicals_nvi(identifier, opts)
|
2645
|
+
pp result
|
2582
2646
|
```
|
2583
2647
|
|
2584
2648
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2652,25 +2716,21 @@ require 'pp'
|
|
2652
2716
|
# Setup authorization
|
2653
2717
|
Intrinio.configure do |config|
|
2654
2718
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2719
|
+
config.allow_retries = true
|
2655
2720
|
end
|
2656
2721
|
|
2657
2722
|
security_api = Intrinio::SecurityApi.new
|
2723
|
+
identifier = "AAPL"
|
2658
2724
|
|
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
|
2725
|
+
opts = {
|
2726
|
+
start_date: "2018-01-01",
|
2727
|
+
end_date: "2019-01-01",
|
2728
|
+
page_size: 100,
|
2729
|
+
next_page: nil
|
2666
2730
|
}
|
2667
2731
|
|
2668
|
-
|
2669
|
-
|
2670
|
-
pp result
|
2671
|
-
rescue Intrinio::ApiError => e
|
2672
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_obv: #{e}"
|
2673
|
-
end
|
2732
|
+
result = security_api.get_security_price_technicals_obv(identifier, opts)
|
2733
|
+
pp result
|
2674
2734
|
```
|
2675
2735
|
|
2676
2736
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2744,26 +2804,22 @@ require 'pp'
|
|
2744
2804
|
# Setup authorization
|
2745
2805
|
Intrinio.configure do |config|
|
2746
2806
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2807
|
+
config.allow_retries = true
|
2747
2808
|
end
|
2748
2809
|
|
2749
2810
|
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
|
2811
|
+
identifier = "AAPL"
|
2812
|
+
|
2813
|
+
opts = {
|
2814
|
+
period: 10,
|
2815
|
+
start_date: "2018-01-01",
|
2816
|
+
end_date: "2019-01-01",
|
2817
|
+
page_size: 100,
|
2818
|
+
next_page: nil
|
2759
2819
|
}
|
2760
2820
|
|
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
|
2821
|
+
result = security_api.get_security_price_technicals_obv_mean(identifier, opts)
|
2822
|
+
pp result
|
2767
2823
|
```
|
2768
2824
|
|
2769
2825
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2838,27 +2894,23 @@ require 'pp'
|
|
2838
2894
|
# Setup authorization
|
2839
2895
|
Intrinio.configure do |config|
|
2840
2896
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2897
|
+
config.allow_retries = true
|
2841
2898
|
end
|
2842
2899
|
|
2843
2900
|
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
|
2901
|
+
identifier = "AAPL"
|
2902
|
+
|
2903
|
+
opts = {
|
2904
|
+
period: 14,
|
2905
|
+
price_key: "close",
|
2906
|
+
start_date: "2018-01-01",
|
2907
|
+
end_date: "2019-01-01",
|
2908
|
+
page_size: 100,
|
2909
|
+
next_page: nil
|
2854
2910
|
}
|
2855
2911
|
|
2856
|
-
|
2857
|
-
|
2858
|
-
pp result
|
2859
|
-
rescue Intrinio::ApiError => e
|
2860
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_rsi: #{e}"
|
2861
|
-
end
|
2912
|
+
result = security_api.get_security_price_technicals_rsi(identifier, opts)
|
2913
|
+
pp result
|
2862
2914
|
```
|
2863
2915
|
|
2864
2916
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -2934,27 +2986,23 @@ require 'pp'
|
|
2934
2986
|
# Setup authorization
|
2935
2987
|
Intrinio.configure do |config|
|
2936
2988
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
2989
|
+
config.allow_retries = true
|
2937
2990
|
end
|
2938
2991
|
|
2939
2992
|
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
|
2993
|
+
identifier = "AAPL"
|
2994
|
+
|
2995
|
+
opts = {
|
2996
|
+
period: 20,
|
2997
|
+
price_key: "close",
|
2998
|
+
start_date: "2018-01-01",
|
2999
|
+
end_date: "2019-01-01",
|
3000
|
+
page_size: 100,
|
3001
|
+
next_page: nil
|
2950
3002
|
}
|
2951
3003
|
|
2952
|
-
|
2953
|
-
|
2954
|
-
pp result
|
2955
|
-
rescue Intrinio::ApiError => e
|
2956
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sma: #{e}"
|
2957
|
-
end
|
3004
|
+
result = security_api.get_security_price_technicals_sma(identifier, opts)
|
3005
|
+
pp result
|
2958
3006
|
```
|
2959
3007
|
|
2960
3008
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3030,27 +3078,23 @@ require 'pp'
|
|
3030
3078
|
# Setup authorization
|
3031
3079
|
Intrinio.configure do |config|
|
3032
3080
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3081
|
+
config.allow_retries = true
|
3033
3082
|
end
|
3034
3083
|
|
3035
3084
|
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
|
3085
|
+
identifier = "AAPL"
|
3086
|
+
|
3087
|
+
opts = {
|
3088
|
+
period: 14,
|
3089
|
+
signal_period: 3,
|
3090
|
+
start_date: "2018-01-01",
|
3091
|
+
end_date: "2019-01-01",
|
3092
|
+
page_size: 100,
|
3093
|
+
next_page: nil
|
3046
3094
|
}
|
3047
3095
|
|
3048
|
-
|
3049
|
-
|
3050
|
-
pp result
|
3051
|
-
rescue Intrinio::ApiError => e
|
3052
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_sr: #{e}"
|
3053
|
-
end
|
3096
|
+
result = security_api.get_security_price_technicals_sr(identifier, opts)
|
3097
|
+
pp result
|
3054
3098
|
```
|
3055
3099
|
|
3056
3100
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3126,26 +3170,22 @@ require 'pp'
|
|
3126
3170
|
# Setup authorization
|
3127
3171
|
Intrinio.configure do |config|
|
3128
3172
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3173
|
+
config.allow_retries = true
|
3129
3174
|
end
|
3130
3175
|
|
3131
3176
|
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
|
3177
|
+
identifier = "AAPL"
|
3178
|
+
|
3179
|
+
opts = {
|
3180
|
+
period: 15,
|
3181
|
+
start_date: "2018-01-01",
|
3182
|
+
end_date: "2019-01-01",
|
3183
|
+
page_size: 100,
|
3184
|
+
next_page: nil
|
3141
3185
|
}
|
3142
3186
|
|
3143
|
-
|
3144
|
-
|
3145
|
-
pp result
|
3146
|
-
rescue Intrinio::ApiError => e
|
3147
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_trix: #{e}"
|
3148
|
-
end
|
3187
|
+
result = security_api.get_security_price_technicals_trix(identifier, opts)
|
3188
|
+
pp result
|
3149
3189
|
```
|
3150
3190
|
|
3151
3191
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3220,28 +3260,24 @@ require 'pp'
|
|
3220
3260
|
# Setup authorization
|
3221
3261
|
Intrinio.configure do |config|
|
3222
3262
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3263
|
+
config.allow_retries = true
|
3223
3264
|
end
|
3224
3265
|
|
3225
3266
|
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
|
3267
|
+
identifier = "AAPL"
|
3268
|
+
|
3269
|
+
opts = {
|
3270
|
+
low_period: 13,
|
3271
|
+
high_period: 25,
|
3272
|
+
price_key: "close",
|
3273
|
+
start_date: "2018-01-01",
|
3274
|
+
end_date: "2019-01-01",
|
3275
|
+
page_size: 100,
|
3276
|
+
next_page: nil
|
3237
3277
|
}
|
3238
3278
|
|
3239
|
-
|
3240
|
-
|
3241
|
-
pp result
|
3242
|
-
rescue Intrinio::ApiError => e
|
3243
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_tsi: #{e}"
|
3244
|
-
end
|
3279
|
+
result = security_api.get_security_price_technicals_tsi(identifier, opts)
|
3280
|
+
pp result
|
3245
3281
|
```
|
3246
3282
|
|
3247
3283
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3318,31 +3354,27 @@ require 'pp'
|
|
3318
3354
|
# Setup authorization
|
3319
3355
|
Intrinio.configure do |config|
|
3320
3356
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3357
|
+
config.allow_retries = true
|
3321
3358
|
end
|
3322
3359
|
|
3323
3360
|
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
|
3361
|
+
identifier = "AAPL"
|
3362
|
+
|
3363
|
+
opts = {
|
3364
|
+
short_period: 7,
|
3365
|
+
medium_period: 14,
|
3366
|
+
long_period: 28,
|
3367
|
+
short_weight: 4.0,
|
3368
|
+
medium_weight: 2.0,
|
3369
|
+
long_weight: 1.0,
|
3370
|
+
start_date: "2018-01-01",
|
3371
|
+
end_date: "2019-01-01",
|
3372
|
+
page_size: 100,
|
3373
|
+
next_page: nil
|
3338
3374
|
}
|
3339
3375
|
|
3340
|
-
|
3341
|
-
|
3342
|
-
pp result
|
3343
|
-
rescue Intrinio::ApiError => e
|
3344
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_uo: #{e}"
|
3345
|
-
end
|
3376
|
+
result = security_api.get_security_price_technicals_uo(identifier, opts)
|
3377
|
+
pp result
|
3346
3378
|
```
|
3347
3379
|
|
3348
3380
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3422,26 +3454,22 @@ require 'pp'
|
|
3422
3454
|
# Setup authorization
|
3423
3455
|
Intrinio.configure do |config|
|
3424
3456
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3457
|
+
config.allow_retries = true
|
3425
3458
|
end
|
3426
3459
|
|
3427
3460
|
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
|
3461
|
+
identifier = "AAPL"
|
3462
|
+
|
3463
|
+
opts = {
|
3464
|
+
period: 14,
|
3465
|
+
start_date: "2018-01-01",
|
3466
|
+
end_date: "2019-01-01",
|
3467
|
+
page_size: 100,
|
3468
|
+
next_page: nil
|
3437
3469
|
}
|
3438
3470
|
|
3439
|
-
|
3440
|
-
|
3441
|
-
pp result
|
3442
|
-
rescue Intrinio::ApiError => e
|
3443
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vi: #{e}"
|
3444
|
-
end
|
3471
|
+
result = security_api.get_security_price_technicals_vi(identifier, opts)
|
3472
|
+
pp result
|
3445
3473
|
```
|
3446
3474
|
|
3447
3475
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3516,25 +3544,21 @@ require 'pp'
|
|
3516
3544
|
# Setup authorization
|
3517
3545
|
Intrinio.configure do |config|
|
3518
3546
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3547
|
+
config.allow_retries = true
|
3519
3548
|
end
|
3520
3549
|
|
3521
3550
|
security_api = Intrinio::SecurityApi.new
|
3551
|
+
identifier = "AAPL"
|
3522
3552
|
|
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
|
3553
|
+
opts = {
|
3554
|
+
start_date: "2018-01-01",
|
3555
|
+
end_date: "2019-01-01",
|
3556
|
+
page_size: 100,
|
3557
|
+
next_page: nil
|
3530
3558
|
}
|
3531
3559
|
|
3532
|
-
|
3533
|
-
|
3534
|
-
pp result
|
3535
|
-
rescue Intrinio::ApiError => e
|
3536
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vpt: #{e}"
|
3537
|
-
end
|
3560
|
+
result = security_api.get_security_price_technicals_vpt(identifier, opts)
|
3561
|
+
pp result
|
3538
3562
|
```
|
3539
3563
|
|
3540
3564
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3608,25 +3632,21 @@ require 'pp'
|
|
3608
3632
|
# Setup authorization
|
3609
3633
|
Intrinio.configure do |config|
|
3610
3634
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3635
|
+
config.allow_retries = true
|
3611
3636
|
end
|
3612
3637
|
|
3613
3638
|
security_api = Intrinio::SecurityApi.new
|
3639
|
+
identifier = "AAPL"
|
3614
3640
|
|
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
|
3641
|
+
opts = {
|
3642
|
+
start_date: "2018-01-01",
|
3643
|
+
end_date: "2019-01-01",
|
3644
|
+
page_size: 100,
|
3645
|
+
next_page: nil
|
3622
3646
|
}
|
3623
3647
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
pp result
|
3627
|
-
rescue Intrinio::ApiError => e
|
3628
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_vwap: #{e}"
|
3629
|
-
end
|
3648
|
+
result = security_api.get_security_price_technicals_vwap(identifier, opts)
|
3649
|
+
pp result
|
3630
3650
|
```
|
3631
3651
|
|
3632
3652
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3700,26 +3720,22 @@ require 'pp'
|
|
3700
3720
|
# Setup authorization
|
3701
3721
|
Intrinio.configure do |config|
|
3702
3722
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3723
|
+
config.allow_retries = true
|
3703
3724
|
end
|
3704
3725
|
|
3705
3726
|
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
|
3727
|
+
identifier = "AAPL"
|
3728
|
+
|
3729
|
+
opts = {
|
3730
|
+
period: 14,
|
3731
|
+
start_date: "2018-01-01",
|
3732
|
+
end_date: "2019-01-01",
|
3733
|
+
page_size: 100,
|
3734
|
+
next_page: nil
|
3715
3735
|
}
|
3716
3736
|
|
3717
|
-
|
3718
|
-
|
3719
|
-
pp result
|
3720
|
-
rescue Intrinio::ApiError => e
|
3721
|
-
puts "Exception when calling SecurityApi->get_security_price_technicals_wr: #{e}"
|
3722
|
-
end
|
3737
|
+
result = security_api.get_security_price_technicals_wr(identifier, opts)
|
3738
|
+
pp result
|
3723
3739
|
```
|
3724
3740
|
|
3725
3741
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3794,22 +3810,18 @@ require 'pp'
|
|
3794
3810
|
# Setup authorization
|
3795
3811
|
Intrinio.configure do |config|
|
3796
3812
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3813
|
+
config.allow_retries = true
|
3797
3814
|
end
|
3798
3815
|
|
3799
3816
|
security_api = Intrinio::SecurityApi.new
|
3817
|
+
identifier = "AAPL"
|
3800
3818
|
|
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.
|
3819
|
+
opts = {
|
3820
|
+
source: "bats"
|
3805
3821
|
}
|
3806
3822
|
|
3807
|
-
|
3808
|
-
|
3809
|
-
pp result
|
3810
|
-
rescue Intrinio::ApiError => e
|
3811
|
-
puts "Exception when calling SecurityApi->get_security_realtime_price: #{e}"
|
3812
|
-
end
|
3823
|
+
result = security_api.get_security_realtime_price(identifier, opts)
|
3824
|
+
pp result
|
3813
3825
|
```
|
3814
3826
|
|
3815
3827
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3880,25 +3892,21 @@ require 'pp'
|
|
3880
3892
|
# Setup authorization
|
3881
3893
|
Intrinio.configure do |config|
|
3882
3894
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3895
|
+
config.allow_retries = true
|
3883
3896
|
end
|
3884
3897
|
|
3885
3898
|
security_api = Intrinio::SecurityApi.new
|
3899
|
+
identifier = "AAPL"
|
3886
3900
|
|
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
|
3901
|
+
opts = {
|
3902
|
+
start_date: Date.parse("2018-01-01"),
|
3903
|
+
end_date: Date.parse("2019-01-01"),
|
3904
|
+
page_size: 100,
|
3905
|
+
next_page: nil
|
3894
3906
|
}
|
3895
3907
|
|
3896
|
-
|
3897
|
-
|
3898
|
-
pp result
|
3899
|
-
rescue Intrinio::ApiError => e
|
3900
|
-
puts "Exception when calling SecurityApi->get_security_stock_price_adjustments: #{e}"
|
3901
|
-
end
|
3908
|
+
result = security_api.get_security_stock_price_adjustments(identifier, opts)
|
3909
|
+
pp result
|
3902
3910
|
```
|
3903
3911
|
|
3904
3912
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -3972,26 +3980,22 @@ require 'pp'
|
|
3972
3980
|
# Setup authorization
|
3973
3981
|
Intrinio.configure do |config|
|
3974
3982
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
3983
|
+
config.allow_retries = true
|
3975
3984
|
end
|
3976
3985
|
|
3977
3986
|
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
|
3987
|
+
identifier = "AAPL"
|
3988
|
+
|
3989
|
+
opts = {
|
3990
|
+
start_date: Date.parse("2018-01-01"),
|
3991
|
+
end_date: Date.parse("2019-01-01"),
|
3992
|
+
frequency: "daily",
|
3993
|
+
page_size: 100,
|
3994
|
+
next_page: nil
|
3987
3995
|
}
|
3988
3996
|
|
3989
|
-
|
3990
|
-
|
3991
|
-
pp result
|
3992
|
-
rescue Intrinio::ApiError => e
|
3993
|
-
puts "Exception when calling SecurityApi->get_security_stock_prices: #{e}"
|
3994
|
-
end
|
3997
|
+
result = security_api.get_security_stock_prices(identifier, opts)
|
3998
|
+
pp result
|
3995
3999
|
```
|
3996
4000
|
|
3997
4001
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4066,38 +4070,34 @@ require 'pp'
|
|
4066
4070
|
# Setup authorization
|
4067
4071
|
Intrinio.configure do |config|
|
4068
4072
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4073
|
+
config.allow_retries = true
|
4069
4074
|
end
|
4070
4075
|
|
4071
4076
|
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
|
4077
|
+
identifier = "AAPL"
|
4078
|
+
|
4079
|
+
opts = {
|
4080
|
+
start_date: nil,
|
4081
|
+
end_date: nil,
|
4082
|
+
mean_greater: nil,
|
4083
|
+
mean_less: nil,
|
4084
|
+
strong_buys_greater: nil,
|
4085
|
+
strong_buys_less: nil,
|
4086
|
+
buys_greater: nil,
|
4087
|
+
buys_less: nil,
|
4088
|
+
holds_greater: nil,
|
4089
|
+
holds_less: nil,
|
4090
|
+
sells_greater: nil,
|
4091
|
+
sells_less: nil,
|
4092
|
+
strong_sells_greater: nil,
|
4093
|
+
strong_sells_less: nil,
|
4094
|
+
total_greater: nil,
|
4095
|
+
total_less: nil,
|
4096
|
+
page_size: 100
|
4093
4097
|
}
|
4094
4098
|
|
4095
|
-
|
4096
|
-
|
4097
|
-
pp result
|
4098
|
-
rescue Intrinio::ApiError => e
|
4099
|
-
puts "Exception when calling SecurityApi->get_security_zacks_analyst_ratings: #{e}"
|
4100
|
-
end
|
4099
|
+
result = security_api.get_security_zacks_analyst_ratings(identifier, opts)
|
4100
|
+
pp result
|
4101
4101
|
```
|
4102
4102
|
|
4103
4103
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4184,22 +4184,18 @@ require 'pp'
|
|
4184
4184
|
# Setup authorization
|
4185
4185
|
Intrinio.configure do |config|
|
4186
4186
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4187
|
+
config.allow_retries = true
|
4187
4188
|
end
|
4188
4189
|
|
4189
4190
|
security_api = Intrinio::SecurityApi.new
|
4191
|
+
identifier = "AAPL"
|
4190
4192
|
|
4191
|
-
|
4192
|
-
|
4193
|
-
opts = {
|
4194
|
-
date: nil # String | Lookup a historical snapshot on the given date
|
4193
|
+
opts = {
|
4194
|
+
date: nil
|
4195
4195
|
}
|
4196
4196
|
|
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
|
4197
|
+
result = security_api.get_security_zacks_analyst_ratings_snapshot(identifier, opts)
|
4198
|
+
pp result
|
4203
4199
|
```
|
4204
4200
|
|
4205
4201
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4270,23 +4266,19 @@ require 'pp'
|
|
4270
4266
|
# Setup authorization
|
4271
4267
|
Intrinio.configure do |config|
|
4272
4268
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4269
|
+
config.allow_retries = true
|
4273
4270
|
end
|
4274
4271
|
|
4275
4272
|
security_api = Intrinio::SecurityApi.new
|
4273
|
+
identifier = "AAPL"
|
4276
4274
|
|
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
|
4275
|
+
opts = {
|
4276
|
+
page_size: 100,
|
4277
|
+
next_page: nil
|
4282
4278
|
}
|
4283
4279
|
|
4284
|
-
|
4285
|
-
|
4286
|
-
pp result
|
4287
|
-
rescue Intrinio::ApiError => e
|
4288
|
-
puts "Exception when calling SecurityApi->get_security_zacks_eps_surprises: #{e}"
|
4289
|
-
end
|
4280
|
+
result = security_api.get_security_zacks_eps_surprises(identifier, opts)
|
4281
|
+
pp result
|
4290
4282
|
```
|
4291
4283
|
|
4292
4284
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4358,23 +4350,19 @@ require 'pp'
|
|
4358
4350
|
# Setup authorization
|
4359
4351
|
Intrinio.configure do |config|
|
4360
4352
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4353
|
+
config.allow_retries = true
|
4361
4354
|
end
|
4362
4355
|
|
4363
4356
|
security_api = Intrinio::SecurityApi.new
|
4357
|
+
identifier = "AAPL"
|
4364
4358
|
|
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
|
4359
|
+
opts = {
|
4360
|
+
page_size: 100,
|
4361
|
+
next_page: nil
|
4370
4362
|
}
|
4371
4363
|
|
4372
|
-
|
4373
|
-
|
4374
|
-
pp result
|
4375
|
-
rescue Intrinio::ApiError => e
|
4376
|
-
puts "Exception when calling SecurityApi->get_security_zacks_sales_surprises: #{e}"
|
4377
|
-
end
|
4364
|
+
result = security_api.get_security_zacks_sales_surprises(identifier, opts)
|
4365
|
+
pp result
|
4378
4366
|
```
|
4379
4367
|
|
4380
4368
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4430,7 +4418,7 @@ Name | Type | Description | Notes
|
|
4430
4418
|
#### Screen Securities
|
4431
4419
|
|
4432
4420
|
|
4433
|
-
Screen Securities using complex logic
|
4421
|
+
Screen Securities using complex logic. Use POST only. See <a href=\"https://docs.intrinio.com/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions.
|
4434
4422
|
|
4435
4423
|
[//]: # (END_OVERVIEW)
|
4436
4424
|
|
@@ -4446,24 +4434,34 @@ require 'pp'
|
|
4446
4434
|
# Setup authorization
|
4447
4435
|
Intrinio.configure do |config|
|
4448
4436
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4437
|
+
config.allow_retries = true
|
4449
4438
|
end
|
4450
4439
|
|
4451
4440
|
security_api = Intrinio::SecurityApi.new
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4441
|
+
clauses = [
|
4442
|
+
{
|
4443
|
+
"field": "marketcap",
|
4444
|
+
"operator": "gt",
|
4445
|
+
"value": "10000000"
|
4446
|
+
},
|
4447
|
+
{
|
4448
|
+
"field": "beta",
|
4449
|
+
"operator": "lt",
|
4450
|
+
"value": "5"
|
4451
|
+
}
|
4452
|
+
]
|
4453
|
+
|
4454
|
+
|
4455
|
+
opts = {
|
4456
|
+
logic: Intrinio::SecurityScreenGroup.new(operator: "AND", clauses: clauses),
|
4457
|
+
order_column: "marketcap",
|
4458
|
+
order_direction: "asc",
|
4459
|
+
primary_only: false,
|
4460
|
+
page_size: 100
|
4459
4461
|
}
|
4460
4462
|
|
4461
|
-
|
4462
|
-
|
4463
|
-
pp result
|
4464
|
-
rescue Intrinio::ApiError => e
|
4465
|
-
puts "Exception when calling SecurityApi->screen_securities: #{e}"
|
4466
|
-
end
|
4463
|
+
result = security_api.screen_securities(opts)
|
4464
|
+
pp result
|
4467
4465
|
```
|
4468
4466
|
|
4469
4467
|
[//]: # (END_CODE_EXAMPLE)
|
@@ -4477,7 +4475,7 @@ end
|
|
4477
4475
|
|
4478
4476
|
Name | Type | Description | Notes
|
4479
4477
|
------------- | ------------- | ------------- | -------------
|
4480
|
-
**logic** | [**SecurityScreenGroup**](SecurityScreenGroup.md)| The logic to screen with, consisting of operators, clauses, and nested groups
|
4478
|
+
**logic** | [**SecurityScreenGroup**](SecurityScreenGroup.md)| The logic to screen with, consisting of operators, clauses, and nested groups. </br> See <a href=\"https://docs.intrinio.com/documentation/screener_v2\" target=\"_blank\">screener documentation</a> for details on how to construct conditions. | [optional]
|
4481
4479
|
**order_column** | String| Results returned sorted by this column | [optional]
|
4482
4480
|
**order_direction** | String| Sort order to use with the order_column | [optional] [default to asc]
|
4483
4481
|
**primary_only** | BOOLEAN| Return only primary securities | [optional] [default to false]
|
@@ -4537,22 +4535,18 @@ require 'pp'
|
|
4537
4535
|
# Setup authorization
|
4538
4536
|
Intrinio.configure do |config|
|
4539
4537
|
config.api_key['api_key'] = 'YOUR_API_KEY'
|
4538
|
+
config.allow_retries = true
|
4540
4539
|
end
|
4541
4540
|
|
4542
4541
|
security_api = Intrinio::SecurityApi.new
|
4542
|
+
query = "Apple"
|
4543
4543
|
|
4544
|
-
|
4545
|
-
|
4546
|
-
opts = {
|
4547
|
-
page_size: 100 # Integer | The number of results to return
|
4544
|
+
opts = {
|
4545
|
+
page_size: 100
|
4548
4546
|
}
|
4549
4547
|
|
4550
|
-
|
4551
|
-
|
4552
|
-
pp result
|
4553
|
-
rescue Intrinio::ApiError => e
|
4554
|
-
puts "Exception when calling SecurityApi->search_securities: #{e}"
|
4555
|
-
end
|
4548
|
+
result = security_api.search_securities(query, opts)
|
4549
|
+
pp result
|
4556
4550
|
```
|
4557
4551
|
|
4558
4552
|
[//]: # (END_CODE_EXAMPLE)
|