End of Day Index Prices By Identifier

End of Day Index Prices By Identifier Java API Documentation

API Class:
IndexApi
Instance Method:
getEodIndexPriceById()

Stock Price Code Example

Use my API Key
import com.intrinio.api.*;
import com.intrinio.models.*;
import com.intrinio.invoker.*;
import com.intrinio.invoker.auth.*;
import org.threeten.bp.*;
import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth auth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
auth.setApiKey("YOUR_API_KEY");
defaultClient.setAllowRetries(true);
IndexApi indexApi = new IndexApi();
String identifier = "SPX";
Integer pageSize = 100;
LocalDate startDate = null;
LocalDate endDate = null;
ApiResponseEodIndexPrices result = indexApi.getEodIndexPriceById(identifier, pageSize, startDate, endDate);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringThe index symbol 
pageSizeIntegerThe number of results to return[optional] [default to 100]  
startDateLocalDateLimit prices to those on or after this date[optional]  
endDateLocalDateLimit prices to those on or before this date[optional]  


Return Type

object
ApiResponseEodIndexPrices

Properties

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

Properties

NameTypeDescription
closeBigDecimalThe close price  
openBigDecimalThe open price  
highBigDecimalThe high price  
lowBigDecimalThe low price  
volumeIntegerThe volume  
dateLocalDateThe date of the pricing data.  
object
ApiResponseIndex

Properties

NameTypeDescription
symbolStringThe index symbol  
nameStringThe index name