Ejemplo n.º 1
0
        public void GetCandlesticksDefaults_Test()
        {
            var pair         = "SWTH_NEO";
            var interval     = Interval.OneD;
            var candlesticks = _repo.GetCandlesticks(pair, interval).Result;

            Assert.NotNull(candlesticks);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Get candlestick chart data
 /// </summary>
 /// <param name="pair">Pair to filter</param>
 /// <param name="interval">Time interval of candlestick</param>
 /// <param name="endTime">End time of last candlestick (defaults to current UTC time)</param>
 /// <param name="stickCount">Number of candlesticks to return (defaults to 10)</param>
 /// <returns>Array of Candlesticks</returns>
 public Candlstick[] GetCandlesticks(string pair, Interval interval, long endTime = 0, int stickCount = 10)
 {
     return(_repository.GetCandlesticks(pair, interval, endTime, stickCount).Result);
 }