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); }
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); }