Coinbase Portfolios API

Create and manage portfolios for organizing trading activity and asset allocation.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /portfolios List my trading portfolios · List portfolios #
Ask an LLM
“Which trading portfolios do I have?”
“Can I see the details of every portfolio I can read?”
Tell an agent
List all my portfolios.
Show every portfolio I have access to.
POST /portfolios Create a new trading portfolio · Create portfolio #
Ask an LLM
“How do I create a separate portfolio for a client?”
“What is the way to set up an isolated trading environment?”
Tell an agent
Create a portfolio named {name}.
Set up a new trading portfolio called {name}.
GET /portfolios/{portfolio_id} Get a portfolio's details · Get portfolio #
Ask an LLM
“What entity and organization does a portfolio belong to?”
“Can I look up one portfolio by its ID?”
Tell an agent
Get portfolio {portfolio_id}.
Show the details of portfolio {portfolio_id}.
PUT /portfolios/{portfolio_id} Rename a portfolio · Edit portfolio #
Ask an LLM
“Can I rename a portfolio I already created?”
“Is it possible to change only a portfolio's name?”
Tell an agent
Rename portfolio {portfolio_id} to {name}.
Change the name of portfolio {portfolio_id} to {name}.
DELETE /portfolios/{portfolio_id} Delete a portfolio · Delete portfolio #
Ask an LLM
“How do I delete a portfolio?”
“Why can't I delete a portfolio that still holds balances?”
Tell an agent destructive · confirm first
Delete portfolio {portfolio_id}.
Remove portfolio {portfolio_id} from my account.
GET /portfolios/{portfolio_id}/commission Get a portfolio's commission rate · Get portfolio commission #
Ask an LLM
“What commission and fee rate does a portfolio charge?”
“Can I check the fee structure for one portfolio?”
Tell an agent
Get the commission for portfolio {portfolio_id}.
Show the fee rate structure of portfolio {portfolio_id}.
POST /portfolios/move_funds Move funds between my portfolios · Move portfolio funds #
Ask an LLM
“How do I move funds from one of my portfolios to another?”
“Do both portfolios need to belong to the same user?”
Tell an agent
Move {funds} from portfolio {source_portfolio_uuid} to {target_portfolio_uuid}.
Transfer {funds} from {source_portfolio_uuid} to {target_portfolio_uuid}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coinbase:coinbase-portfolios-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coinbase-portfolios-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coinbase Portfolios API
  version: '1.0'
  termsOfService: https://www.coinbase.com/legal/user-agreement
  description: 'Operations tagged Portfolios across 2 of this provider''s published API definitions: coinbase-prime-openapi.yml, coinbase-portfolios-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.prime.coinbase.com/v1
  description: Production Server
- url: https://api.coinbase.com/api/v3/brokerage
  description: Production Server
security:
- apiKeyAuth: []
tags:
- name: Portfolios
  description: Manage portfolios including listing, viewing details, and accessing portfolio-level configurations.
paths:
  /portfolios:
    get:
      operationId: listPortfolios
      summary: List portfolios
      description: Retrieves a list of all portfolios for which the current API key has read access. Returns portfolio details including name, ID, and entity.
      tags:
      - Portfolios
      responses:
        '200':
          description: Successfully retrieved portfolios
          content:
            application/json:
              schema:
                type: object
                properties:
                  portfolios:
                    type: array
                    items:
                      $ref: '#/components/schemas/Portfolio'
        '401':
          description: Unauthorized
    servers:
    - url: https://api.coinbase.com/api/v3/brokerage
      description: Production Server
    post:
      operationId: createPortfolio
      summary: Create portfolio
      description: Creates a new portfolio for the authenticated user. Each portfolio provides an isolated trading environment with its own balances.
      tags:
      - Portfolios
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  description: Name for the new portfolio
      responses:
        '200':
          description: Portfolio successfully created
          content:
            application/json:
              schema:
                type: object
                properties:
                  portfolio:
                    $ref: '#/components/schemas/Portfolio_2'
        '400':
          description: Bad request - Invalid portfolio parameters
        '401':
          description: Unauthorized - Invalid or missing authentication
  /portfolios/{portfolio_id}:
    get:
      operationId: getPortfolio
      summary: Get portfolio
      description: Retrieves detailed information about a specific portfolio including its name, entity ID, and organization.
      tags:
      - Portfolios
      parameters:
      - $ref: '#/components/parameters/PortfolioIdParam'
      responses:
        '200':
          description: Successfully retrieved portfolio
          content:
            application/json:
              schema:
                type: object
                properties:
                  portfolio:
                    $ref: '#/components/schemas/Portfolio'
        '404':
          description: Portfolio not found
    servers:
    - url: https://api.coinbase.com/api/v3/brokerage
      description: Production Server
    put:
      operationId: editPortfolio
      summary: Edit portfolio
      description: Updates the name of an existing portfolio. Only the portfolio name can be modified.
      tags:
      - Portfolios
      parameters:
      - $ref: '#/components/parameters/PortfolioIdParam_2'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  description: Updated name for the portfolio
      responses:
        '200':
          description: Portfolio successfully updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  portfolio:
                    $ref: '#/components/schemas/Portfolio_2'
        '401':
          description: Unauthorized - Invalid or missing authentication
        '404':
          description: Portfolio not found
    delete:
      operationId: deletePortfolio
      summary: Delete portfolio
      description: Deletes a portfolio by its ID. The portfolio must have zero balances before it can be deleted.
      tags:
      - Portfolios
      parameters:
      - $ref: '#/components/parameters/PortfolioIdParam_2'
      responses:
        '200':
          description: Portfolio successfully deleted
        '401':
          description: Unauthorized - Invalid or missing authentication
        '404':
          description: Portfolio not found
  /portfolios/{portfolio_id}/commission:
    get:
      operationId: getPortfolioCommission
      summary: Get portfolio commission
      description: Retrieves the commission and fee rate structure for a portfolio.
      tags:
      - Portfolios
      parameters:
      - $ref: '#/components/parameters/PortfolioIdParam'
      responses:
        '200':
          description: Successfully retrieved commission details
          content:
            application/json:
              schema:
                type: object
                properties:
                  trading_volume:
                    type: string
                    description: Total trading volume
                  fee_tier:
                    type: object
                    properties:
                      maker_fee_rate:
                        type: string
                        description: Maker fee rate
                      taker_fee_rate:
                        type: string
                        description: Taker fee rate
    servers:
    - url: https://api.prime.coinbase.com/v1
      description: Production Server
  /portfolios/move_funds:
    servers:
    - url: https://api.coinbase.com/api/v3/brokerage
      description: Production Server
    post:
      operationId: moveFunds
      summary: Move portfolio funds
      description: Moves funds between portfolios owned by the authenticated user. Both the source and target portfolio must belong to the same user.
      tags:
      - Portfolios
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - funds
              - source_portfolio_uuid
              - target_portfolio_uuid
              properties:
                funds:
                  type: object
                  description: Funds to move
                  properties:
                    value:
                      type: string
                      description: Amount to transfer
                    currency:
                      type: string
                      description: Currency of the transfer
                source_portfolio_uuid:
                  type: string
                  description: UUID of the source portfolio
                target_portfolio_uuid:
                  type: string
                  description: UUID of the target portfolio
      responses:
        '200':
          description: Funds successfully moved
        '400':
          description: Bad request - Invalid transfer parameters
        '401':
          description: Unauthorized - Invalid or missing authentication
components:
  schemas:
    Portfolio:
      type: object
      description: An institutional trading portfolio
      properties:
        id:
          type: string
          description: Portfolio identifier
        name:
          type: string
          description: Portfolio name
        entity_id:
          type: string
          description: Entity ID associated with the portfolio
        organization_id:
          type: string
          description: Organization identifier
    Portfolio_2:
      type: object
      description: A user portfolio for organizing trading activity
      properties:
        uuid:
          type: string
          format: uuid
          description: Unique identifier for the portfolio
        name:
          type: string
          description: Name of the portfolio
        type:
          type: string
          description: Portfolio type
          enum:
          - DEFAULT
          - CONSUMER
          - INTX
        deleted:
          type: boolean
          description: Whether the portfolio has been deleted
  parameters:
    PortfolioIdParam:
      name: portfolio_id
      in: path
      required: true
      description: Portfolio identifier
      schema:
        type: string
    PortfolioIdParam_2:
      name: portfolio_id
      in: path
      required: true
      description: Unique identifier for the portfolio
      schema:
        type: string
        format: uuid
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-CB-ACCESS-KEY
      description: Coinbase Prime API key authentication. Requires X-CB-ACCESS-KEY, X-CB-ACCESS-SIGNATURE, X-CB-ACCESS-TIMESTAMP, and X-CB-ACCESS-PASSPHRASE headers with HMAC SHA-256 signatures.
externalDocs:
  description: Coinbase Prime API Documentation
  url: https://docs.cdp.coinbase.com/prime/docs/rest-requests
x-refined-from:
- coinbase-prime-openapi.yml
- coinbase-portfolios-api-openapi.yml