Skip to main content
Package: com.coinbase.cdp.resources.accounts

Method Details

listAccounts

Overload 1
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Returns: CompletableFuture<CdpClientHttpResponse<ListAccountsResponse>> Overload 2
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Parameters: request - ListAccountsRequest Returns: CompletableFuture<CdpClientHttpResponse<ListAccountsResponse>> Overload 3
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Parameters: requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ListAccountsResponse>> Overload 4
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Parameters: request - ListAccountsRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ListAccountsResponse>>

createAccount

Overload 1
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Returns: CompletableFuture<CdpClientHttpResponse<Account>> Overload 2
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Parameters: request - CreateAccountRequest Returns: CompletableFuture<CdpClientHttpResponse<Account>> Overload 3
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Parameters: requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<Account>> Overload 4
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Parameters: request - CreateAccountRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<Account>>

getAccountById

Overload 1
Get an account by its ID. Parameters: accountId - AccountId Returns: CompletableFuture<CdpClientHttpResponse<Account>> Overload 2
Get an account by its ID. Parameters: accountId - AccountId request - GetAccountByIdRequest Returns: CompletableFuture<CdpClientHttpResponse<Account>> Overload 3
Get an account by its ID. Parameters: accountId - AccountId requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<Account>> Overload 4
Get an account by its ID. Parameters: accountId - AccountId request - GetAccountByIdRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<Account>>

listBalances

Overload 1
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId Returns: CompletableFuture<CdpClientHttpResponse<ListBalancesResponse>> Overload 2
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId request - ListBalancesRequest Returns: CompletableFuture<CdpClientHttpResponse<ListBalancesResponse>> Overload 3
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ListBalancesResponse>> Overload 4
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId request - ListBalancesRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ListBalancesResponse>>

getBalanceByAsset

Overload 1
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset Returns: CompletableFuture<CdpClientHttpResponse<Balance>> Overload 2
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset request - GetBalanceByAssetRequest Returns: CompletableFuture<CdpClientHttpResponse<Balance>> Overload 3
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<Balance>> Overload 4
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset request - GetBalanceByAssetRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<Balance>>