Stock Prices by Exchange

Stock Prices by Exchange R API Documentation

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)

API Class:
IntrinioSDK::StockExchangeApi
Instance Method:
get_stock_exchange_prices()

Stock Price Code Example

Use my API Key
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
StockExchangeApi <- IntrinioSDK::StockExchangeApi$new(client)
# Required params
identifier <- "USCOMP"
# Optional params
opts <- list(
date = as.Date("2018-08-14"),
start_date = as.Date("2020-08-14"),
end_date = as.Date("2022-08-14"),
page_size = 100,
next_page = NULL,
tickers = ["AAPL,MSFT,NVDA"],
next_page2 = NULL
)
response <- StockExchangeApi$get_stock_exchange_prices(identifier, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterA Stock Exchange identifier (MIC or Intrinio ID) 
dateDateThe date for which to return prices. May not be used with the start_date and end_date parameters.[optional]  
start_dateDateThe start of the date range you're querying. May not be used with date parameter.[optional]  
end_dateDateThe end of the date range you're querying. May not be used with date parameter.[optional]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
next_pageCharacterGets the next page of data from a previous API call[optional]  
tickersCharacterThe comma-delimited list of ticker symbols to filter down to. If not provided, the entire stock exchange is returned.[optional]  
next_page2CharacterGets the next page of data from a previous API call[optional]  


Return Type

object
IntrinioSDK::ApiResponseStockExchangeStockPrices

Properties

NameTypeDescription
stock_pricesList of StockPriceThe stock prices for all Securities traded on the Stock Exchange on the given date  
stock_prices_data_frameData FrameData frame representation of stock_prices
stock_exchangeStockExchangeThe Stock Exchange resolved from the given identifier  
next_pageCharacterThe token required to request the next page of the data. If null, no further results are available.  
object
IntrinioSDK::StockPrice

Properties

NameTypeDescription
dateDateThe calendar date that the stock price represents. For non-daily stock prices, this represents the last day in the period (end of the week, month, quarter, year, etc)  
intraperiodLogicalIf TRUE, the stock price represents an unfinished period (be it day, week, quarter, month, or year), meaning that the close price is the latest price available, not the official close price for the period  
frequencyCharacterThe type of period that the stock price represents  
openNumericThe price at the beginning of the period  
highNumericThe highest price over the span of the period  
lowNumericThe lowest price over the span of the period  
closeNumericThe price at the end of the period  
volumeNumericThe number of shares exchanged during the period  
adj_openNumericThe price at the beginning of the period, adjusted for splits and dividends  
adj_highNumericThe highest price over the span of the period, adjusted for splits and dividends  
adj_lowNumericThe lowest price over the span of the period, adjusted for splits and dividends  
adj_closeNumericThe price at the end of the period, adjusted for splits and dividends  
adj_volumeNumericThe number of shares exchanged during the period, adjusted for splits and dividends  
factorNumericThe factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices.  
split_ratioNumericThe ratio of the stock split, if a stock split occurred.  
dividendNumericThe dividend amount, if a dividend was paid.  
changeNumericThe difference in price from the last price for this frequency  
percent_changeNumericThe percent difference in price from the last price for this frequency  
fifty_two_week_highNumericThe 52 week high price (daily only)  
fifty_two_week_lowNumericThe 52 week low price (daily only)  
securitySecuritySummaryThe Security of the stock price  
object
IntrinioSDK::SecuritySummary

Properties

NameTypeDescription
idCharacterThe Intrinio ID for Security  
company_idCharacterThe Intrinio ID for the Company for which the Security is issued  
exchangeCharacterThe exchange's MIC  
exchange_micCharacterThe security's exchange MIC  
stock_exchange_idCharacterThe exchange's Intrinio ID  
nameCharacterThe name of the Security  
codeCharacterA 2-3 digit code classifying the Security (reference)  
currencyCharacterThe currency in which the Security is traded on the exchange  
tickerCharacterThe common/local ticker of the Security  
composite_tickerCharacterThe country-composite ticker of the Security  
figiCharacterThe OpenFIGI identifier  
composite_figiCharacterThe country-composite OpenFIGI identifier  
share_class_figiCharacterThe global-composite OpenFIGI identifier  
primary_listingLogicalIf TRUE, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange  
object
IntrinioSDK::StockExchange

Properties

NameTypeDescription
idCharacterThe Intrinio ID for the Stock Exchange  
nameCharacterThe name of the exchange  
micCharacterThe Market Identifier Code (MIC) of the exchange  
acronymCharacterThe acronym of the exchange's name  
cityCharacterThe city in which the exchange is located  
countryCharacterThe country in which the exchange is located  
country_codeCharacterThe 2-digit code of the exchange's country  
websiteCharacterThe website of the exchange  
first_stock_price_dateDateThe earliest date for which Intrinio has stock prices for the exchange  
last_stock_price_dateDateThe latest date for which Intrinio has stock prices for the exchange