All URIs are relative to https://api-v2.intrinio.com
Method | HTTP request | Description |
---|---|---|
get_all_economic_indices | GET /indices/economic | All Economic Indices |
get_all_eod_index_prices | GET /indices/prices/eod | All End of Day Index Prices |
get_all_index_summaries | GET /indices | All Index Summaries |
get_all_realtime_index_prices | GET /indices/prices/realtime | All Realtime Index Prices |
get_all_sic_indices | GET /indices/sic | All SIC Indices |
get_all_stock_market_indices | GET /indices/stock_market | All Stock Market Indices |
get_economic_index_by_id | GET /indices/economic/{identifier} | Lookup Economic Index |
get_economic_index_data_point_number | GET /indices/economic/{identifier}/data_point/{tag}/number | Data Point (Number) for an Economic Index |
get_economic_index_data_point_text | GET /indices/economic/{identifier}/data_point/{tag}/text | Data Point (Text) for an Economic Index |
get_economic_index_historical_data | GET /indices/economic/{identifier}/historical_data/{tag} | Historical Data for an Economic Index |
get_eod_index_price_by_id | GET /indices/{identifier}/eod | End of Day Index Prices By Identifier |
get_index_constituents_by_id | GET /indices/{identifier}/constituents | Index Constituents By Index Identifier |
get_index_summary_by_id | GET /indices/{identifier} | Index Summary By Identifier |
get_realtime_index_price_by_id | GET /indices/{identifier}/realtime | Realtime Index Price By Identifier |
get_sic_index_by_id | GET /indices/sic/{identifier} | Lookup SIC Index |
get_sic_index_data_point_number | GET /indices/sic/{identifier}/data_point/{tag}/number | Data Point (Number) for an SIC Index |
get_sic_index_data_point_text | GET /indices/sic/{identifier}/data_point/{tag}/text | Data Point (Text) for an SIC Index |
get_sic_index_historical_data | GET /indices/sic/{identifier}/historical_data/{tag} | Historical Data for an SIC Index |
get_stock_market_index_by_id | GET /indices/stock_market/{identifier} | Lookup Stock Market Index |
get_stock_market_index_data_point_number | GET /indices/stock_market/{identifier}/data_point/{tag}/number | Data Point (Number) for Stock Market Index |
get_stock_market_index_data_point_text | GET /indices/stock_market/{identifier}/data_point/{tag}/text | Data Point (Text) for Stock Market Index |
get_stock_market_index_historical_data | GET /indices/stock_market/{identifier}/historical_data/{tag} | Historical Data for Stock Market Index |
search_economic_indices | GET /indices/economic/search | Search Economic Indices |
search_sic_indices | GET /indices/sic/search | Search SIC Indices |
search_stock_markets_indices | GET /indices/stock_market/search | Search Stock Market Indices |
View Intrinio API Documentation
ApiResponseEconomicIndices get_all_economic_indices(opts)
Returns a list of reference data on more than 200,000 economic indices from the Federal Reserve Economic Data (FRED) database.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
opts = {
page_size: 100,
next_page: nil
}
result = index_api.get_all_economic_indices(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
ApiResponseEodIndexPricesAll get_all_eod_index_prices(opts)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
opts = {
page_size: 100,
start_date: nil,
end_date: nil
}
result = index_api.get_all_eod_index_prices(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
page_size | Integer | The number of results to return | [optional] [default to 100] |
start_date | Date | Limit prices to those on or after this date | [optional] |
end_date | Date | Limit prices to those on or before this date | [optional] |
View Intrinio API Documentation
ApiResponseIndices get_all_index_summaries(opts)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
opts = {
page_size: 100
}
result = index_api.get_all_index_summaries(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
page_size | Integer | The number of results to return | [optional] [default to 100] |
View Intrinio API Documentation
ApiResponseRealtimeIndexPrices get_all_realtime_index_prices(opts)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
opts = {
page_size: 100
}
result = index_api.get_all_realtime_index_prices(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
page_size | Integer | The number of results to return | [optional] [default to 100] |
ApiResponseRealtimeIndexPrices
View Intrinio API Documentation
ApiResponseSICIndices get_all_sic_indices(opts)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
opts = {
page_size: 100,
next_page: nil
}
result = index_api.get_all_sic_indices(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
ApiResponseStockMarketIndices get_all_stock_market_indices(opts)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
opts = {
page_size: 100,
next_page: nil
}
result = index_api.get_all_stock_market_indices(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
View Intrinio API Documentation
EconomicIndex get_economic_index_by_id(identifier)
Returns reference data for a specified Federal Reserve Economic Data (FRED) series ID.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$GDP"
result = index_api.get_economic_index_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) |
View Intrinio API Documentation
Float get_economic_index_data_point_number(identifier, tag)
Returns latest data for a specified Federal Reserve Economic Data (FRED) ID.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$GDP"
tag = "level"
result = index_api.get_economic_index_data_point_number(identifier, tag)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag <a href='https://data.intrinio.com/data-tags/economic'>reference</a> |
Float
View Intrinio API Documentation
String get_economic_index_data_point_text(identifier, tag)
Returns a text value for the given tag
for the Economic Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$GDP"
tag = "level"
result = index_api.get_economic_index_data_point_text(identifier, tag)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name |
String
View Intrinio API Documentation
ApiResponseEconomicIndexHistoricalData get_economic_index_historical_data(identifier, tag, opts)
Returns historical data for a specified Federal Reserve Economic Data (FRED) ID over a period of time.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$GDP"
tag = "level"
opts = {
type: nil,
start_date: Date.parse("2018-01-01"),
end_date: nil,
sort_order: "desc",
page_size: 100,
next_page: nil
}
result = index_api.get_economic_index_historical_data(identifier, tag, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag <a href='https://data.intrinio.com/data-tags/economic'>reference</a> | |
type | String | Filter by type, when applicable | [optional] |
start_date | Date | Get historical data on or after this date | [optional] |
end_date | Date | Get historical data on or before this date | [optional] |
sort_order | String | Sort by date `asc` or `desc` | [optional] [default to desc] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
ApiResponseEconomicIndexHistoricalData
View Intrinio API Documentation
ApiResponseEodIndexPrices get_eod_index_price_by_id(identifier, opts)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "SPX"
opts = {
page_size: 100,
start_date: nil,
end_date: nil
}
result = index_api.get_eod_index_price_by_id(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The index symbol | |
page_size | Integer | The number of results to return | [optional] [default to 100] |
start_date | Date | Limit prices to those on or after this date | [optional] |
end_date | Date | Limit prices to those on or before this date | [optional] |
View Intrinio API Documentation
ApiResponseIndexConstituents get_index_constituents_by_id(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "DJI"
result = index_api.get_index_constituents_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The index symbol |
View Intrinio API Documentation
ApiResponseIndex get_index_summary_by_id(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "SPX"
result = index_api.get_index_summary_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The index symbol |
View Intrinio API Documentation
RealtimeIndexPrice get_realtime_index_price_by_id(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "SPX"
result = index_api.get_realtime_index_price_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | The index symbol |
View Intrinio API Documentation
SICIndex get_sic_index_by_id(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$SIC.2911"
result = index_api.get_sic_index_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) |
View Intrinio API Documentation
Float get_sic_index_data_point_number(identifier, tag)
Returns a numeric value for the given tag
for the SIC Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$SIC.2911"
tag = "marketcap"
result = index_api.get_sic_index_data_point_number(identifier, tag)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name |
Float
View Intrinio API Documentation
String get_sic_index_data_point_text(identifier, tag)
Returns a text value for the given tag
for the SIC Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$SIC.2911"
tag = "marketcap"
result = index_api.get_sic_index_data_point_text(identifier, tag)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name |
String
View Intrinio API Documentation
ApiResponseSICIndexHistoricalData get_sic_index_historical_data(identifier, tag, opts)
Returns historical values for the given tag
and the SIC Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$SIC.1"
tag = "marketcap"
opts = {
type: nil,
start_date: Date.parse("2018-01-01"),
end_date: nil,
sort_order: "desc",
page_size: 100,
next_page: nil
}
result = index_api.get_sic_index_historical_data(identifier, tag, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name | |
type | String | Filter by type, when applicable | [optional] |
start_date | Date | Get historical data on or after this date | [optional] |
end_date | Date | Get historical data on or before this date | [optional] |
sort_order | String | Sort by date `asc` or `desc` | [optional] [default to desc] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
ApiResponseSICIndexHistoricalData
View Intrinio API Documentation
StockMarketIndex get_stock_market_index_by_id(identifier)
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$DJI"
result = index_api.get_stock_market_index_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) |
View Intrinio API Documentation
Float get_stock_market_index_data_point_number(identifier, tag)
Returns a numeric value for the given tag
for the Stock Market Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$DJI"
tag = "level"
result = index_api.get_stock_market_index_data_point_number(identifier, tag)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name |
Float
View Intrinio API Documentation
String get_stock_market_index_data_point_text(identifier, tag)
Returns a text value for the given tag
for the Stock Market Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$DJI"
tag = "level"
result = index_api.get_stock_market_index_data_point_text(identifier, tag)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name |
String
View Intrinio API Documentation
ApiResponseStockMarketIndexHistoricalData get_stock_market_index_historical_data(identifier, tag, opts)
Returns historical values for the given tag
and the Stock Market Index with the given identifier
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
identifier = "$DJI"
tag = "level"
opts = {
type: nil,
start_date: Date.parse("2018-01-01"),
end_date: nil,
sort_order: "desc",
page_size: 100,
next_page: nil
}
result = index_api.get_stock_market_index_historical_data(identifier, tag, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | An Index Identifier (symbol, Intrinio ID) | |
tag | String | An Intrinio data tag ID or code-name | |
type | String | Filter by type, when applicable | [optional] |
start_date | Date | Get historical data on or after this date | [optional] |
end_date | Date | Get historical data on or before this date | [optional] |
sort_order | String | Sort by date `asc` or `desc` | [optional] [default to desc] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
next_page | String | Gets the next page of data from a previous API call | [optional] |
ApiResponseStockMarketIndexHistoricalData
View Intrinio API Documentation
ApiResponseEconomicIndicesSearch search_economic_indices(query, opts)
Search the Federal Reserve Economic Data (FRED) database and return a list of economic indices matching the text query parameter passed through.
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
query = "GDP"
opts = {
page_size: 100
}
result = index_api.search_economic_indices(query, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
query | String | Search query | |
page_size | Integer | The number of results to return | [optional] [default to 100] |
ApiResponseEconomicIndicesSearch
View Intrinio API Documentation
ApiResponseSICIndicesSearch search_sic_indices(query, opts)
Searches for indices using the text in query
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
query = "agriculture"
opts = {
page_size: 100
}
result = index_api.search_sic_indices(query, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
query | String | Search query | |
page_size | Integer | The number of results to return | [optional] [default to 100] |
View Intrinio API Documentation
ApiResponseStockMarketIndicesSearch search_stock_markets_indices(query, opts)
Searches for indices using the text in query
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
index_api = Intrinio::IndexApi.new
query = "dow"
opts = {
page_size: 100
}
result = index_api.search_stock_markets_indices(query, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
query | String | Search query | |
page_size | Integer | The number of results to return | [optional] [default to 100] |