コード例 #1
0
        public void GetKlineTest()
        {
            var pair            = "CETBTC";
            var transactionData = _repo.GetKLine(pair, Interval.OneH, 100).Result;

            Assert.NotNull(transactionData);
        }
コード例 #2
0
 /// <summary>
 /// Get K-Line data
 /// </summary>
 /// <param name="pair">String of trading pair</param>
 /// <param name="interval">Time interval for KLines</param>
 /// <param name="limit">Number of KLines to return, (default = 100, max = 1000)</param>
 /// <returns>Array of KLine objects</returns>
 public KLine[] GetKLine(string pair, Interval interval, int limit = 100)
 {
     return(_repository.GetKLine(pair, interval, limit).Result);
 }