private void ParseCommon(Commands.AddGeneralOrderRelationCommandBase command) { var constructParams = command.ConstructParams; constructParams.OpenOrder = command.OpenOrder; constructParams.CloseOrder = command.CloseOrder; constructParams.ClosedLot = command.ClosedLot; constructParams.OperationType = Framework.OperationType.AsNewRecord; constructParams.OpenOrderExecuteTime = command.OpenOrder.ExecuteTime; if (command.OpenOrder.ExecutePrice != null) { constructParams.OpenOrderExecutePrice = command.OpenOrder.ExecutePrice.ToString(); } }
private void ParseOrderRelationCommon(Commands.AddGeneralOrderRelationCommandBase command) { this.ParseCommon(command); command.CreateOrderRelation(); }