Historical

The API also provides historical of stocks earnings and fundamental information. Category is always a required parameter.

By symbol and category

Get financials historical data by specific or multiple symbols and categories

/financials/historical/{symbol:category}

te.getFinancialsHistorical(symbol = 'aapl:us', category = 'assets', output_type = 'df')
data = te.getFinancialsHistorical(symbol = 'aapl:us', category = 'assets' ).then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/financials/historical/aapl:us:assets?c=guest:guest");

/financials/historical/{symbol:category,symbol:category}

te.getFinancialsHistorical(symbol = ['aapl:us' , 'msft:us'], category = 'assets',
 output_type = 'df')
data = te.getFinancialsHistorical(symbol = ['aapl:us', 'msft:us'],
 category = 'assets' ).then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/financials/historical/aapl:us:assets,msft:us:assets?c=guest:guest");

By symbol, category and date

Get financials historical data by specific or multiple symbols and categories, and a date interval

/financials/historical/{symbol:category}?d1=yyyy-mm-dd&d2=yyyy-mm-dd

te.getFinancialsHistorical(symbol = 'aapl:us', category = 'assets',
 initDate = '2022-01-01', endDate ='2023-01-01', output_type = 'df')
data = te.getFinancialsHistorical(symbol = 'aapl:us', category = 'assets',
 start_date = '2022-01-01', end_date = '2023-01-01').then(function(data){
  console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/financials/historical/aapl:us:assets?d1=2022-01-01&d2=2023-01-01&c=guest:guest");

Response fields

FieldTypeDescriptionExample
SymbolstringUnique symbol used by Trading Economics“aapl:us”
CategorystringFinancials historical category“assets”
DatestringTrading Economics date time in UTC“2009-12-31T00:00:00”
ValuenumberValue of the historical date53926.0000
ReportstringDate Reporting date“2009-12-26T00:00:00”
ReferencestringFiscal reference date“FY2010Q1”