This commit is contained in:
Dobromir Popov
2025-07-22 20:23:17 +03:00
parent 9b72b18eb7
commit 630bc644fa
2 changed files with 8 additions and 5 deletions

View File

@ -650,7 +650,8 @@ class CleanTradingDashboard:
# Apply current leverage to unrealized P&L
leveraged_unrealized_pnl = raw_pnl_per_unit * size * self.current_leverage
total_session_pnl += leveraged_unrealized_pnlent_position and current_price:ent_position and current_price:ent_position and current_price:ent_position and current_price:ent_position and current_price:
total_session_pnl += leveraged_unrealized_pnl
side = self.current_position.get('side', 'UNKNOWN')
size = self.current_position.get('size', 0)
entry_price = self.current_position.get('price', 0)
@ -664,7 +665,7 @@ class CleanTradingDashboard:
# Apply current leverage to unrealized P&L
leveraged_unrealized_pnl = raw_pnl_per_unit * size * self.current_leverage
total_session_pnl += leveraged_unrealized_pnlent_position and current_price:
total_session_pnl += leveraged_unrealized_pnl
side = self.current_position.get('side', 'UNKNOWN')
size = self.current_position.get('size', 0)
entry_price = self.current_position.get('price', 0)