public void ProcessRecievedMessage(string payload)
        {
            var handler = OnMiniTickerIndividualReceived;

            if (handler != null)
            {
                var msg = JsonConvert.DeserializeObject <IndividualSymbolMiniTickerMessage>(payload);
                var arg = new MiniTickerIndividualArgs {
                    MiniTicker = msg.Data
                };
                handler(this, arg);
            }
        }
Exemplo n.º 2
0
 private static void IndividualMiniTicker_OnMiniTickerIndividualReceived(object sender, MiniTickerIndividualArgs e)
 {
     Console.WriteLine("MiniTicker");
     cwf(e.MiniTicker);
 }