private void ParseCommon(AddAutoCloseOrderCommandBase command) { OrderConstructParams constructParams = command.ConstructParams; constructParams.OperationType = Framework.OperationType.AsNewRecord; constructParams.Id = Guid.NewGuid(); constructParams.Phase = OrderPhase.Executed; constructParams.IsOpen = false; constructParams.IsBuy = !command.OpenOrder.IsBuy; constructParams.SetPrice = command.ClosePrice; constructParams.ExecutePrice = command.ClosePrice; constructParams.Lot = command.OpenOrder.LotBalance; constructParams.OriginalLot = command.OpenOrder.LotBalance; constructParams.TradeOption = command.TradeOption; }
private void ParseOrderRelaitonCommon(AddAutoCloseOrderCommandBase command) { this.ParseCommon(command); this.CreateOrder(command); }