talkytrend.handler.calendar.CalendarHandler#
- class talkytrend.handler.calendar.CalendarHandler(**kwargs)[source]#
Bases:
ClientCalendarHandler to retrieve economic events from the forexfactory economic calendar.
Initialize the object with the given keyword arguments.
- Parameters:
kwargs – keyword arguments
- Returns:
None
Methods
fetch()Retrieves the next high-impact economic event from the economic calendar.
get_news()Asynchronously retrieves the latest news from various sources based on the configured settings.
monitor()Asynchronously monitors the system and retrieves various data sources based on the configured settings.
- async fetch()[source]#
Retrieves the next high-impact economic event from the economic calendar.
- Returns:
A formatted string representing the next high-impact
economic event, or None if no such event is found.
- async monitor()[source]#
Asynchronously monitors the system and retrieves various data sources based on the configured settings. Cover Events, Feed, and Signal.
- Returns:
- A string containing the concatenated results
of the retrieved data sources.
- Return type:
str
- async get_news()#
Asynchronously retrieves the latest news from various sources based on the configured settings.
- Returns:
- A string containing the concatenated
results of the retrieved news sources.
- Return type:
str