Skip to content
Docs
Get API key
Financials

Financials Earnings Calendar Streaming

Use the Trading Economics API streaming to obtain live financial data.

The Trading Economics API streaming endpoint can be used to receive live earnings calendar data utilizing a persistent web socket connection. Streaming data from the API consists of making an authorization request and leaving the socket open to continually receive data. You can authorize using your API client credentials (key/secret). Then you will be able to subscribe to our streaming channel.

Get live earnings

Python
import tradingeconomics as te
import json
te.login('you_private_key')

def on_message(ws, message):
    print(json.loads(message))

te.subscribe('earnings')
te.run(on_message)
Bash
{"event":"Aena Earnings","country":"Spain","category":"Earnings","actual":"2.33","previous":"2.68","date":"2023-12-31T00:00:00.000Z","fiscalTag":"FY2023Q4                 ","fiscalReference":"Q4","calendarReference":"2023-12-31T00:00:00.000Z","importance":2,"teforecast":"2.42","consensus":"2.42","currency":"EUR","symbol":"AENA:SM","topic":"earnings"}'

Response fields

FieldTypeDescriptionExample
eventstringName of the earnings event“Aena Earnings”
countrystringCountry of the company“Spain”
categorystringType of release (e.g., Earnings, Revenue)“Earnings”
actualstringReported value for the current period“2.33”
previousstringValue from the prior period (revised if applicable)“2.68”
datestringRelease date and time in UTC“2023-12-31T00:00:00.000Z”
FiscalTagstringFiscal year and quarter identifier“FY2023Q4”
FiscalReferencestringFiscal period in short format“Q4”
CalendarReferencestringCalendar quarter end date in UTC“2023-12-31T00:00:00.000Z”
importancenumberIndicator of importance: 1 = low, 2 = medium, 3 = high2
teforecaststringTrading Economics proprietary projection“2.42”
consensusstringConsensus forecast from analysts“2.42”
currencystringCurrency of reported values“EUR”
symbolstringUnique Trading Economics symbol“AENA:SM”
topicstringSubscribed topic identifier“earnings”