> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Coinbase Exchange

> Public Coinbase Exchange market data: trading pairs, tickers, order books, trades, candles and 24h stats.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/coinbase-exchange.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=cad275410ac8d46ffea1b54f96ec4581)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

7

Auth

None

[Vendor docs](https://docs.cdp.coinbase.com/exchange/rest-api/rate-limits)

## Notes

* Only the keyless public market-data endpoints are named here; trading and account endpoints need signed requests.
* Public endpoints allow 10 requests per second per IP, bursts to 15; over that returns 429.
* Prices and sizes are strings; keep them as decimals rather than floats.
* For real-time data Coinbase recommends the WebSocket feed over polling.

## Endpoints

GET

List trading pairs

Every currency pair available for trading.

[Open](#coinbase-exchange-products-list)

GET

Get ticker

Last trade price and size, best bid and ask, and 24h volume of a pair.

[Open](#coinbase-exchange-ticker-get)

GET

Get 24h stats

Open, high, low, last and volume over 24 hours, plus 30-day volume.

[Open](#coinbase-exchange-stats-get)

GET

Get order book

Best bid and ask (level 1) or the full book aggregated (2) or per order (3).

[Open](#coinbase-exchange-book-get)

GET

List recent trades

Latest trades of a pair, cursor-paged.

[Open](#coinbase-exchange-trades-list)

GET

Get candles

OHLCV candles of a pair at a fixed granularity.

[Open](#coinbase-exchange-candles-get)

GET

List currencies

Every currency known to the exchange.

[Open](#coinbase-exchange-currencies-list)

### List trading pairs

GET

`/products`

`coinbase-exchange.products.list`

Every currency pair available for trading.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Product type filter.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproducts) · Same job: [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-exchange-info), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-map), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-symbols), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-symbols), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-instruments-list), [Open Exchange Rates](https://docs.webrouter.net/data-apis/open-exchange-rates.md#open-exchange-rates-currencies)

```python Python theme={null}
router.call_data_api("coinbase-exchange.products.list")
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.products.list")
```

### Get ticker

GET

`/products/{product_id}/ticker`

`coinbase-exchange.ticker.get`

Last trade price and size, best bid and ask, and 24h volume of a pair.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`product_id` required</td><td>string</td><td>path</td><td>Product id, BASE-QUOTE. Example `BTC-USD`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproductticker) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-price), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-price-simple), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-prices-current)

```python Python theme={null}
router.call_data_api("coinbase-exchange.ticker.get", {'product_id': 'BTC-USD'})
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.ticker.get", params={"product_id": "BTC-USD"})
```

### Get 24h stats

GET

`/products/{product_id}/stats`

`coinbase-exchange.stats.get`

Open, high, low, last and volume over 24 hours, plus 30-day volume.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`product_id` required</td><td>string</td><td>path</td><td>Product id, BASE-QUOTE. Example `BTC-USD`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproductstats) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-24hr), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-prices-snapshot)

```python Python theme={null}
router.call_data_api("coinbase-exchange.stats.get", {'product_id': 'BTC-USD'})
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.stats.get", params={"product_id": "BTC-USD"})
```

> [!NOTE]
>
> * volume is in base currency; open, high and low in quote currency.

### Get order book

GET

`/products/{product_id}/book`

`coinbase-exchange.book.get`

Best bid and ask (level 1) or the full book aggregated (2) or per order (3).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`product_id` required</td><td>string</td><td>path</td><td>Product id, BASE-QUOTE. Example `BTC-USD`</td></tr>
    <tr><td>`level`</td><td>integer</td><td>query</td><td>1 best bid/ask (default), 2 full aggregated, 3 full per order. One of `1`, `2`, `3`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproductbook)

```python Python theme={null}
router.call_data_api("coinbase-exchange.book.get", {'product_id': 'BTC-USD'})
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.book.get", params={"product_id": "BTC-USD"})
```

> [!NOTE]
>
> * Polling level 3 heavily can get access limited or blocked.

### List recent trades

GET

`/products/{product_id}/trades`

`coinbase-exchange.trades.list`

Latest trades of a pair, cursor-paged.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`product_id` required</td><td>string</td><td>path</td><td>Product id, BASE-QUOTE. Example `BTC-USD`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return, default 1000.
      </td>
    </tr>

    <tr>
      <td>
        `before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Pagination cursor: sets the start cursor to this trade id.
      </td>
    </tr>

    <tr>
      <td>
        `after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Pagination cursor: sets the end cursor to this trade id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproducttrades)

```python Python theme={null}
router.call_data_api("coinbase-exchange.trades.list", {'product_id': 'BTC-USD'})
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.trades.list", params={"product_id": "BTC-USD"})
```

### Get candles

GET

`/products/{product_id}/candles`

`coinbase-exchange.candles.get`

OHLCV candles of a pair at a fixed granularity.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`product_id` required</td><td>string</td><td>path</td><td>Product id, BASE-QUOTE. Example `BTC-USD`</td></tr>
    <tr><td>`granularity`</td><td>integer</td><td>query</td><td>Seconds per candle: 60, 300, 900, 3600, 21600 or 86400. One of `60`, `300`, `900`, `3600`, `21600`, `86400`</td></tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Range start timestamp; ignored unless end is also set.
      </td>
    </tr>

    <tr>
      <td>
        `end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Range end timestamp; ignored unless start is also set.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getproductcandles) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("coinbase-exchange.candles.get", {'product_id': 'BTC-USD'})
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.candles.get", params={"product_id": "BTC-USD"})
```

> [!NOTE]
>
> * At most 300 candles per request; split longer ranges. Intervals with no trades have no candle.

### List currencies

GET

`/currencies`

`coinbase-exchange.currencies.list`

Every currency known to the exchange.

Input

No inputs.

[Vendor docs](https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_getcurrencies) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-token-metadata), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-asset-metadata), [Etherscan](https://docs.webrouter.net/data-apis/etherscan.md#etherscan-token-tokeninfo), [Glassnode](https://docs.webrouter.net/data-apis/glassnode.md#glassnode-metadata-assets), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-token-metadata)

```python Python theme={null}
router.call_data_api("coinbase-exchange.currencies.list")
```

```text MCP theme={null}
call_data_api(endpoint="coinbase-exchange.currencies.list")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.