Skip to main content
The Coinbase Advanced Trade API exposes a rich set of market data endpoints that let you build price feeds, charting tools, algorithmic strategies, and order-book visualizations without managing a separate data provider. You can fetch the current price of any trading pair, inspect the best bid and ask across multiple products in one call, pull a full or depth-limited order book, and download OHLCV candlestick data at granularities from one minute to one day. All market data endpoints require a valid JWT in the Authorization header.

Get the current price

Call GET /api/v3/brokerage/products/{product_id} to retrieve the latest trade price, 24-hour statistics, and product configuration for a single trading pair.
Example response:
The base_increment and quote_increment fields define the minimum size and price step for orders on this product — important to respect when constructing order payloads.

Best bid and ask

To check the top-of-book prices for one or more products simultaneously, call GET /api/v3/brokerage/best_bid_ask. Pass a comma-separated list of product_ids as a query parameter.
Example response:
The spread — the difference between the best ask and best bid — is a quick indicator of market liquidity for the product at that moment.

Order book

For a deeper view of available liquidity at multiple price levels, call GET /api/v3/brokerage/product_book. Use the limit parameter to control how many price levels are returned on each side of the book.
Example response:
Bids are returned in descending price order (highest first); asks are in ascending price order (lowest first). The first entry in each array represents the best available price on that side.

Candlestick / OHLCV data

Historical and recent OHLCV (Open, High, Low, Close, Volume) candle data is available at GET /api/v3/brokerage/products/{product_id}/candles. You must supply a start timestamp, an end timestamp (both as Unix seconds), and a granularity string.

Granularity options

The API returns a maximum of 350 candles per request. For longer time ranges, paginate by shifting your start/end window.
Example response:
Each candle object contains: Candles are returned in reverse-chronological order (most recent first).
If you need a continuous stream of live price data, consider connecting to the WebSocket feed and subscribing to the ticker channel instead of polling the REST endpoint. WebSocket delivers updates as trades happen, with lower latency and no rate-limit concerns.