Fix duplicate return, add defensive null checks for bid/ask prices, and protect PnL calculation

This commit is contained in:
justin committed 2026-02-04 16:47:03 -07:00
1 parent e615473d22
commit 6c878c4e63
3 files changed
+7 -2

No files matched your search

-1
View File
@@ -99,4 +99,3 @@ def get_vix(client: AlpacaClient, symbol: str, use_vix_filter: bool):
logger.warning(f"Could not calculate volatility: {e}")
logger.warning("VIX data unavailable, skipping VIX filter for this iteration")
return 0
return 0