Stock Prices by Security

Stock Prices by Security Javascript API Documentation

Return end-of-day stock prices for the Security with the given `identifier`

API Class:
SecurityApi
Instance Method:
getSecurityStockPrices()

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 security = new intrinioSDK.SecurityApi();
var identifier = "AAPL";
var opts = {
'startDate': new Date("2018-01-01"),
'endDate': new Date("2019-01-01"),
'frequency': "daily",
'pageSize': 100,
'nextPage': null
};
security.getSecurityStockPrices(identifier, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
startDateDateReturn prices on or after the date[optional]  
endDateDateReturn prices on or before the date[optional]  
frequencyStringReturn stock prices in the given frequency[optional] [default to daily]  
pageSizeNumberThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityStockPrices

Properties

NameTypeDescription
stockPrices[StockPriceSummary]The stock prices for the Security  
securitySecuritySummaryThe Security resolved from the given identifier  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
StockPriceSummary

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)  
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