private async Task ListOrderHistoryAsync(CancellationToken cancellationToken) { var orders = await _restClient.GetOrderHistoryAsync(MarginAccountId, "XBTUSD", string.Empty, string.Empty, null, null, null, null, cancellationToken) .ConfigureAwait(false); var toPrint = string.Join("\n", orders.Select(p => p.ToString())); _logger.LogInformation($"Active orders: {toPrint}"); }