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

# Coinbase Advanced Trade API

The Advanced Trade API is Coinbase's programmatic interface for **spot crypto and derivatives** — order entry and management, account and portfolio data, and real-time market data over REST and WebSocket.

## Spot & US Derivatives

Spot crypto and CFTC-regulated US futures.

* Market, limit, stop-limit, bracket and attached take-profit/stop-loss orders.
* Accounts, portfolios and converts on the same REST host as the order path.
* The API is **REST** for request-response and **WebSocket** for market data and user streams.

<CardGroup cols={2}>
  <Card title="REST" icon="code" href="/coinbase-app/advanced-trade-apis/rest-api">
    Order entry and management, accounts, portfolios, and market data over REST.

    Download the <a href="/api-reference/advanced-trade-api/rest-api/advanced-trade-spec.yaml" download target="_blank">OpenAPI spec</a>.
  </Card>

  <Card title="WebSocket Streams" icon="bolt" href="/coinbase-app/advanced-trade-apis/websocket/websocket-endpoints">
    Real-time market data and user order, position, and futures balance streams.

    Download the <a href="/api-reference/advanced-trade-api/advanced-trade-asyncapi.json" download target="_blank">AsyncAPI spec</a>.
  </Card>
</CardGroup>

## Global Derivatives

<Warning>
  **Coming soon.** The Deribit-powered gateway is published ahead of cutover so you can plan your integration now — see the [Migration Overview](/coinbase-app/advanced-trade-apis/guides/derivatives/overview).
</Warning>

Advanced Trade is moving Global Derivatives from INTX onto a Deribit-powered gateway running on the Starbase platform.

* New native order types and features — trailing stops, market-limit orders and WebSocket order entry.
* Deeper liquidity, lower-latency execution and a broader product set (options and dated futures to follow).
* The gateway is **JSON-RPC 2.0** over both HTTP and WebSocket.

<CardGroup cols={2}>
  <Card title="REST" icon="code" href="/coinbase-app/advanced-trade-apis/rest-api">
    JSON-RPC request-response over HTTP. Snapshots such as `public/get_index_price`.

    Download the <a href="/api-reference/coinbase-deribit-app-api/adv-starbase-openapi.json" download target="_blank">OpenAPI spec</a>.
  </Card>

  <Card title="WebSocket" icon="bolt" href="/coinbase-app/advanced-trade-apis/websocket/websocket-endpoints">
    Public market data on the public WebSocket. Order and user channels on the private WebSocket.

    Download the <a href="/api-reference/coinbase-deribit-app-api/adv-starbase-asyncapi.json" download target="_blank">AsyncAPI spec</a>.
  </Card>
</CardGroup>

## URLs

REST uses one URL for public and private methods.

| Venue                   | REST (public and private)                   |
| :---------------------- | :------------------------------------------ |
| Spot and US Derivatives | `https://api.coinbase.com/api/v3/brokerage` |
| Global Derivatives      | `https://drb.coinbase.com/api/v2`           |

WebSocket uses a public host and a private host.

| Venue                   | WebSocket public                           | WebSocket private                           |
| :---------------------- | :----------------------------------------- | :------------------------------------------ |
| Spot and US Derivatives | `wss://advanced-trade-ws.coinbase.com`     | `wss://advanced-trade-ws-user.coinbase.com` |
| Global Derivatives      | `wss://streams.drb.coinbase.com/ws/api/v2` | `wss://drb.coinbase.com/ws/api/v2`          |

<Note>
  On Global Derivatives, HTTP methods also run on the private WebSocket. The public WebSocket is subscription-only.
</Note>
