This commit is contained in:
Danglewood
2023-07-21 21:32:04 -07:00
committed by Igor Radovanovic
parent 969d5cee42
commit 330f439aed
2 changed files with 5 additions and 4 deletions

View File

@@ -1349,7 +1349,7 @@ class OpenBBFigure(go.Figure):
dt_missing_days = pd.to_datetime(dt_missing_days)
if len(dt_missing_days) < 2_000:
rangebreaks: List[Dict[str, Any]] = [dict(values=dt_missing_days)]
rangebreaks = [dict(values=dt_missing_days)]
# We get the frequency of the data to hide intra-day gaps
if df_data.index[-1].time() != df_data.index[-2].time():

View File

@@ -168,7 +168,7 @@ def display_historical_tvl(
else:
print(f"{dapp} not found\n")
if export and export != "":
return export_data(
export_data(
export,
os.path.dirname(os.path.abspath(__file__)),
f"dtvl_{dapp}",
@@ -176,6 +176,7 @@ def display_historical_tvl(
sheet_name,
fig,
)
return None
return fig.show(external=external_axes)
return None
@@ -208,7 +209,7 @@ def display_defi_tvl(
df = df.tail(limit)
if export and export != "":
return export_data(
export_data(
export,
os.path.dirname(os.path.abspath(__file__)),
"stvl",
@@ -216,7 +217,7 @@ def display_defi_tvl(
sheet_name,
fig,
)
return None
fig.add_scatter(x=df["date"], y=df["totalLiquidityUSD"], name="TVL")
return fig.show(external=external_axes)