Historical Data for an SIC Index

Historical Data for an SIC Index Java API Documentation

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

API Class:
IndexApi
Instance Method:
getSicIndexHistoricalData()

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 = "$SIC.1";
String tag = "marketcap";
String type = null;
LocalDate startDate = LocalDate.of(2018,1,01);
LocalDate endDate = null;
String sortOrder = "desc";
Integer pageSize = 100;
String nextPage = null;
ApiResponseSICIndexHistoricalData result = indexApi.getSicIndexHistoricalData(identifier, tag, type, startDate, endDate, sortOrder, pageSize,
      nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringAn Index Identifier (symbol, Intrinio ID) 
tagStringAn Intrinio data tag ID or code-name 
typeStringFilter by type, when applicable[optional]  
startDateLocalDateGet historical data on or after this date[optional]  
endDateLocalDateGet historical data on or before this date[optional]  
sortOrderStringSort by date `asc` or `desc`[optional] [default to desc] [enum: asc, desc]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSICIndexHistoricalData

Properties

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

Properties

NameTypeDescription
dateLocalDateThe date that the value is present  
valueBigDecimalThe historical value  
object
SICIndex

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