From sgcWebSockets 2025.1.0 the Coinbase Advanced Trading API is supported for WebSocket and REST Interfaces. The version supported is v3.
WebSocket API
The WebSocket feed is publicly available and provides real-time market data updates for orders and trades. Two endpoints are supported in production:
- Market Data is our traditional feed that provides updates for both orders and trades. Most channels are now available without authentication.
- User Order Data provides updates for the orders of the user.
You can subscribe to the following channels:
Channel | Description | Requires Authentication |
---|---|---|
heartbeats | Real-time server pings to keep all connections open | No |
candles | Real-time updates on product candles | No |
status | Sends all products and currencies on a preset interval | No |
ticker | Real-time price updates every time a match happens | No |
ticker_batch | Real-time price updates every 5000 milli-seconds | No |
level2 | All updates and easiest way to keep order book snapshot | No |
user | Only sends messages that include the authenticated user | Yes |
market_trades | Real-time updates every time a market trade happens | No |
futures_balance_summary | Real-time updates every time a user's futures balance changes | Yes |
REST API
The Advanced Trade API lets you manage orders, portfolios, products, and fees with our new v3 endpoints.
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 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 |