Historical Data for an Economic Index

Historical Data for an Economic Index Python API Documentation

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

API Class:
IndexApi
Instance Method:
get_economic_index_historical_data()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = '$GDP'
tag = 'level'
type = ''
start_date = '2018-01-01'
end_date = ''
sort_order = 'desc'
page_size = 100
next_page = ''
response = intrinio.IndexApi().get_economic_index_historical_data(identifier, tag, type=type, start_date=start_date, end_date=end_date, sort_order
  =sort_order, page_size=page_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrAn Index Identifier (symbol, Intrinio ID) 
tagstrAn Intrinio data tag reference 
typestrFilter by type, when applicable[optional]  
start_datedateGet historical data on or after this date[optional]  
end_datedateGet historical data on or before this date[optional]  
sort_orderstrSort by date `asc` or `desc`[optional] [default to desc]  
page_sizeintThe number of results to return[optional] [default to 100]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseEconomicIndexHistoricalData

Properties

NameTypeDescription
historical_datalist[HistoricalData] 
indexEconomicIndexSummary 
next_pagestrThe token required to request the next page of the data. If null, no further results are available.  
object
HistoricalData

Properties

NameTypeDescription
datedateThe date that the value is present  
valuefloatThe historical value  
object
EconomicIndexSummary

Properties

NameTypeDescription
idstrThe Intrinio ID for the Index  
symbolstrThe symbol used to identify the Index  
namestrThe name of the Index  
continentstrThe continent of the country of focus for the Index  
countrystrThe country of focus for the Index  
update_frequencystrHow often the Index is updated  
last_updateddatetimeWhen the Index was updated last  
observation_startdateThe earliest date for which data is available  
observation_enddateThe latest date for which data is available  
seasonal_adjustmentstrWhether the data is adjusted to account for seasonality  
unitsstrThe units of the data