コード例 #1
0
        public void GetHistoricRatesTest_NoTimes()
        {
            // arrange
            var pair = "BTCUSD";
            var gran = Granularity.FiveM;

            // act
            var rates = _repo.GetHistoricRates(pair, gran, 20).Result;

            // assert
            Assert.NotNull(rates);
        }
コード例 #2
0
 /// <summary>
 /// Get historic rates
 /// </summary>
 /// <param name="pair">Trading pair</param>
 /// <param name="granularity">Candle size</param>
 /// <param name="candleCount">Number of candles</param>
 /// <returns>HistoricRates array</returns>
 public HistoricRates[] GetHistoricRates(string pair, Granularity granularity, int candleCount)
 {
     return(_repository.GetHistoricRates(pair, granularity, candleCount).Result);
 }