refactor(execution): clean risk close formatting
This commit is contained in:
@@ -55,7 +55,7 @@ class ExecutionRiskCloseMixin(_ExecutionRiskCloseProtocol):
|
|||||||
forced_pnl=unrealized_pnl,
|
forced_pnl=unrealized_pnl,
|
||||||
forced_price_meta=current_execution,
|
forced_price_meta=current_execution,
|
||||||
)
|
)
|
||||||
|
|
||||||
# проверить, нужно ли закрыть позицию по max loss / stop loss / take profit
|
# проверить, нужно ли закрыть позицию по max loss / stop loss / take profit
|
||||||
def _risk_close_decision(self, state: AutoTradeState) -> ExecutionDecision | None:
|
def _risk_close_decision(self, state: AutoTradeState) -> ExecutionDecision | None:
|
||||||
position = type(self)._position
|
position = type(self)._position
|
||||||
|
|||||||
Reference in New Issue
Block a user