Merge 4aeaf09a2c into 589b351f2a
This commit is contained in:
commit
8db73d7440
|
|
@ -58,8 +58,11 @@ def get_indicator(
|
||||||
}
|
}
|
||||||
|
|
||||||
if indicator not in supported_indicators:
|
if indicator not in supported_indicators:
|
||||||
raise ValueError(
|
supported = ", ".join(supported_indicators.keys())
|
||||||
f"Indicator {indicator} is not supported. Please choose from: {list(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")
|
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:
|
if indicator not in best_ind_params:
|
||||||
raise ValueError(
|
supported = ", ".join(best_ind_params.keys())
|
||||||
f"Indicator {indicator} is not supported. Please choose from: {list(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
|
end_date = curr_date
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue