Stock Prices by Exchange

Stock Prices by Exchange Javascript 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:
StockExchangeApi
Instance Method:
getStockExchangePrices()

Stock Price Code Example

Use my API Key
var intrinioSDK = require('intrinio-sdk');
intrinioSDK.ApiClient.instance.authentications['ApiKeyAuth'].apiKey = "YOUR_API_KEY";
intrinioSDK.ApiClient.instance.enableRetries = true;
var stockExchange = new intrinioSDK.StockExchangeApi();
var identifier = "USCOMP";
var opts = {
'date': new Date("2018-08-14"),
'startDate': new Date("2020-08-14"),
'endDate': new Date("2022-08-14"),
'pageSize': 100,
'nextPage': null,
'tickers': ["AAPL,MSFT,NVDA"],
'nextPage2': null
};
stockExchange.getStockExchangePrices(identifier, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA 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]  
startDateDateThe start of the date range you're querying. May not be used with date parameter.[optional]  
endDateDateThe end of the date range you're querying. May not be used with date parameter.[optional]  
pageSizeNumberThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  
tickers[String]The comma-delimited list of ticker symbols to filter down to. If not provided, the entire stock exchange is returned.[optional]  
nextPage2StringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseStockExchangeStockPrices

Properties

NameTypeDescription
stockPrices[StockPrice]The stock prices for all Securities traded on the Stock Exchange on the given date  
stockExchangeStockExchangeThe Stock Exchange resolved from the given identifier  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
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)  
intraperiodBooleanIf 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  
frequencyStringThe type of period that the stock price represents  
openNumberThe price at the beginning of the period  
highNumberThe highest price over the span of the period  
lowNumberThe lowest price over the span of the period  
closeNumberThe price at the end of the period  
volumeNumberThe number of shares exchanged during the period  
adjOpenNumberThe price at the beginning of the period, adjusted for splits and dividends  
adjHighNumberThe highest price over the span of the period, adjusted for splits and dividends  
adjLowNumberThe lowest price over the span of the period, adjusted for splits and dividends  
adjCloseNumberThe price at the end of the period, adjusted for splits and dividends  
adjVolumeNumberThe number of shares exchanged during the period, adjusted for splits and dividends  
factorNumberThe factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices.  
splitRatioNumberThe ratio of the stock split, if a stock split occurred.  
dividendNumberThe dividend amount, if a dividend was paid.  
changeNumberThe difference in price from the last price for this frequency  
percentChangeNumberThe percent difference in price from the last price for this frequency  
fiftyTwoWeekHighNumberThe 52 week high price (daily only)  
fiftyTwoWeekLowNumberThe 52 week low price (daily only)  
securitySecuritySummaryThe Security of the stock price  
object
SecuritySummary

Properties

NameTypeDescription
idStringThe Intrinio ID for Security  
companyIdStringThe Intrinio ID for the Company for which the Security is issued  
exchangeStringThe exchange's MIC  
exchangeMicStringThe security's exchange MIC  
stockExchangeIdStringThe exchange's Intrinio ID  
nameStringThe name of the Security  
codeStringA 2-3 digit code classifying the Security (reference)  
currencyStringThe currency in which the Security is traded on the exchange  
tickerStringThe common/local ticker of the Security  
compositeTickerStringThe country-composite ticker of the Security  
figiStringThe OpenFIGI identifier  
compositeFigiStringThe country-composite OpenFIGI identifier  
shareClassFigiStringThe global-composite OpenFIGI identifier  
primaryListingBooleanIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange  
object
StockExchange

Properties

NameTypeDescription
idStringThe Intrinio ID for the Stock Exchange  
nameStringThe name of the exchange  
micStringThe Market Identifier Code (MIC) of the exchange  
acronymStringThe acronym of the exchange's name  
cityStringThe city in which the exchange is located  
countryStringThe country in which the exchange is located  
countryCodeStringThe 2-digit code of the exchange's country  
websiteStringThe website of the exchange  
firstStockPriceDateDateThe earliest date for which Intrinio has stock prices for the exchange  
lastStockPriceDateDateThe latest date for which Intrinio has stock prices for the exchange