> ## Documentation Index
> Fetch the complete documentation index at: https://opentools.page/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# get_account

> Return the current Coinbase brokerage account state. If account_uuid is omitted, returns the primary (default) account.

## coinbase\_get\_account

```python
import os
from opentools import trading

tools = trading.coinbase(
    api_key=os.environ["COINBASE_KEY"],
    api_secret=os.environ["COINBASE_SECRET"],
    model="openai",
    minimal=True,
    include=["coinbase_get_account"],
)
```

**Request**

* Optional `account_uuid`: if omitted, returns the primary (default) account.

**Options**

* `include` / `exclude`: filter which tools are exposed (use full names like `coinbase_get_account`).
* `minimal`: omit `provider` and `provider_fields` when `True`.


## OpenAPI

````yaml api-reference/openapi.json get /tools/coinbase/get_account
openapi: 3.1.0
info:
  title: OpenTools Trading Tools
  version: 0.1.0
  description: >-
    Reference for OpenTools trading tool calls. These are SDK tools, documented
    as virtual endpoints for clarity.
servers: []
security: []
tags:
  - name: Alpaca
    description: >-
      Read-only account + assets + clock + orders + portfolio history +
      positions.
  - name: Coinbase
    description: >-
      Accounts + portfolios + portfolio breakdown + positions (derived) +
      brokerage products + orders (if available).
paths:
  /tools/coinbase/get_account:
    get:
      tags:
        - Coinbase
      summary: get_account
      description: >-
        Return the current Coinbase brokerage account state. If account_uuid is
        omitted, returns the primary (default) account.
      operationId: coinbase_get_account
      requestBody:
        required: false
        description: This is a request to obtain information. Your API keys are required.
        content:
          application/json:
            schema:
              type: object
              properties:
                account_uuid:
                  type: string
                  description: >-
                    Optional Coinbase account UUID. If omitted, the primary
                    account is returned.
              additionalProperties: false
            examples:
              primary:
                value: {}
              by_uuid:
                value:
                  account_uuid: fa085d3c-bedc-5879-bf35-11187a8aa9b3
      responses:
        '200':
          description: Account (OpenTools trading schema).
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                description: ''
                properties:
                  provider:
                    type:
                      - string
                      - 'null'
                    description: Trading provider identifier. Omitted when minimal=True.
                  id:
                    type:
                      - string
                      - 'null'
                    description: Account ID.
                  status:
                    type:
                      - string
                      - 'null'
                    description: Account status.
                  currency:
                    type:
                      - string
                      - 'null'
                    description: Account currency (e.g. USD).
                  cash:
                    type:
                      - string
                      - 'null'
                    description: Cash balance.
                  buying_power:
                    type:
                      - string
                      - 'null'
                    description: Buying power.
                  equity:
                    type:
                      - string
                      - 'null'
                    description: Equity.
                  portfolio_value:
                    type:
                      - string
                      - 'null'
                    description: Portfolio value.
                  created_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: Created timestamp.
                  provider_fields:
                    type: object
                    additionalProperties: true
                    description: >-
                      Extra provider-specific fields (omitted when
                      minimal=True).
        '401':
          description: Unauthorized (missing/invalid credentials).
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  message:
                    type: string
                  domain:
                    type: string
                  provider:
                    type: string
                  details: {}
                required:
                  - message
        '429':
          description: Rate limited by provider or transport.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  message:
                    type: string
                  domain:
                    type: string
                  provider:
                    type: string
                  details: {}
                required:
                  - message
      x-codeSamples:
        - lang: python
          label: Python
          source: |
            import os
            from opentools import trading

            tools = trading.coinbase(
                api_key=os.environ["COINBASE_KEY"],
                api_secret=os.environ["COINBASE_SECRET"],
                model="openai",
                minimal=True,
                include=["coinbase_get_account"],
            )

````