getAccount method
Get a single account by id
Information for a single account. Use this endpoint when you know the account_id. API key must belong to the same profile as the account.
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccount
Implementation
Future<Account> getAccount({
required String accountId,
}) async {
var response = await _accountsRestClient.getAccount(accountId: accountId);
if (response.statusCode != 200) throw response;
return Account.fromJson(json.decode(response.body));
}