Beispiel #1
0
        public void ShouldReturnFourLastBuyTrades()
        {
            var trades = _client.GetTrades(new BitmexRequestWithFilter()
                                           .WithSymbolFilter("XBTUSD")
                                           .WithSideFilter(BitmexOrderSide.Buy)
                                           .WithExactDateFilter(new DateTime(2019, 1, 1))
                                           .WithResultsCount(4));

            Assert.True(trades);
            Assert.True(trades.Data.Count == 4);
            Assert.True(trades.Data.All(c => c.Side == BitmexOrderSide.Buy && c.Symbol == "XBTUSD"));
        }
Beispiel #2
0
 public BitmexTradeData[] GetTrades(string symbol, DateTime time1, DateTime time2, int count = 500, int startPoint = 0)
 {
     return(Client.GetTrades(symbol, time1, time2, count, startPoint));
 }