public void handler(Trd_UpdateOrderFill.Response res) { if (callback != null) { callback.callback(res); } }
public void handler(object v) { Qot_GetRT.Response res = v as Qot_GetRT.Response; if (this.callback != null) { if (res.S2C.Security.Market == (int)this.market && res.S2C.Security.Code.Equals(this.symbol)) { callback.callback(res.S2C.RtListList.ToList()); } } }
public void handler(object v) { Qot_UpdateKL.Response res = v as Qot_UpdateKL.Response; if (callback != null) { if (res.S2C.Security.Market == (int)this.market && res.S2C.Security.Code.Equals(this.symbol) && res.S2C.RehabType == (int)this.rehabType && res.S2C.KlType == (int)this.klType) { callback.callback(res.S2C.KlListList.ToList()); } } }
public void handler(object v) { Qot_GetTicker.Response res = v as Qot_GetTicker.Response; if (callback != null) { int market = res.S2C.Security.Market; String symbol = res.S2C.Security.Code; if ((int)this.market == market && this.symbol.Equals(symbol)) { callback.callback(res.S2C.TickerListList.ToList()); } } }
public void handler(object v) { Qot_GetOrderBook.Response res = v as Qot_GetOrderBook.Response; if (this.callback != null) { if (res.S2C.Security.Market == (int)this.market && res.S2C.Security.Code.Equals(this.symbol)) { OrderBooks orderBooks = new OrderBooks(); orderBooks.OrderBookBidList = res.S2C.OrderBookBidListList.ToList(); orderBooks.OrderBookAskList = res.S2C.OrderBookAskListList.ToList(); callback.callback(orderBooks); } } }
public void handler(object v) { Qot_UpdateOrderDetail.Response res = v as Qot_UpdateOrderDetail.Response; if (callback != null) { if (res.S2C.Security.Market == (int)this.market && res.S2C.Security.Code.Equals(this.symbol)) { OrderDetails orderDetails = new OrderDetails(); orderDetails.OrderDetailAsk1 = res.S2C.OrderDetailAsk; orderDetails.OrderDetailBid1 = res.S2C.OrderDetailBid; callback.callback(orderDetails); } } }
public void handler(object v) { Qot_GetBroker.Response res = v as Qot_GetBroker.Response; if (callback != null) { if (res.S2C.Security.Market == (int)this.market && res.S2C.Security.Code.Equals(this.symbol)) { Brokers brokers = new Brokers(); brokers.BrokerAskList = res.S2C.BrokerAskListList.ToList(); brokers.BrokerBidList = res.S2C.BrokerBidListList.ToList(); callback.callback(brokers); } } }
public void handler(object v) { Qot_GetBasicQot.Response res = v as Qot_GetBasicQot.Response; if (callback != null) { List <BasicQot> list = new List <BasicQot>(); foreach (BasicQot qot in res.S2C.BasicQotListList) { int market = qot.Security.Market; String symbol = qot.Security.Code; if ((int)this.market == market) { foreach (String innerSymbol in symbols) { if (symbol.Equals(innerSymbol)) { list.Add(qot); } } } } callback.callback(list); } }