v3 endpoints.
Advanced Trade Endpoints
Advanced Trade endpoint URL:https://api.coinbase.com/api/v3/brokerage/{resource}
Private Endpoints
Consult the Authentication guide for more information on CDP API keys.| API | Method | Resource | API Key Permission |
|---|---|---|---|
| List Accounts | GET | /accounts | view |
| Get Account | GET | /accounts/:account_id | view |
| Create Order | POST | /orders | trade |
| Cancel Orders | POST | /orders/batch_cancel | trade |
| List Orders | GET | /orders/historical/batch | view |
| List Fills | GET | /orders/historical/fills | view |
| Get Order | GET | /orders/historical/{order_id} | view |
| Preview Orders | POST | /orders/preview | view |
| Get Best Bid/Ask | GET | /best_bid_ask | view |
| Get Product Book | GET | /product_book | view |
| List Products | GET | /products | view |
| Get Product | GET | /products/{product_id} | view |
| Get Product Candles | GET | /products/{product_id}/candles | view |
| Get Market Trades | GET | /products/{product_id}/ticker | view |
| Get Transactions Summary | GET | /transaction_summary | view |
| Create Convert Quote | POST | /convert/quote | trade |
| Commit Convert Trade | POST | /convert/{trade_id} | trade |
| Get Convert Trade | GET | /convert/{trade_id} | view |
| List Portfolios | GET | /portfolios | view |
| Create Portfolio | POST | /portfolios | view (any portfolio) |
| Move Portfolio Funds | POST | /portfolios | transfer (for source portfolio) |
| Get Portfolio Breakdown | GET | /portfolios | view (for that portfolio) |
| Delete Portfolio | DELETE | /portfolios | trade (for that portfolio) |
| Edit Portfolio | PUT | /portfolios | trade (for that portfolio) |
| Get Futures Balance Summary | GET | /cfm/balance_summary | view |
| List Futures Positions | GET | /cfm.positions | view |
| Get Futures Position | GET | /cfm/positions/{product_id} | view |
| Schedule Futures Sweep | POST | /cfm/sweeps/schedule | transfer |
| List Futures Sweeps | GET | /cfm/sweeps | view |
| Cancel Futures Sweep | DELETE | /cfm/sweeps | transfer |
| Get Intraday Margin Setting | GET | /cfm/intraday/margin_setting | view |
| Set Intraday Margin Setting | POST | /cfm/intraday/margin_setting | trade |
| Get Current Margin Window | GET | /cfm/intraday/current_margin_window | view |
| Get Perpetuals Portfolio Summary | GET | /intx/portfolio | view (for intx portfolio) |
| List Perpetuals Positions | GET | /intx/positions | view (for intx portfolio) |
| Get Perpetuals Position | GET | /intx/positions | view (for intx portfolio) |
| Get Perpetuals Portfolio Balances | GET | /intx/balances | view (for intx portfolio) |
| Opt-In Multi Asset Collateral | POST | /intx/multi_asset_collateral | trade (for intx portfolio) |
| Allocate Portfolio | POST | /intx/allocate | transfer (for intx portfolio) |
| List Payment Methods | GET | /payment_methods | view |
| Get Payment Method | GET | /payment_methods/{payment_method_id} | view |
| Get Api Key Permissions | GET | /key_permissions | view |
Public Endpoints
Public endpoints do not require authentication.1s cache is enabled for all public endpoints. If you need real-time data, please choose one of the following options:
- Use the WebSocket (recommended as this will provide the fastest product and market trades updates).
- Set
cache-control: no-cacheheader on the API requests to bypass caching. - Use the authenticated endpoints.
| API | Method | Resource |
|---|---|---|
| Get Server Time | GET | /time |
| Get Public Product Book | GET | /market/product_book |
| List Public Products | GET | /market/products |
| Get Public Product | GET | /market/products/{product_id} |
| Get Public Product Candles | GET | /market/products/{product_id}/candles |
| Get Public Market Trades | GET | /market/products/{product_id}/ticker |