fixedgetIndicators call
This commit is contained in:
parent
59860b6a30
commit
cfb7287f89
|
|
@ -20,4 +20,6 @@ def get_indicators(
|
||||||
Returns:
|
Returns:
|
||||||
str: A formatted dataframe containing the technical indicators for the specified ticker symbol and indicator.
|
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)
|
return route_to_vendor("get_indicators", symbol, indicator, curr_date, look_back_days)
|
||||||
|
|
@ -27,6 +27,9 @@ def get_indicator(
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from dateutil.relativedelta import relativedelta
|
from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
|
# Normalize indicator to lowercase
|
||||||
|
indicator = indicator.lower()
|
||||||
|
|
||||||
supported_indicators = {
|
supported_indicators = {
|
||||||
"close_50_sma": ("50 SMA", "close"),
|
"close_50_sma": ("50 SMA", "close"),
|
||||||
"close_200_sma": ("200 SMA", "close"),
|
"close_200_sma": ("200 SMA", "close"),
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,8 @@ def get_stock_stats_indicators_window(
|
||||||
],
|
],
|
||||||
look_back_days: Annotated[int, "how many days to look back"],
|
look_back_days: Annotated[int, "how many days to look back"],
|
||||||
) -> str:
|
) -> str:
|
||||||
|
# Normalize indicator to lowercase
|
||||||
|
indicator = indicator.lower()
|
||||||
|
|
||||||
best_ind_params = {
|
best_ind_params = {
|
||||||
# Moving Averages
|
# Moving Averages
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue