Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix forex/candle with source AlphaVantage #3877

Merged
merged 1 commit into from
Jan 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion openbb_terminal/forex/forex_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ def display_candle(
External axes (1 axis is expected in the list), by default None
"""
# We check if there's Volume data to avoid errors and empty subplots
has_volume = bool(data["Volume"].sum() > 0)
has_volume = False
if "Volume" in data.columns:
has_volume = bool(data["Volume"].sum() > 0)

if add_trend:
if (data.index[1] - data.index[0]).total_seconds() >= 86400:
Expand Down