Accounts

List balances for account

Changed on

List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order.

get/v2/accounts/{accountId}/balances

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

accountId, string required

The ID of the Account, which is a UUID prefixed by the string account_.

Example:account_af2937b0-9846-4fe7-bfe9-ccc22d935114

The unique identifier of the account.

Query parameters

pageSize, integer

The number of resources to return per page.

pageToken, string

The token for the next page of resources, if any.

Response

Successfully listed balances.

intersection required

Example response

{
  "balances": [
    {
      "asset": {
        "symbol": "btc",
        "type": "crypto",
        "name": "Bitcoin",
        "decimals": 8
      },
      "amount": {
        "btc": {
          "available": "2.5",
          "total": "3.0"
        },
        "usd": {
          "available": "252705.4",
          "total": "303246.48"
        }
      }
    },
    {
      "asset": {
        "symbol": "usd",
        "type": "fiat",
        "name": "United States Dollar",
        "decimals": 2
      },
      "amount": {
        "usd": {
          "available": "90",
          "total": "100"
        }
      }
    }
  ],
  "nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    3 more changes in this revision