コード例 #1
0
 public void SubscribeCandlesticks(string symbol, Interface.CandlestickInterval candlestickInterval, int limit, Action <CandlestickEventArgs> callback, Action <Exception> exception, CancellationToken cancellationToken)
 {
     exchangeService.SubscribeCandlesticks(symbol, candlestickInterval, limit, callback, exception, cancellationToken);
 }
コード例 #2
0
        public async Task <IEnumerable <Candlestick> > GetCandlesticksAsync(string symbol, Interface.CandlestickInterval interval, DateTime startTime, DateTime endTime, int limit = default(int), CancellationToken token = default(CancellationToken))
        {
            var results = await exchangeService.GetCandlesticksAsync(symbol, interval, startTime, endTime, limit, token).ConfigureAwait(false);

            var candlesticks = results.Select(c => c.ToViewCandlestick()).ToList();

            return(candlesticks);
        }