More verbose error (#2389)

This commit is contained in:
Colin Delahunty
2022-08-22 15:45:46 -04:00
committed by GitHub
parent b6ebe207f2
commit cec9778ebb

View File

@@ -39,6 +39,9 @@ def darkpool_ats_otc(
External axes (2 axes are expected in the list), by default None
"""
ats, otc = finra_model.getTickerFINRAdata(symbol)
if ats.empty:
console.print("[red]Could not get data[/red]\n")
return
if ats.empty and otc.empty:
console.print("No ticker data found!")