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
Field | Type | Description | Example |
---|---|---|---|
Symbol | string | Unique symbol used by Trading Economics | “aapl:us” |
Category | string | Financials historical category | “assets” |
Date | string | Trading Economics date time in UTC | “2009-12-31T00:00:00” |
Value | number | Value of the historical date | 53926.0000 |
Report | string | Date Reporting date | “2009-12-26T00:00:00” |
Reference | string | Fiscal reference date | “FY2010Q1” |