Interval Stock Prices for Security

Interval Stock Prices for Security Javascript API Documentation

Return open, close, high, low, volume, average price, and change ratio for a particular interval for the Security with the given `identifier`

API Class:
SecurityApi
Instance Method:
getSecurityIntervalPrices()

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 intervalSize = "15m";
var opts = {
'source': null,
'startDate': new Date("2023-01-01"),
'startTime': "33300",
'endDate': new Date("2023-02-01"),
'endTime': "33300",
'timezone': "UTC",
'pageSize': 100,
'splitAdjusted': false,
'includeQuoteOnlyBars': false,
'nextPage': null
};
security.getSecurityIntervalPrices(identifier, intervalSize, 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) 
intervalSizeStringThe interval for which to return stock prices[default to 15m]  
sourceStringReturn intervals from the specified data source[optional]  
startDateDateReturn intervals starting at the specified date[optional]  
startTimeStringReturn intervals starting at the specified time on the `start_date` (24-hour in ‘hh:mm:ss' format)[optional]  
endDateDateReturn intervals stopping at the specified date[optional]  
endTimeStringReturn intervals stopping at the specified time on the `end_date` (24-hour in ‘hh:mm:ss' format)[optional]  
timezoneStringInterprets the input times in this time zone, as well as returns times in this timezone.[optional] [default to UTC]  
pageSizeNumberThe number of results to return[optional] [default to 100]  
splitAdjustedBooleanWhether to return the values adjusted for splits or not. Default is false.[optional] [default to false]  
includeQuoteOnlyBarsBooleanIf true, also include bars where no trades occurred but quotes did.[optional] [default to false]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityIntervalPrices

Properties

NameTypeDescription
intervals[StockPriceInterval]Open, close, high, low, volume, average price, and change ratio for a particular interval  
securitySecuritySummaryThe Security resolved from the given identifier  
sourceStringThe source of the data  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
StockPriceInterval

Properties

NameTypeDescription
timeDateThe timestamp that represents the start of the interval span.  
openNumberThe first traded price during the period  
closeNumberThe last traded price during the period  
highNumberThe highest price over the span of the period  
lowNumberThe lowest price over the span of the period  
volumeNumberThe number of shares exchanged during the period  
closeTimeDateThe timestamp that represents the end of the interval span.  
intervalStringThe size of the interval.  
averageNumberThe average trade price of an individual stock during the interval.  
changeNumberThe change ratio from open to close. ((Close - Open)/Open).  
bidHighNumberThe highest bid price from the interval.  
bidLowNumberThe lowest bid price from the interval.  
bidCloseNumberThe last bid price from the interval.  
bidOpenNumberThe first bid price from the interval.  
bidFirstTimeDateThe timestamp that represents the first bid time from the interval span.  
bidLastTimeDateThe timestamp that represents the last bid time from the interval span.  
bidChangePercentNumberThe ratio of the close to open bid difference, in percent.  
askHighNumberThe highest ask price from the interval.  
askLowNumberThe lowest ask price from the interval.  
askCloseNumberThe last ask price from the interval.  
askOpenNumberThe first ask price from the interval.  
askFirstTimeDateThe timestamp that represents the first ask time from the interval span.  
askLastTimeDateThe timestamp that represents the last ask time from the interval span.  
askChangePercentNumberThe ratio of the close to open ask difference, in percent.  
tradeCountNumberThe number of qualified trades executed during the period  
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