Historical Data

Historical Data Javascript API Documentation

Returns historical values for the given `tag` and the entity represented by the given `identifier`

API Class:
HistoricalDataApi
Instance Method:
getHistoricalData()

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 historicalData = new intrinioSDK.HistoricalDataApi();
var identifier = "AAPL";
var tag = "marketcap";
var opts = {
'frequency': "daily",
'type': null,
'startDate': new Date("2015-01-01"),
'endDate': null,
'sortOrder': "desc",
'pageSize': 100,
'nextPage': null
};
historicalData.getHistoricalData(identifier, tag, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringAn identifier for an entity such as a Company, Security, Index, etc (Ticker, FIGI, ISIN, CUSIP, CIK, LEI, Intrinio ID) 
tagStringAn Intrinio data tag ID or code (reference) 
frequencyStringReturn historical data in the given frequency[optional] [default to daily]  
typeStringFilter by type, when applicable[optional]  
startDateDateGet historical data on or after this date[optional]  
endDateDateGet historical date on or before this date[optional]  
sortOrderStringSort by date `asc` or `desc`[optional] [default to desc]  
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
ApiResponseHistoricalData

Properties

NameTypeDescription
historicalData[HistoricalData] 
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
HistoricalData

Properties

NameTypeDescription
dateDateThe date that the value is present  
valueNumberThe historical value