public void GetOrderDetailTest(string contractCode, long orderId, long?createdAt, int?orderType, int?pageIndex, int?pageSize) { var result = client.IsolatedGetOrderDetailAsync(contractCode, orderId, createdAt, orderType, pageIndex, pageSize).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); result = client.CrossGetOrderDetailAsync(contractCode, orderId, createdAt, orderType, pageIndex, pageSize).Result; strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); }
// [InlineData(932677638944722944, 1642409277434, 1, 1, 10, null, "btc-usdt")] // [InlineData(932677646502858752, 1642409279237, 1, 1, 10, "BTC-USDT-220121", null)] // [InlineData(932677642644107264, 1642409278317, 1, 1, 10, "BTC-HUSD", null)] // [InlineData(932677644619624448, 1642409278787, 1, 1, 10, null, "btc-husd")] // [InlineData(932677650491650048, 1642409280187, 1, 1, 10, "BTC-HUSD-220325", null)] public void CrossGetOrderDetailTest(long orderId, long?createdAt, int?orderType, int?pageIndex, int?pageSize, string contractCode, string pair) { var result = client.CrossGetOrderDetailAsync(orderId, createdAt, orderType, pageIndex, pageSize, contractCode, pair).Result; var strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); string type = null; if (pair != null) { type = pair.Split("-")[1].ToUpper(); } if (contractCode != null) { type = contractCode.Split("-")[1].ToUpper(); } Assert.Equal(type, result.data.tradePartition); Console.WriteLine("------------"); }