Ejemplo n.º 1
0
 public void CrossTriggerOrderTest(string contractCode)
 {
     client.CrossSubTriggerOrder(contractCode, delegate(SubTriggerOrderResponse data)
     {
         Console.WriteLine(JsonConvert.SerializeObject(data));
     });
     System.Threading.Thread.Sleep(1000 * 30);
     client.CrossUnsubTriggerOrder(contractCode);
     System.Threading.Thread.Sleep(1000 * 15);
 }
Ejemplo n.º 2
0
        public void TriggerOrderTest(string contractCode)
        {
            WSNotifyClient client = new WSNotifyClient(config["AccessKey"], config["SecretKey"]);

            client.IsolatedSubTriggerOrder(contractCode, delegate(SubTriggerOrderResponse data)
            {
                Console.WriteLine(JsonConvert.SerializeObject(data));
            });
            System.Threading.Thread.Sleep(1000 * 30);
            client.IsolatedUnsubTriggerOrder(contractCode);
            System.Threading.Thread.Sleep(1000 * 15);

            client.CrossSubTriggerOrder(contractCode, delegate(SubTriggerOrderResponse data)
            {
                Console.WriteLine(JsonConvert.SerializeObject(data));
            });
            System.Threading.Thread.Sleep(1000 * 30);
            client.CrossUnsubTriggerOrder(contractCode);
            System.Threading.Thread.Sleep(1000 * 15);
        }