Historical Data for Company

Historical Data for Company Javascript API Documentation

Returns historical values for the given `tag` and the Company with the given `identifier`

API Class:
CompanyApi
Instance Method:
getCompanyHistoricalData()

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

Parameters

NameTypeDescriptionNotes
identifierStringA Company identifier (Ticker, CIK, LEI, Intrinio ID) 
tagStringAn Intrinio data tag ID or code (reference) 
frequencyStringReturn historical data in the given frequency[optional] [default to daily]  
typeStringReturn historical data for given fiscal period type[optional]  
startDateDateReturn historical data on or after this date[optional]  
endDateDateReturn historical data 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
ApiResponseCompanyHistoricalData

Properties

NameTypeDescription
historicalData[HistoricalData] 
companyCompanySummary 
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  
object
CompanySummary

Properties

NameTypeDescription
idStringThe Intrinio ID of the company  
tickerStringThe stock market ticker symbol associated with the company's common stock securities  
nameStringThe company's common name  
leiStringThe Legal Entity Identifier (LEI) assigned to the company  
cikStringThe Central Index Key (CIK) assigned to the company