We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b0d8d4 commit e09250bCopy full SHA for e09250b
src/api_get_stock_prices_yfinance.py
@@ -50,7 +50,14 @@ async def search_stock_symbol(keyword):
50
else:
51
logging.info(f"Fallback candidate {best_candidate} has no history.")
52
# 3) If we still don’t get a valid ticker, just bail out
53
- return "No matches found."
+ # return "No matches found."
54
+
55
+ # 3) Or, rather, tell the user:
56
+ return (
57
+ "We were unable to find the ticker for the keyword you provided. "
58
+ "You can tell the user (in their language) that you can use other tools (e.g., Perplexity API or a web search) "
59
+ "to locate the correct ticker symbol for them."
60
+ )
61
62
def yahoo_finance_search(query):
63
"""
0 commit comments