Historical Data for an Economic Index

Historical Data for an Economic Index Csharp API Documentation

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

API Class:
Intrinio.SDK.Api.IndexApi
Instance Method:
GetEconomicIndexHistoricalData()

Stock Price Code Example

Use my API Key
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetEconomicIndexHistoricalDataExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var indexApi = new IndexApi();
string identifier = "$GDP";
string tag = "level";
string type = null;
DateTime? startDate = DateTime.Parse("2018-01-01");
DateTime? endDate = null;
string sortOrder = "desc";
int? pageSize = 100;
string nextPage = null;
ApiResponseEconomicIndexHistoricalData result = indexApi.GetEconomicIndexHistoricalData(identifier, tag, type, startDate, endDate, sortOrder,
        pageSize, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstringAn Index Identifier (symbol, Intrinio ID) 
tagstringAn Intrinio data tag reference 
typestringFilter by type, when applicable[optional]  
startDateDateTime?Get historical data on or after this date[optional]  
endDateDateTime?Get historical data on or before this date[optional]  
sortOrderstringSort by date `asc` or `desc`[optional] [default to desc]  
pageSizeint?The number of results to return[optional] [default to 100]  
nextPagestringGets the next page of data from a previous API call[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseEconomicIndexHistoricalData

Properties

NameTypeDescription
HistoricalDataList 
IndexEconomicIndexSummary 
NextPagestringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio.SDK.Model.HistoricalData

Properties

NameTypeDescription
DateDateTime?The date that the value is present  
Valuedecimal?The historical value  
object
Intrinio.SDK.Model.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  
LastUpdatedDateTime?When the Index was updated last  
ObservationStartDateTime?The earliest date for which data is available  
ObservationEndDateTime?The latest date for which data is available  
SeasonalAdjustmentstringWhether the data is adjusted to account for seasonality  
UnitsstringThe units of the data