private void ParseBOConstructParams(AddBOCloseOrdeCommand command) { var constructParams = command.ConstructParams; constructParams.Id = Guid.NewGuid(); constructParams.Phase = OrderPhase.Executed; constructParams.IsOpen = false; constructParams.IsBuy = false; var openOrder = command.OpenOrder; constructParams.SetPrice = openOrder.BestPrice; constructParams.ExecutePrice = openOrder.ExecutePrice; constructParams.Lot = openOrder.Lot; constructParams.OriginalLot = openOrder.Lot; constructParams.LotBalance = 0; constructParams.TradeOption = TradeOption.Invalid; }
private void ParseBOOrder(AddBOCloseOrdeCommand command) { this.ParseBOConstructParams(command); this.CreateOrder(command); }