public TrdModifyOrderExec(TrdEnv trdenv, long accID, TrdMarket trdMarket, long orderID, ModifyOrderOp modifyOrderOp, bool?forAll, double?qty, double?price, bool?adjustPrice, double?adjustSideAndLimit, long connID)
 {
     this.trdenv             = trdenv;
     this.accID              = accID;
     this.trdMarket          = trdMarket;
     this.orderID            = orderID;
     this.modifyOrderOp      = modifyOrderOp;
     this.forAll             = forAll;
     this.qty                = qty;
     this.price              = price;
     this.adjustPrice        = adjustPrice;
     this.adjustSideAndLimit = adjustSideAndLimit;
     this.connID             = connID;
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (packetID_ != null)
            {
                hash ^= PacketID.GetHashCode();
            }
            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (OrderID != 0UL)
            {
                hash ^= OrderID.GetHashCode();
            }
            if (ModifyOrderOp != 0)
            {
                hash ^= ModifyOrderOp.GetHashCode();
            }
            if (ForAll != false)
            {
                hash ^= ForAll.GetHashCode();
            }
            if (Qty != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Qty);
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (AdjustPrice != false)
            {
                hash ^= AdjustPrice.GetHashCode();
            }
            if (AdjustSideAndLimit != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AdjustSideAndLimit);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public Trd_ModifyOrder.Response trdModifyOrder(TrdMarket trdMarket, long orderID, ModifyOrderOp modifyOrderOp, Boolean forAll, Double qty, Double price, Boolean adjustPrice, Double adjustSideAndLimit)
 {
     //		long accID  = getAccId(trdenv,trdMarket);
     //    TrdModifyOrderExec exec = new TrdModifyOrderExec(trdenv, accID, trdMarket, orderID, modifyOrderOp, forAll, qty, price, adjustPrice, adjustSideAndLimit, request.getConnID());
     //request.execute(exec);
     //		return exec.getValue();
     return(null);
 }