示例#1
0
        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();
            }
        }
示例#2
0
 private void ParseOrderRelationCommon(Commands.AddGeneralOrderRelationCommandBase command)
 {
     this.ParseCommon(command);
     command.CreateOrderRelation();
 }