Merge 4aeaf09a2c into 589b351f2a
This commit is contained in:
commit
8db73d7440
|
|
@ -58,8 +58,11 @@ def get_indicator(
|
|||
}
|
||||
|
||||
if indicator not in supported_indicators:
|
||||
raise ValueError(
|
||||
f"Indicator {indicator} is not supported. Please choose from: {list(supported_indicators.keys())}"
|
||||
supported = ", ".join(supported_indicators.keys())
|
||||
return (
|
||||
f"Error: Indicator '{indicator}' is not supported. "
|
||||
f"Supported indicators: {supported}. "
|
||||
f"Please retry with one of the supported indicators."
|
||||
)
|
||||
|
||||
curr_date_dt = datetime.strptime(curr_date, "%Y-%m-%d")
|
||||
|
|
|
|||
|
|
@ -129,8 +129,11 @@ def get_stock_stats_indicators_window(
|
|||
}
|
||||
|
||||
if indicator not in best_ind_params:
|
||||
raise ValueError(
|
||||
f"Indicator {indicator} is not supported. Please choose from: {list(best_ind_params.keys())}"
|
||||
supported = ", ".join(best_ind_params.keys())
|
||||
return (
|
||||
f"Error: Indicator '{indicator}' is not supported. "
|
||||
f"Supported indicators: {supported}. "
|
||||
f"Please retry with one of the supported indicators."
|
||||
)
|
||||
|
||||
end_date = curr_date
|
||||
|
|
|
|||
Loading…
Reference in New Issue