public Trd_PlaceOrder.Response trdPlaceOrder(TrdMarket trdMarket, TrdSide trdSide, OrderType orderType, String code, double qty, double price, Boolean adjustPrice, Double adjustSideAndLimit, IUpdateCallBack callback) { long accID = getAccId(trdenv, trdMarket); TrdPlaceOrderExec exec = new TrdPlaceOrderExec(trdenv, accID, trdMarket, trdSide, orderType, code, qty, price, adjustPrice, adjustSideAndLimit, request.getConnID(), callback); request.execute(exec); return((Trd_PlaceOrder.Response)exec.getValue()); }
public TrdPlaceOrderExec(TrdEnv trdenv, long accID, TrdMarket trdMarket, TrdSide trdSide, OrderType orderType, String code, double qty, double price, Object adjustPrice, Object adjustSideAndLimit, long connID, IUpdateCallBack callback) { this.trdenv = trdenv; this.accID = accID; this.trdMarket = trdMarket; this.trdSide = trdSide; this.orderType = orderType; this.code = code; this.qty = qty; this.price = price; this.adjustPrice = adjustPrice; this.adjustSideAndLimit = adjustSideAndLimit; this.connID = connID; }
public override int GetHashCode() { int hash = 1; if (packetID_ != null) { hash ^= PacketID.GetHashCode(); } if (header_ != null) { hash ^= Header.GetHashCode(); } if (TrdSide != 0) { hash ^= TrdSide.GetHashCode(); } if (OrderType != 0) { hash ^= OrderType.GetHashCode(); } if (Code.Length != 0) { hash ^= Code.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 (SecMarket != 0) { hash ^= SecMarket.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }