Skip to main content
The Coinbase Advanced Trade API gives you complete visibility into your portfolio and full control over your open positions. You can query account balances across all currencies, enumerate your working orders, cancel one or many orders in a single request, and retrieve a breakdown of your entire portfolio by asset. This guide walks you through each of these workflows with practical code examples in curl and Python.

View your account balances

Call GET /api/v3/brokerage/accounts to list all accounts associated with your profile, including the available and hold balances for each currency.
Example response:
The available_balance reflects funds you can use immediately; hold represents funds reserved by open orders.

List your open orders

To see all orders that are currently working on the book, call GET /api/v3/brokerage/orders/historical/batch with the order_status=OPEN query parameter.
Example response:
You can also filter by product_id, order_type, or a time range using the start_date and end_date query parameters.

Cancel an order

To cancel one or more open orders, send a POST request to /api/v3/brokerage/orders/batch_cancel with an array of order_ids. You can cancel up to 100 orders in a single call.
Example response:
The response includes a result entry for every order_id you submitted. Check each success field individually — a partial failure does not cause the whole request to fail.

View portfolio breakdown

To see how your assets are distributed across positions, call GET /api/v3/brokerage/portfolios/{portfolio_uuid}. This returns a snapshot of your portfolio including the value and cost basis of each position.
You can retrieve your portfolio UUIDs by first calling GET /api/v3/brokerage/portfolios, which returns a list of all portfolios on your account. Use the uuid field from that response in the path below.
Example response:

Get transaction summary

The transaction summary endpoint provides an aggregated overview of your trading fees and volume over a specified time window. This is useful for auditing costs or calculating net P&L.
Example response:
The fee_tier block shows your current maker/taker fee rates based on your 30-day trading volume. Higher volume unlocks lower fee tiers automatically.