Skip to main content
GET
/
tools
/
coinbase
/
list_portfolios
[
  {
    "provider": "<string>",
    "id": "<string>",
    "name": "<string>",
    "type": "<string>",
    "deleted": true,
    "provider_fields": {}
  }
]

coinbase_list_portfolios

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_portfolios"],
)
Request
  • Optional portfolio_type: filter Coinbase portfolios by type.
Options
  • include / exclude: filter which tools are exposed (use full names like coinbase_list_portfolios).
  • minimal: omit provider and provider_fields when True.

Body

application/json

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

portfolio_type
string

Optional portfolio type filter (Coinbase terminology), e.g. 'DEFAULT', 'CONSUMER', 'INTX', or 'UNDEFINED'.

Response

List of portfolios (OpenTools trading schema).

provider
string | null
id
string | null
name
string | null
type
string | null
deleted
boolean | null
provider_fields
object