mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
additional sanity check for volatility_view
This commit is contained in:
@@ -433,6 +433,9 @@ def display_cones(
|
||||
openbb.ta.cones_chart(data = df_ta, symbol = "XLE", model = "Garman-Klass")
|
||||
"""
|
||||
|
||||
if lower_q > upper_q:
|
||||
lower_q, upper_q = upper_q, lower_q
|
||||
|
||||
df_ta = volatility_model.cones(
|
||||
data, lower_q=lower_q, upper_q=upper_q, is_crypto=is_crypto, model=model
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user