# Coinbase

12 endpoints on Coinbase. Every one returns the same response shape and has a flat, published price in credits.

Category: [Finance & markets](https://onekey.dev/docs/categories/finance.md) · [Overview page](https://onekey.dev/platforms/coinbase)

## Endpoints

| Endpoint | What it does | Cost | Status |
| --- | --- | --- | --- |
| [`book`](https://onekey.dev/docs/api/coinbase/book.md) | Top-of-book (level 1) for an Exchange product. | 1 credit | stable |
| [`buy_price`](https://onekey.dev/docs/api/coinbase/buy_price.md) | Coinbase buy price for a currency pair (v2 public prices). | 1 credit | stable |
| [`candles`](https://onekey.dev/docs/api/coinbase/candles.md) | Candles for an Exchange product (granularity in seconds). | 5 credits | stable |
| [`currencies`](https://onekey.dev/docs/api/coinbase/currencies.md) | Fiat currencies supported by Coinbase (id, name, min size). | 5 credits | stable |
| [`currency`](https://onekey.dev/docs/api/coinbase/currency.md) | Currency details (precision, network confirmations) on Coinbase Exchange. | 1 credit | stable |
| [`product`](https://onekey.dev/docs/api/coinbase/product.md) | Trading pair details (increments, status) for an Exchange product. | 1 credit | stable |
| [`sell_price`](https://onekey.dev/docs/api/coinbase/sell_price.md) | Coinbase sell price for a currency pair (v2 public prices). | 1 credit | stable |
| [`spot`](https://onekey.dev/docs/api/coinbase/spot.md) | Coinbase spot price for a currency pair (v2 public prices). | 1 credit | stable |
| [`stats`](https://onekey.dev/docs/api/coinbase/stats.md) | 24h stats (open/high/low/last/volume) for an Exchange product. | 1 credit | stable |
| [`ticker`](https://onekey.dev/docs/api/coinbase/ticker.md) | Latest ticker for an Exchange product (e.g. BTC-USD). | 1 credit | stable |
| [`time`](https://onekey.dev/docs/api/coinbase/time.md) | Coinbase server time. | 1 credit | stable |
| [`trades`](https://onekey.dev/docs/api/coinbase/trades.md) | Latest trades for an Exchange product. | 5 credits | stable |

Every endpoint page has a **Field mapping** section showing which source field becomes which [unified field](https://onekey.dev/docs/schema.md) (fixed schema) or platform-specific `ext.` field.
