public void GetTradesByIdsAsyncTest()
        {
            var client = new HitRestApi();
            var symbol = "BTCUSD";

            var response = client.GetTradesByIdsAsync(symbol).Result;

            ResponseBasicCheck(response);

            Assert.AreNotEqual(0, response.Result.Length);
        }
        public void GetTradesByIdsAsyncAscSortingTest()
        {
            var client = new HitRestApi();
            var symbol = "BTCUSD";
            var sort   = HitSort.Asc;

            var response = client.GetTradesByIdsAsync(symbol, sort).Result;

            ResponseBasicCheck(response);

            Assert.IsTrue(response.Result.Length >= 2);
            Assert.IsTrue(response.Result[0].Timestamp < response.Result[1].Timestamp);
        }
        public void GetTradesByIdsAsyncFromIdTillIdTest()
        {
            var  client = new HitRestApi();
            var  symbol = "BTCUSD";
            long fromId = 287719394;
            long tillId = 287720650;

            var response = client.GetTradesByIdsAsync(symbol, from: fromId, till: tillId).Result;

            ResponseBasicCheck(response);

            Assert.IsTrue(response.Result.Length >= 2);
            Assert.AreEqual(tillId, response.Result.First().Id);
            Assert.AreEqual(fromId, response.Result.Last().Id);
        }