adds check for empty dataframe

This commit is contained in:
hjoaquim
2023-02-24 11:47:35 +00:00
parent c6cd5859f6
commit fe7b73df97

View File

@@ -545,7 +545,7 @@ def display_candle(
start_date = check_datetime(start_date)
end_date = check_datetime(end_date, start=False)
if data is None:
if data is None or data.empty:
data = load(
symbol,
start_date,