public async Task Test_GetBalances() { var balanceSnapshot = await _restClient.GetBalancesAsync(SpotAccountId, _token).ConfigureAwait(false); balanceSnapshot.Should().NotBeNull(); balanceSnapshot.Should().NotBeNull(); balanceSnapshot.Balances.Count.Should().BeGreaterThan(0); }
private async Task GetBalancesAsync(CancellationToken cancellationToken) { var balanceSnapshot = await _restClient.GetBalancesAsync(MarginAccountId, cancellationToken) .ConfigureAwait(false); var toPrint = string.Join("\n", balanceSnapshot.Balances.Select(p => p.ToString())); _logger.LogInformation($"Balances: {toPrint}"); }