Fix update money management

This commit is contained in:
2025-04-21 13:02:38 +02:00
parent 868c7bdb65
commit c571130bb0
7 changed files with 38 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ namespace Managing.Application.Trading
request.MoneyManagement.Leverage,
TradeType.StopLoss,
request.Date,
TradeStatus.PendingOpen);
TradeStatus.Requested);
position.StopLoss.Fee = TradingHelpers.GetFeeAmount(fee,
position.StopLoss.Price * position.StopLoss.Quantity, account.Exchange);
@@ -100,7 +100,7 @@ namespace Managing.Application.Trading
request.MoneyManagement.Leverage,
TradeType.TakeProfit,
request.Date,
TradeStatus.PendingOpen);
TradeStatus.Requested);
position.Status = IsOpenTradeHandled(position.Open.Status, account.Exchange)
? position.Status