canonical: https://jentic.com/apis/coinbase.com/coinbase

# Coinbase Advanced Trade API

The Coinbase Advanced Trade API places and manages cryptocurrency trades on Coinbase: it lists brokerage accounts and balances, creates and cancels orders, reads portfolios and fills, and returns public market data such as products, order books, and tickers. Use it to build automated trading and portfolio workflows on Coinbase.

## For AI agents

Place and cancel cryptocurrency orders, list Coinbase accounts, balances, portfolios, and fills, and read public market data including products, order books, and tickers.

## Scope

Does not handle fiat bank transfers, custody withdrawals, or Coinbase retail consumer accounts. Use for Coinbase Advanced Trade orders, accounts, portfolios, and market data only.

## Capabilities

- List brokerage accounts and read the balance for a specific account
- Create a buy or sell order and cancel open orders
- List historical orders and fills for reconciliation
- List and create portfolios to organize trading activity
- Read public market data such as products, order books, candles, and tickers without a credential
- Get the current server time from Coinbase

## Use cases

### AI agent trade execution

An AI agent reads a product's current ticker, which is public and needs no credential, decides on a target price, then places and later cancels orders using the account's stored token. Through Jentic the agent finds the market-data and order operations by intent and calls them without hand-signing each request.

Example prompt: Place a limit buy order for 0.01 BTC-USD at a target price and confirm it was accepted

### Portfolio balance monitoring

A reporting agent lists brokerage accounts and their balances and rolls them up by portfolio to show current holdings. The API returns account and portfolio data so a dashboard can refresh positions without manual export.

Example prompt: List all accounts and report the balance of each portfolio in USD

### Market data ingestion

A research pipeline pulls public products, candles, and tickers to feed a pricing model, using only the market-data endpoints that need no credential. The API exposes products and their historical candles so the pipeline can backfill and stream prices.

Example prompt: Fetch daily candles for BTC-USD over the last month and return them as a table

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/accounts` | List accounts |
| GET | `/accounts/{account_id}` | Get an account by id |
| POST | `/orders` | Create an order |
| GET | `/market/products` | List products (public market data) |
| GET | `/market/products/{product_id}/ticker` | Get a product ticker (public) |
| GET | `/portfolios` | List portfolios |

## Key resources

- **Accounts** — List brokerage accounts and read the balance for a specific account
- **Orders** — Create and cancel orders and list historical orders and fills
- **Portfolios and market data** — List and create portfolios, and read public products, order books, candles, and tickers

## Why Jentic

- **Setup:** Calling the Coinbase Advanced Trade API by hand means generating a bearer token, signing requests correctly, and separating public market-data calls from authenticated trading calls. Through Jentic you install once, import Coinbase from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** The account id, order id, and product id sit in the URL path, so a rule can allow your agent to read balances and public market data while blocking order creation and cancellation. Public market-data endpoints such as the product list and ticker need no credential, so read-only research runs without touching your trading key.
- **Credential handling:** Your Coinbase API token is stored once, encrypted, by your own Jentic One instance and injected when a trade runs. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'place a buy order' or 'get a product ticker', and Jentic returns the matching Coinbase operation with its input schema so the agent calls the right endpoint without reading the trading docs.

## Related APIs

- **Coinremitter** — Crypto payment gateway for accepting and sending cryptocurrency payments.
- **NOWPayments** — Crypto payment processing and payouts for merchants.
- **SpectroCoin Merchant** — Crypto merchant payments and wallet services.
- **MoneyGram** — Cross-border money transfer and remittance service.

## FAQ

### Is there a Coinbase Advanced Trade MCP server?

You don't need an MCP server to connect your agent to the Coinbase Advanced Trade API. Jentic connects it directly from the API Directory: import Coinbase, store your API token once, and your agent places orders and reads balances on demand.

### Can I limit what my agent is allowed to do with the Coinbase API?

Yes. Write a rule that allows only the read operations for accounts, balances, and market data, so the agent can research and report without placing or cancelling a single order. The account and order ids travel in the URL path, and every call the agent makes is logged.

### What authentication does the Coinbase Advanced Trade API use?

Trading calls authenticate with a bearer token, while public market-data endpoints such as the product list and ticker need no credential. Through Jentic the token is stored once by your self-hosted instance and injected at call time, so it never reaches the agent's context.

### Can I place a crypto order with the Coinbase API?

Yes. Create an order with the product, side, and size, and the API returns the order id and status. You can then list your historical orders and fills, or cancel the order while it is still open.

### What are the rate limits for the Coinbase Advanced Trade API?

The OpenAPI spec does not specify rate limits. Coinbase enforces per-key request limits on the Advanced Trade API, so check your account's limits before running high-frequency strategies.

### How do I connect the Coinbase Advanced Trade API to my AI agent?

Search the Jentic API Directory for the Coinbase operation you need, such as placing an order, and import it. To run it on your own infrastructure, install Jentic One from its GitHub repo, then your agent calls the API with your token injected at execution time.
