Basics
All requests and responses use theapplication/json content type and standard HTTP status codes.
Hosts for each environment are listed on the Coinbase Derivatives: Predictions Connectivity page.
Data types
Tickers
Tickers are opaque ASCII strings up to 128 bytes. A ticker is never all digits: in anid_or_ticker path segment, an all-digit value is read as an ID and anything else as a ticker. Do not parse meaning from a ticker.
Pagination
List endpoints return one page per request.
Every list response has two fields:
GET /api/balances returns a single object and is not paginated.
Status codes
Success
A successful request returns HTTP200. The response body for each endpoint is documented under REST Endpoints.
Errors
Errors return HTTP4xx or 5xx. The error body depends on the route: