private async Task Symbols(SocketMessage message) { var count = message.Content.Split(' '); var toSelect = 10; if (count.Length > 1) { toSelect = int.Parse(count[1]); } var symbolMaps = await binanceService.GetSymbols(); var result = symbolMaps.Take(toSelect).Select(x => $"{x.ToString()}\n") .Aggregate("", (s, s1) => s + s1); await message.Channel.SendMessageAsync(result); }
public async Task Handle(BinanceQuerySymbolsCommand command) { await _binanceService.GetSymbols(); }