From ab339f36f139e34df9c8bacb18c5f402d4934fec Mon Sep 17 00:00:00 2001 From: Theodore Aptekarev Date: Thu, 23 Feb 2023 16:53:27 +0100 Subject: [PATCH] Fix candle not working with symbol via the sdk --- openbb_terminal/stocks/stocks_helper.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/openbb_terminal/stocks/stocks_helper.py b/openbb_terminal/stocks/stocks_helper.py index 5c39d7e8cba..3cb989edcac 100644 --- a/openbb_terminal/stocks/stocks_helper.py +++ b/openbb_terminal/stocks/stocks_helper.py @@ -545,18 +545,17 @@ def display_candle( start_date = check_datetime(start_date) end_date = check_datetime(end_date, start=False) - if data is None: - data = load( - symbol, - start_date, - interval, - end_date, - prepost, - source, - weekly, - monthly, - ) - data = process_candle(data) + data = load( + symbol, + start_date, + interval, + end_date, + prepost, + source, + weekly, + monthly, + ) + data = process_candle(data) if add_trend and (data.index[1] - data.index[0]).total_seconds() >= 86400: data = find_trendline(data, "OC_High", "high")