Esempio n. 1
0
        public async Task <IEnumerable <Core.Model.AggregateTrade> > GetAggregateTradesAsync(string symbol, int limit, CancellationToken cancellationToken)
        {
            var binanceApi = new BinanceApi();
            var trades     = await binanceApi.GetAggregateTradesAsync(symbol, limit, cancellationToken).ConfigureAwait(false);

            var aggregateTrades = trades.Select(at => NewAggregateTrade(at)).ToList();

            return(aggregateTrades);
        }