Exemple #1
0
        public void CrossCancelOrderTest(string orderId, string clientOrderId, string contractCode,
                                         string contractType, string pair)
        {
            var result = client.CrossCancelOrderAsync(orderId, clientOrderId, contractCode, contractType, pair).Result;
            var strret = JsonConvert.SerializeObject(result, Formatting.Indented);

            Console.WriteLine(strret);
            Assert.Equal("ok", result.status);

            Console.WriteLine("------------");
        }
Exemple #2
0
        public void CancelOrderTest(string contractCode, string orderId, string clientOrderId, string offset, string direction)
        {
            var    result = client.IsolatedCancelOrderAsync(contractCode, orderId, clientOrderId, offset, direction).Result;
            string strret = JsonConvert.SerializeObject(result, Formatting.Indented);

            Console.WriteLine(strret);
            Assert.Equal("ok", result.status);

            result = client.CrossCancelOrderAsync(contractCode, orderId, clientOrderId, offset, direction).Result;
            strret = JsonConvert.SerializeObject(result, Formatting.Indented);
            Console.WriteLine(strret);
            Assert.Equal("ok", result.status);
        }