listAccounts method
Get a list of trading accounts from the profile of the API key.
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
Implementation
Future<List<Account>> listAccounts() async {
var response = await _accountsRestClient.listAccounts();
if (response.statusCode != 200) throw response;
return listDecode(response.body)
.map((account) => Account.fromJson(account))
.toList();
}