Exemplo n.º 1
0
        public async Task ListAccountsAsync_ShouldReturnTheAccounts()
        {
            var client = new GdaxClient(TestAuthenticators.FullAccess)
            {
                UseSandbox = true
            };

            var accounts = await client.GetAccountsAsync();

            accounts.Should().NotBeNullOrEmpty();
        }
Exemplo n.º 2
0
        public async Task GetAccountHistoryAsync_ShouldReturnTheAccounts()
        {
            var client = new GdaxClient(TestAuthenticators.FullAccess)
            {
                UseSandbox = true
            };

            var accounts = await client.GetAccountsAsync();

            var ledger = await client.GetAccountHistoryAsync(accounts.First().Id);

            ledger.Results.Should().NotBeNull();
        }