Historical Data for Stock Market Index

Historical Data for Stock Market Index Javascript API Documentation

Returns historical values for the given `tag` and the Stock Market Index with the given `identifier`

API Class:
IndexApi
Instance Method:
getStockMarketIndexHistoricalData()

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 index = new intrinioSDK.IndexApi();
var identifier = "$DJI";
var tag = "level";
var opts = {
'type': null,
'startDate': new Date("2018-01-01"),
'endDate': null,
'sortOrder': "desc",
'pageSize': 100,
'nextPage': null
};
index.getStockMarketIndexHistoricalData(identifier, tag, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringAn Index Identifier (symbol, Intrinio ID) 
tagStringAn Intrinio data tag ID or code-name 
typeStringFilter by type, when applicable[optional]  
startDateDateGet historical data on or after this date[optional]  
endDateDateGet 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
ApiResponseStockMarketIndexHistoricalData

Properties

NameTypeDescription
historicalData[HistoricalData] 
indexStockMarketIndexSummary 
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
StockMarketIndexSummary

Properties

NameTypeDescription
idStringIntrinio ID for the Index  
symbolStringThe symbol used to identify the Index  
nameStringThe name of the Index  
continentStringThe continent of the country of focus for the Index  
countryStringThe country of focus for the Index  
updateFrequencyStringHow often the Index is updated  
lastUpdatedDateWhen the Index was updated last  
observationStartDateThe earliest date for which data is available  
observationEndDateThe latest date for which data is available