Skip to main content
GET
/
tools
/
coinbase
/
list_accounts
[
  {
    "provider": "<string>",
    "id": "<string>",
    "status": "<string>",
    "currency": "<string>",
    "cash": "<string>",
    "buying_power": "<string>",
    "equity": "<string>",
    "portfolio_value": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "provider_fields": {}
  }
]

coinbase_list_accounts

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_list_accounts"],
)
Request
  • limit: max number of accounts per page (Coinbase caps apply).
  • cursor: pagination cursor from a previous response.
  • retail_portfolio_id: legacy portfolio filter (usually not needed).
Options
  • include / exclude: filter which tools are exposed (use full names like coinbase_list_accounts).
  • minimal: omit provider and provider_fields when True.

Body

application/json

This is a request to obtain information. Your API keys are required.

limit
integer

Max number of accounts per page.

cursor
string

Pagination cursor from a previous response.

retail_portfolio_id
string

Legacy portfolio filter (usually not needed).

Response

Accounts (OpenTools trading schema).

provider
string | null

Trading provider identifier. Omitted when minimal=True.

id
string | null

Account ID.

status
string | null

Account status.

currency
string | null

Account currency (e.g. USD).

cash
string | null

Cash balance.

buying_power
string | null

Buying power.

equity
string | null

Equity.

portfolio_value
string | null

Portfolio value.

created_at
string<date-time> | null

Created timestamp.

provider_fields
object

Extra provider-specific fields (omitted when minimal=True).