End of Day Index Prices By Identifier

End of Day Index Prices By Identifier Javascript API Documentation

API Class:
IndexApi
Instance Method:
getEodIndexPriceById()

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 = "SPX";
var opts = {
'pageSize': 100,
'startDate': null,
'endDate': null
};
index.getEodIndexPriceById(identifier, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringThe index symbol 
pageSizeNumberThe number of results to return[optional] [default to 100]  
startDateDateLimit prices to those on or after this date[optional]  
endDateDateLimit prices to those on or before this date[optional]  


Return Type

object
ApiResponseEodIndexPrices

Properties

NameTypeDescription
prices[EodIndexPriceSummary] 
indexApiResponseIndexThe index  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
EodIndexPriceSummary

Properties

NameTypeDescription
closeNumberThe close price  
openNumberThe open price  
highNumberThe high price  
lowNumberThe low price  
volumeNumberThe volume  
dateDateThe date of the pricing data.  
object
ApiResponseIndex

Properties

NameTypeDescription
symbolStringThe index symbol  
nameStringThe index name