All URIs are relative to https://api-v2.intrinio.com
Method | HTTP request | Description |
---|---|---|
get_all_stock_exchanges | GET /stock_exchanges | All Stock Exchanges |
get_stock_exchange_by_id | GET /stock_exchanges/{identifier} | Lookup Stock Exchange |
get_stock_exchange_price_adjustments | GET /stock_exchanges/{identifier}/prices/adjustments | Stock Price Adjustments by Exchange |
get_stock_exchange_prices | GET /stock_exchanges/{identifier}/prices | Stock Prices by Exchange |
get_stock_exchange_realtime_prices | GET /stock_exchanges/{identifier}/prices/realtime | Realtime Stock Prices by Exchange |
get_stock_exchange_securities | GET /stock_exchanges/{identifier}/securities | Securities by Exchange |
View Intrinio API Documentation
ApiResponseStockExchanges get_all_stock_exchanges(opts)
Returns all Stock Exchanges matching the specified parameters
# 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
stockExchange_api = Intrinio::StockExchangeApi.new
opts = {
city: "New York",
country: "UNITED STATES OF AMERICA",
country_code: "US",
page_size: 100
}
result = stockExchange_api.get_all_stock_exchanges(opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
city | String | Filter by city | [optional] |
country | String | Filter by country | [optional] |
country_code | String | Filter by ISO country code | [optional] |
page_size | Integer | The number of results to return | [optional] [default to 100] |
View Intrinio API Documentation
StockExchange get_stock_exchange_by_id(identifier)
Returns the Stock Exchange 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
stockExchange_api = Intrinio::StockExchangeApi.new
identifier = "USCOMP"
result = stockExchange_api.get_stock_exchange_by_id(identifier)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Stock Exchange identifier (MIC or Intrinio ID) |
View Intrinio API Documentation
ApiResponseStockExchangeStockPriceAdjustments get_stock_exchange_price_adjustments(identifier, opts)
Returns stock price adjustments for the Stock Exchange 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
stockExchange_api = Intrinio::StockExchangeApi.new
identifier = "USCOMP"
opts = {
date: Date.parse("2018-08-14"),
page_size: 100,
next_page: nil
}
result = stockExchange_api.get_stock_exchange_price_adjustments(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Stock Exchange identifier (MIC or Intrinio ID) | |
date | Date | The date for which to return price adjustments | [optional] |
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] |
ApiResponseStockExchangeStockPriceAdjustments
View Intrinio API Documentation
ApiResponseStockExchangeStockPrices get_stock_exchange_prices(identifier, opts)
Returns end-of-day stock prices for Securities on the Stock Exchange with identifier
and on the price_date
(or the latest date that prices are available)
# 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
stockExchange_api = Intrinio::StockExchangeApi.new
identifier = "USCOMP"
opts = {
date: Date.parse("2018-08-14"),
page_size: 100,
next_page: nil
}
result = stockExchange_api.get_stock_exchange_prices(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Stock Exchange identifier (MIC or Intrinio ID) | |
date | Date | The date for which to return prices | [optional] |
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] |
ApiResponseStockExchangeStockPrices
View Intrinio API Documentation
ApiResponseStockExchangeRealtimeStockPrices get_stock_exchange_realtime_prices(identifier, opts)
Returns realtime stock prices for the Stock Exchange 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
stockExchange_api = Intrinio::StockExchangeApi.new
identifier = "USCOMP"
opts = {
source: nil,
active_only: nil,
page_size: 100,
next_page: nil
}
result = stockExchange_api.get_stock_exchange_realtime_prices(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Stock Exchange identifier (MIC or Intrinio ID) | |
source | String | Return realtime prices from the specified data source. If no source is specified, all sources are used. | [optional] |
active_only | BOOLEAN | Returns prices only from the most recent trading day. | [optional] |
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] |
ApiResponseStockExchangeRealtimeStockPrices
View Intrinio API Documentation
ApiResponseStockExchangeSecurities get_stock_exchange_securities(identifier, opts)
Returns Securities traded on the Stock Exchange with 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
stockExchange_api = Intrinio::StockExchangeApi.new
identifier = "USCOMP"
opts = {
page_size: 100,
next_page: nil
}
result = stockExchange_api.get_stock_exchange_securities(identifier, opts)
pp result
Name | Type | Description | Notes |
---|---|---|---|
identifier | String | A Stock Exchange identifier (MIC or Intrinio ID) | |
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] |