fixedgetIndicators call

This commit is contained in:
gnarayan1 2025-12-06 08:26:27 -06:00
parent 59860b6a30
commit cfb7287f89
3 changed files with 7 additions and 0 deletions

View File

@ -20,4 +20,6 @@ def get_indicators(
Returns:
str: A formatted dataframe containing the technical indicators for the specified ticker symbol and indicator.
"""
# Normalize indicator to lowercase to handle LLM-generated uppercase values
indicator = indicator.lower()
return route_to_vendor("get_indicators", symbol, indicator, curr_date, look_back_days)

View File

@ -27,6 +27,9 @@ def get_indicator(
from datetime import datetime
from dateutil.relativedelta import relativedelta
# Normalize indicator to lowercase
indicator = indicator.lower()
supported_indicators = {
"close_50_sma": ("50 SMA", "close"),
"close_200_sma": ("200 SMA", "close"),

View File

@ -54,6 +54,8 @@ def get_stock_stats_indicators_window(
],
look_back_days: Annotated[int, "how many days to look back"],
) -> str:
# Normalize indicator to lowercase
indicator = indicator.lower()
best_ind_params = {
# Moving Averages