public void SendMarketDepth(string market) { var topicObj = new SubMarketDepth() { Market = market, Limit = 10, Precision = 5 }; SendSubscribeTopic(ProtobufHelper.Serializer(topicObj, 906)); }
public void SubMarketOrder(string market) { var topicObj = new SubMarketOrder() { Market = market, Count = 10, Subscribe = true }; topicDic.Add("Order", ProtobufHelper.Serializer(topicObj, 907)); }
public void SubMarketDepth(string market) { var topicObj = new SubMarketDepth() { Market = market, Limit = 10, Precision = 5 }; topicDic.Add("Depth", ProtobufHelper.Serializer(topicObj, 906)); }
public void SubUserOrderInfo(string[] markets) { foreach (var market in markets) { var topicObj = new LoginToMarket() { Market = market }; topicDic.Add(market + "loginM", ProtobufHelper.Serializer(topicObj, 1000)); } }