try to have sell actions

This commit is contained in:
Dobromir Popov
2025-06-25 17:02:21 +03:00
parent 2e084f03b7
commit 249fdace73
3 changed files with 324 additions and 106 deletions

View File

@ -318,8 +318,9 @@ class TradingExecutor:
"""Execute a sell order"""
# Check if we have a position to sell
if symbol not in self.positions:
logger.info(f"No position to sell in {symbol}")
return False
logger.info(f"No position to sell in {symbol}. Opening short position")
# TODO: Open short position
position = self.positions[symbol]