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

dev
vlad zverzhkhovskiy 2025-09-23 17:23:42 +03:00
parent 0e41ab8e0a
commit a2a1f5a053
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,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.StopLoss,
StopPrice = asset.Count > 0 ? executedPrice - stopLossShift : executedPrice + stopLossShift,
ExchangeOrderType = ExchangeOrderType.Market,