фикс переопределения стопов
test / deploy_trader_prod (push) Successful in 1m40s Details

dev
vlad zverzhkhovskiy 2025-09-23 17:32:54 +03:00
parent a2a1f5a053
commit 816ad0f677
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ namespace KLHZ.Trader.Core.Exchange.Services
InstrumentId = figi,
Direction = stopOrdersDirection,
PriceType = PriceType.Point,
Quantity = (long)asset.Count,
Quantity = System.Math.Abs((long)asset.Count),
StopOrderType = StopOrderType.TakeProfit,
StopPrice = asset.Count > 0 ? executedPrice + takeProfitShift : executedPrice - takeProfitShift,
ExchangeOrderType = ExchangeOrderType.Market,