Beispiel #1
0
        private async Task Orders(SocketMessage message)
        {
            var author = message.Author;

            var orders = await binanceService.GetOrders(author.Id);

            if (orders?.order.Length == 0)
            {
                await message.Channel.SendMessageAsync("You have no open orders :(");
            }
            else
            {
                var text = orders?.order.Take(10).Select(x => $"{x.ToString()}\n")
                           .Aggregate("", (s, s1) => s + s1);

                await message.Channel.SendMessageAsync(text);
            }
        }