Fix duplicate return, add defensive null checks for bid/ask prices, and protect PnL calculation
This commit is contained in:
1 parent
e615473d22
commit
6c878c4e63
3 files changed
+7
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user