talkytrend.handler.yfinance.YfinanceHandler#
- class talkytrend.handler.yfinance.YfinanceHandler(**kwargs)[source]#
Bases:
ClientInitialize the object with the given keyword arguments.
- Parameters:
kwargs – keyword arguments
- Returns:
None
Methods
fetch([ticker])Fetches the information for a given instrument from yahoo finance.
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(ticker=None)[source]#
Fetches the information for a given instrument from yahoo finance.
- Parameters:
ticker_reference (str) – The ticker symbol or
"MSFT". (reference of the instrument. Defaults to)
- Returns:
The formatted string containing the title and link of the latest news article for the instrument.
Returns None if there is no news available.
- Return type:
str
- 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