Historical Data for an Economic Index

Historical Data for an Economic Index Java API Documentation

Returns historical data for a specified Federal Reserve Economic Data (FRED) ID over a period of time.

API Class:
IndexApi
Instance Method:
getEconomicIndexHistoricalData()

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 = "$GDP";
String tag = "level";
String type = null;
LocalDate startDate = LocalDate.of(2018,1,01);
LocalDate endDate = null;
String sortOrder = "desc";
Integer pageSize = 100;
String nextPage = null;
ApiResponseEconomicIndexHistoricalData result = indexApi.getEconomicIndexHistoricalData(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 reference 
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
ApiResponseEconomicIndexHistoricalData

Properties

NameTypeDescription
historicalDataList 
indexEconomicIndexSummary 
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
EconomicIndexSummary

Properties

NameTypeDescription
idStringThe Intrinio 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  
lastUpdatedOffsetDateTimeWhen the Index was updated last  
observationStartLocalDateThe earliest date for which data is available  
observationEndLocalDateThe latest date for which data is available  
seasonalAdjustmentStringWhether the data is adjusted to account for seasonality  
unitsStringThe units of the data