mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-14 05:14:19 +00:00
Fix candle not working with symbol via the sdk
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user