Overview
Coinbase Advanced Trade (formerly Coinbase Pro) provides institutional-grade REST and WebSocket APIs for trading on the Coinbase exchange. It supports placing, cancelling, and querying orders, as well as fetching real-time order book snapshots and historical candle data. An API key with appropriate permissions is required for all private endpoints.
Beginner Tip
Public market-data endpoints like /products/{product_id}/ticker require no authentication — try GET https://api.exchange.coinbase.com/products/BTC-USD/ticker to see the live BTC/USD order book top before setting up API keys.
Available Data
Example Response
{
"id": "bitcoin",
"symbol": "btc",
"current_price": 65432.1,
"market_cap": 1280000000000,
"price_change_24h": 1250.5,
"price_change_percentage_24h": 1.95,
"total_volume": 28500000000
} Field Reference
trade_id Unique ID of the most recent trade on this market. price Last traded price for the product. size Quantity of the asset traded in the most recent trade. bid Highest current buy offer in the order book. ask Lowest current sell offer in the order book. volume Total trading volume in the base currency over the past 24 hours. Implementation Example
const url = "https://docs.pro.coinbase.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to Coinbase Pro
Technical alternatives for different use cases.
Advanced trading API with lower fees than Coinbase
Global market access and altcoin variety
Professional trading bots with limit orders
Similar APIs
View All →Alchemy Ethereum
Alchemy Ethereum provides programmatic access to ethereum node-as-a-service provider via REST API.
Binance
⭐ Beginner's PickBinance Spot API provides real-time and historical market data for thousands of cryptocurrency trading pairs on the world's largest crypto exchange by volume.
BitcoinAverage
BitcoinAverage aggregates price data from dozens of global cryptocurrency exchanges to produce weighted average prices for Bitcoin and other digital assets.
Bitfinex
Bitfinex is a professional cryptocurrency exchange offering one of the most comprehensive trading APIs for both spot and margin markets.
Bitmex
BitMEX is a derivatives exchange specializing in perpetual swaps and futures contracts for Bitcoin and other cryptocurrencies.