# Coinbase Developer Documentation: API Reference

## API Reference

- [API Reference / CDP API (293 pages)](https://docs.cdp.coinbase.com/_llms/api-reference/cdp-api.txt): CDP API, REST API.
- [API Reference / Coinbase Advanced Trade API (206 pages)](https://docs.cdp.coinbase.com/_llms/api-reference/coinbase-advanced-trade-api.txt): Get Started, Spot & US Derivatives - REST, Spot & US Derivatives - WS Streams, Global Derivatives - REST / WS, Global Derivatives - WS Streams.
- [API Reference / Coinbase Exchange API (110 pages)](https://docs.cdp.coinbase.com/_llms/api-reference/coinbase-exchange-api.txt): REST API, FIX API, Websocket Feed.
- [API Reference / Coinbase Prime API (149 pages)](https://docs.cdp.coinbase.com/_llms/api-reference/coinbase-prime-api.txt): REST API, Websocket Feed, FIX 4.2 API, FIX 5.0 API.

### Coinbase Business API

#### REST API

- [Welcome to Coinbase Business API](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/introduction.md)

##### Checkouts

- [Checkouts API Reference](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/introduction.md)
- [Create Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/create-checkout.md): Creates a new checkout. Returns a payment URL to redirect your customer to. Each checkout is single-use.
- [List Checkouts](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/list-checkouts.md): Retrieves a paginated list of checkouts.
- [Get Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/get-checkout.md): Retrieves details of a specific checkout by ID.
- [Deactivate Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/deactivate-checkout.md): Deactivates a checkout, preventing it from accepting further payments. Only `ACTIVE` checkouts can be deactivated.
- [Refund Checkout](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/checkouts/refund-checkout.md): Initiates a refund for a completed checkout. Only `COMPLETED` or `PARTIALLY_REFUNDED` checkouts can be refunded.

##### Invoicing

- [Invoicing API Reference](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/invoicing/introduction.md)
- [List Invoices](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/invoicing/list-invoices.md): Retrieves a paginated list of invoices for the authenticated user's entity.
- [Get Invoice](https://docs.cdp.coinbase.com/api-reference/business-api/rest-api/invoicing/get-invoice.md): Retrieves details of a specific invoice by UUID.

### Coinbase International Exchange API

#### REST API

- [Welcome to Coinbase INTX API](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/introduction.md)
- [INTX REST API Authentication](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/authentication.md)

##### Address Book

- [Get address book](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/address-book/get-address-book.md): Returns all eligible recipients for withdrawal.

##### Portfolios

- [Get balance for portfolio/asset](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/get-balance-for-assests.md): Retrieves the balance for a given portfolio and asset.
- [Get portfolio summary](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/get-portfolio-summary.md): Retrieves the high level overview of a portfolio.
- [Get position for portfolio/instrument](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/get-position-portfolio.md): Retrieves the position for a given portfolio and symbol.
- [Get user portfolio](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/get-user-portfolio.md): Returns the user's specified portfolio.
- [List all user portfolios](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/list-all-user-portfolios.md): Returns all of the user's portfolios.
- [List fills by portfolios](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/list-fills-portfolio.md): Returns fills for specified portfolios or fills for all portfolios if none are provided.
- [List portfolio balances](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/list-portfolio-balances.md): Returns all of the balances for a given portfolio.
- [List portfolio fills](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/list-portfolio-fills.md): Returns all of the fills for a given portfolio.
- [List portfolio positions](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/portfolios/list-portfolio-positions.md): Returns all of the positions for a given portfolio.

##### Transfers

- [Get transfer](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/transfers/get-transfer.md)
- [List matching transfers](https://docs.cdp.coinbase.com/api-reference/international-exchange-api/rest-api/transfers/list-matching-transfers.md)

### CDE: Futures API

#### REST API Overview

- [Welcome to the Coinbase Derivatives: Futures REST API](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/introduction.md)
- [Coinbase Derivatives: Futures REST API Authentication](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/authentication.md)

#### REST Endpoints

##### Block Trades

- [Get Block Trades](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trades/get-block-trades.md): Retrieves all block trades where user owns the reporting firm/entity.
- [Get Filtered Block Trades](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trades/get-filtered-block-trades.md): Retrieves permissioned block trades matching the specified filter criteria. All filter parameters are optional and can be combined.
- [Get Bookable Block Trade Accounts](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trades/get-bookable-block-trade-accounts.md): Retrieves the list of block trade accounts that the authenticated user can book trades for.
- [Get Bookable Block Trade Entities](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trades/get-bookable-block-trade-entities.md): Retrieves the list of block trade entities that the authenticated user can book trades for.
- [Get Bookable Block Traders](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trades/get-bookable-block-traders.md): Retrieves the list of block traders that the authenticated user can book trades for.
- [Book a Block Trade](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trades/book-a-block-trade.md): Books a new block trade between two parties. For TAS requests, set tas_sub_type=TAS, omit price, and provide tick_differential. If tas_sub_type is omitted, the request is treated as a non-TAS block trade: price is required and tick_differential must not be provided. tick_differential is expressed as…

##### Block Trade Accounts

- [Get All Block Trade Account Permissions](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-accounts/get-all-block-trade-account-permissions.md): Retrieves a list of all block trade account permissions you have access to.
- [Get Block Trade Account Permission](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-accounts/get-block-trade-account-permission.md): Retrieves information for a block trade account permission with the specified UUID.
- [Get All Block Trade Accounts](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-accounts/get-all-block-trade-accounts.md): Retrieves a list of all block trade accounts you have access to.
- [Get Block Trade Account](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-accounts/get-block-trade-account.md): Retrieves information for a block trade account with the specified UUID.
- [Get All Block Trade Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-accounts/get-all-block-trade-position-limits.md): Retrieves a list of all block trade position limits you have access to.
- [Get Block Trade Position Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-accounts/get-block-trade-position-limit.md): Retrieves information for a block trade position limit with the specified UUID.

##### Block Trade Entities

- [Get All Block Trade Entities](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-entities/get-all-block-trade-entities.md): Retrieves a list of all block trade entities you have access to.
- [Get Block Trade Entity](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-entities/get-block-trade-entity.md): Retrieves information for a block trade entity with the specified UUID.
- [Get Block Trade Entities by Firm](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-trade-entities/get-block-trade-entities-by-firm.md): Retrieves the block trade entity associated with the specified firm.

##### Block Traders

- [Get All Block Traders](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-traders/get-all-block-traders.md): Retrieves a list of all block traders you have access to.
- [Get Block Trader](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/block-traders/get-block-trader.md): Retrieves information for a block trader with the specified UUID.

##### Firm Position Limits

- [List All Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-position-limits/list-all-position-limits.md): Retrieves position limits for all firms that the user has access to.
- [Get Firm Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-position-limits/get-firm-position-limits.md): Retrieves position limits from a specific firm.
- [Update Firm Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-position-limits/update-firm-position-limits.md): Updates position limits for a specific firm
- [List All Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-position-limits/list-all-position-limits-1.md): Retrieves position limits for all firms that the user has access to.
- [Get Firm Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-position-limits/get-firm-position-limits-1.md): Retrieves position limits from a specific firm.
- [Update Firm Position Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-position-limits/update-firm-position-limits-1.md): Updates position limits for a specific firm

##### Firm Product Group Limits

- [Create Zero Firm Product Group Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-group-limits/create-zero-firm-product-group-limit.md): Creates a zero position limit to a specific firm/product group that disables trading for that combination.
- [Remove Firm Product Group Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-group-limits/remove-firm-product-group-limit.md): Removes any product group level limit for a specific firm/product group combination
- [Get Firm Product Group Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-group-limits/get-firm-product-group-limits.md): Retrieves product group limits for a specific firm, including individual product limits within each group
- [Create Zero Firm Product Group Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-group-limits/create-zero-firm-product-group-limit-1.md): Creates a zero position limit to a specific firm/product group that disables trading for that combination.
- [Remove Firm Product Group Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-group-limits/remove-firm-product-group-limit-1.md): Removes any product group level limit for a specific firm/product group combination
- [Get Firm Product Group Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-group-limits/get-firm-product-group-limits-1.md): Retrieves product group limits for a specific firm, including individual product limits within each group

##### Firm Product Limits

- [Create Zero Firm Product Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/create-zero-firm-product-limit.md): Creates a limit that will block the firm from trading the corresponding product.
- [Remove Firm Product Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/remove-firm-product-limit.md): Removes any product level limit for a specific firm and product
- [Get Firm Product Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/get-firm-product-limits.md): Gets product limits for a specific firm and optional product combination.
- [Set Firm Product Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/set-firm-product-limit.md): Set position limits on a product.
- [Batch Set Firm Product Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/batch-set-firm-product-limit.md): Set position limits for multiple products.
- [Remove Firm Product Limit](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/remove-firm-product-limit-1.md): Removes any product level limit for a specific firm and product
- [Get Firm Product Limits](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firm-product-limits/get-firm-product-limits-1.md): Gets product limits for a specific firm and optional product combination.

##### Firms

- [Get All Firms](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firms/get-all-firms.md): Retrieves a list of all firms you have access to.
- [Get Firm](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/firms/get-firm.md): Retrieves information for a firm with the specified UUID.

##### Funding Rate

- [Get historical funding rates](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/funding-rate/get-historical-funding-rates.md): Retrieves the historical funding rate data for a specific instrument.

##### Instruments

- [Get Instrument Details](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/instruments/get-instrument-details.md): Retrieves detailed information about instruments based on the provided filter criteria. Allows optional filtering by product codes, symbols, instrument IDs, trading states, activation date, and expiration date.
- [Get Valid Series](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/instruments/get-valid-series.md): Retrieves valid series information for instruments based on the provided filter criteria. Returns series data including product code, expiry, contract size, trading dates, and settlement information. Allows optional filtering by product codes, symbols, instrument IDs, trading states, activation date…

##### Risk

- [Kill Switch](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/risk/kill-switch.md): Activates a kill switch to cancel orders and lock trading for specified users, firms, or FCMs. Must only include one uuid (fcm, firm, or trading user). When activated, all open orders will be cancelled and new orders will be rejected.
- [Unlock Trading](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/risk/unlock-trading.md): Deactivates kill switch to cancel orders and unlocks trading for specified users, firms, or FCMs. Must only include one uuid (fcm, firm, or trading user).

##### Positions

- [Get All Firm Positions](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/positions/get-all-firm-positions.md): Retrieves firm-level positions for all firms you have access to
- [Get Firm Position](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/positions/get-firm-position.md): Retrieves positions for the specified firm
- [Get All Firm Positions](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/positions/get-all-firm-positions-1.md): Retrieves firm-level positions for all firms you have access to
- [Get Firm Position](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/positions/get-firm-position-1.md): Retrieves positions for the specified firm

##### Users

- [Get All Users](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/users/get-all-users.md): Retrieves a list of all users you have access to, or all users in the specified firm.
- [Get User](https://docs.cdp.coinbase.com/api-reference/derivatives-api/rest-api/users/get-user.md): Retrieves information for a user with the specified UUID.

#### FIX

- [Derivatives FIX Overview](https://docs.cdp.coinbase.com/derivatives/fix/overview.md)
- [Derivatives FIX Header/Trailer Messages](https://docs.cdp.coinbase.com/derivatives/fix/header-trailer.md)
- [Derivatives FIX Session Messages](https://docs.cdp.coinbase.com/derivatives/fix/session.md)
- [Derivatives FIX Market Data Messages](https://docs.cdp.coinbase.com/derivatives/fix/market-data.md)
- [Derivatives FIX Order Entry Messages](https://docs.cdp.coinbase.com/derivatives/fix/order-entry.md)
- [Derivatives FIX Drop Copy Messages](https://docs.cdp.coinbase.com/derivatives/fix/drop-copy.md)
- [Derivatives FIX Security Definitions](https://docs.cdp.coinbase.com/derivatives/fix/security-definitions.md)
- [Derivatives FIX Code Sets](https://docs.cdp.coinbase.com/derivatives/fix/code-sets.md)

#### SBE

- [Derivatives SBE Overview](https://docs.cdp.coinbase.com/derivatives/sbe/overview.md)
- [Derivatives SBE Header Message](https://docs.cdp.coinbase.com/derivatives/sbe/header.md)
- [Derivatives SBE Session Messages](https://docs.cdp.coinbase.com/derivatives/sbe/session.md)
- [Derivatives SBE Order Entry Messages](https://docs.cdp.coinbase.com/derivatives/sbe/order-entry.md)

#### UDP

- [Derivatives UDP Overview](https://docs.cdp.coinbase.com/derivatives/udp/overview.md)
- [Message structure](https://docs.cdp.coinbase.com/derivatives/udp/message-structure.md)
- [Derivatives UDP Realtime Incremental Updates](https://docs.cdp.coinbase.com/derivatives/udp/incrementals.md)
- [Derivatives UDP Periodic Snapshots](https://docs.cdp.coinbase.com/derivatives/udp/snapshots.md)
- [Derivatives UDP Retransmits](https://docs.cdp.coinbase.com/derivatives/udp/retransmits.md)

### CDE: Predictions API

#### REST API Overview

- [Welcome to the Coinbase Derivatives: Predictions REST API](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/introduction.md)
- [Coinbase Derivatives: Predictions REST API Authentication](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/authentication.md)

#### REST Endpoints

##### Account

- [Get FCM balance](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/account/get-fcm-balance.md): Returns the FCM's balance for both segregated segments. Requires an FCM-level API key.
- [Get the caller's own FCM](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/account/get-the-callers-own-fcm.md): Returns your own FCM. Requires an FCM-level API key.
- [Get fill history](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/account/get-fill-history.md): Returns your own fills, newest first; the counterparty is never included. Requires an active API key.
- [Get the caller's own trading firm](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/account/get-the-callers-own-trading-firm.md): Returns your own trading firm. Requires a FIRM-level API key.

##### MarketData

- [Get the L2 order book snapshot](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/marketdata/get-the-l2-order-book-snapshot.md): Returns the live order book for an instrument, aggregated by price level. Requires MARKET_DATA permission.
- [Get the ticker snapshot](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/marketdata/get-the-ticker-snapshot.md): Returns the last trade and the best bid and ask for an instrument. Requires MARKET_DATA permission.
- [Get recent trades](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/marketdata/get-recent-trades.md): Returns the most recent public trades for an instrument, newest first. Requires MARKET_DATA permission.

##### Orders

- [Get open orders](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/orders/get-open-orders.md): Returns your resting orders. Requires an active API key.
- [Place an order](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/orders/place-an-order.md): Submits a limit or market order. Requires TRADE permission.
- [Cancel an order by order id](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/orders/cancel-an-order-by-order-id.md): Cancels one of your active orders. Requires TRADE permission.
- [Cancel an order by client order id](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/orders/cancel-an-order-by-client-order-id.md): Cancels one of your active orders by client order ID. Requires TRADE permission. The request has no body.

##### Health

- [Liveness probe](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/health/liveness-probe.md): Unauthenticated liveness probe. Returns the literal text "pong".

##### Positions

- [Get open positions](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/positions/get-open-positions.md): Returns open positions for your Firm, or for every Firm under your FCM. Requires a FIRM- or FCM-level API key.

##### Trading Controls

- [Kill trading for a scope within the caller's hierarchy](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/trading-controls/kill-trading-for-a-scope-within-the-callers-hierarchy.md): Cancels the active orders of one scope within your own hierarchy and locks it against new orders. Requires an FCM- or FIRM-level API key with the RISK_MANAGEMENT permission.
- [Unlock trading for a scope within the caller's hierarchy](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/trading-controls/unlock-trading-for-a-scope-within-the-callers-hierarchy.md): Removes the trading lock for one scope within your own hierarchy; it never cancels orders. Requires an FCM- or FIRM-level API key with the RISK_MANAGEMENT permission.

##### Reference

- [List events](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/reference/list-events.md): Returns a page of events. Requires MARKET_DATA permission.
- [Get an event by id or ticker](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/reference/get-an-event-by-id-or-ticker.md): Returns one event. Requires MARKET_DATA permission.
- [List instruments](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/reference/list-instruments.md): Returns a page of instruments. Requires MARKET_DATA permission.
- [Get an instrument by id or ticker](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/reference/get-an-instrument-by-id-or-ticker.md): Returns one instrument. Requires MARKET_DATA permission.
- [List series](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/reference/list-series.md): Returns a page of series. Requires MARKET_DATA permission.
- [Get a series by id or ticker](https://docs.cdp.coinbase.com/api-reference/derivatives-predictions-api/rest-api/reference/get-a-series-by-id-or-ticker.md): Returns one series. Requires MARKET_DATA permission.

#### FIX

- [Coinbase Derivatives: Predictions FIX Overview](https://docs.cdp.coinbase.com/derivatives-predictions/fix/overview.md)
- [Coinbase Derivatives: Predictions FIX Header/Trailer Messages](https://docs.cdp.coinbase.com/derivatives-predictions/fix/header-trailer.md)
- [Coinbase Derivatives: Predictions FIX Session Messages](https://docs.cdp.coinbase.com/derivatives-predictions/fix/session.md)
- [Coinbase Derivatives: Predictions FIX Market Data Messages](https://docs.cdp.coinbase.com/derivatives-predictions/fix/market-data.md)
- [Coinbase Derivatives: Predictions FIX Order Entry Messages](https://docs.cdp.coinbase.com/derivatives-predictions/fix/order-entry.md)
- [Coinbase Derivatives: Predictions FIX Drop Copy Messages](https://docs.cdp.coinbase.com/derivatives-predictions/fix/drop-copy.md)

#### WebSocket

- [Coinbase Derivatives: Predictions WebSocket Overview](https://docs.cdp.coinbase.com/derivatives-predictions/websocket/overview.md)
- [Coinbase Derivatives: Predictions WebSocket Authentication](https://docs.cdp.coinbase.com/derivatives-predictions/websocket/authentication.md)
- [Coinbase Derivatives: Predictions WebSocket Commands](https://docs.cdp.coinbase.com/derivatives-predictions/websocket/commands.md)
- [Coinbase Derivatives: Predictions WebSocket Channels](https://docs.cdp.coinbase.com/derivatives-predictions/websocket/channels.md)

### CBC: Clearing API

#### REST API Overview

- [Welcome to the Coinbase Clearing REST API](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/introduction.md)
- [Coinbase Clearing REST API Authentication](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/authentication.md)

#### REST Endpoints

##### Trades

- [Get trades](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/trades/get-trades.md): Returns a page of trades.

##### Prices

- [Get instrument prices](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/prices/get-instrument-prices.md): Returns a page of instrument prices.

##### Settlement Results

- [Get settlement results](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/settlement-results/get-settlement-results.md): Returns a page of settlement results.

##### Positions

- [Get positions](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/positions/get-positions.md): Returns a page of real-time positions.

##### Balances

- [Get balances](https://docs.cdp.coinbase.com/api-reference/clearing-api/rest-api/balances/get-balances.md): Returns a page of account balances.

### CDP API V1

#### CDP API V1

- [Welcome to CDP APIs](https://docs.cdp.coinbase.com/api-reference/introduction.md): The Coinbase Developer Platform (CDP) APIs allow you to safely and securely connect to CDP suite of backend services to easily build onchain apps.
- [API Authentication](https://docs.cdp.coinbase.com/api-reference/authentication.md)
- [Networks](https://docs.cdp.coinbase.com/api-reference/networks.md)

#### REST API

##### Staking

- [Build a new staking operation](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/build-a-new-staking-operation.md): Builds a new staking operation containing a dynamic list of staking transactions based on the specified network, asset, address, and [custom options](/staking/staking-api/reference/api-usage#staking-options).
- [Fetch historical staking balances](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/fetch-historical-staking-balances.md): Fetch historical staking balances for given address. This API is available for mainnet only.
- [Fetch staking rewards](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/fetch-staking-rewards.md): Fetch staking rewards for a list of addresses. This API is available for mainnet only.
- [Get latest staking operation](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/get-latest-staking-operation.md): Fetches the latest staking operation for the specified network and address given the staking operation ID.
- [Get staking context](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/get-staking-context.md): Fetches the staking context for an address given the network, asset, address and [custom options](/staking/staking-api/reference/api-usage#staking-options).
- [Get validator by ID](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/get-validator-by-id.md): Get a validator by its ID for a given network and asset.
- [List validators](https://docs.cdp.coinbase.com/api-reference/rest-api/staking/list-validators.md): List validators belonging to the user for a given network and asset.

##### Onramp/Offramp

- [Create buy quote](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/create-buy-quote.md): The Buy Quote API provides clients with a quote based on the asset the user would like to purchase, the network they want to receive it on, the fiat amount of the payment, the payment currency, the payment method, and country of the user.
- [Create sell quote](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/create-sell-quote.md): The Sell Quote API provides clients with a quote based on the asset the user would like to sell, the network they plan to send it on, the crypto amount of the sale, the sale currency, the fiat deposit method, and country of the user.
- [Create session token](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/create-session-token.md): Creates a single use token that can be used to initialize an Onramp or Offramp session.  This API should be called once for every new user session. The returned token will expire after 5 minutes.
- [Get all offramp transactions](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-all-offramp-transactions.md): Returns all offramp transactions created by your app in the provided time period.
- [Get all onramp transactions](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-all-onramp-transactions.md): Returns all onramp transactions created by your app in the provided time period.
- [Get buy config](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-buy-config.md): The Buy Config API returns the list of countries supported by Coinbase Pay Onramp, and the payment methods available in each country. Clients should call this API periodically and cache the response.
- [Get buy options](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-buy-options.md): The Buy Options API provides clients with a way to discover the available options for buying Crypto with Coinbase Onramp. It returns the supported fiat currencies and available crypto assets that can be passed into the Buy Quote API. Clients should call this API periodically for each country they su…
- [Get offramp transactions by ID](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-offramp-transactions-by-id.md): When you initialize the Offramp Widget you can pass a `partnerUserRef` parameter to associate the transaction created during that session with the ID. You can then use that ID in this API to retrieve that transaction and any others that share the ID. The value of the `partnerUserRef` param can be an…
- [Get onramp transactions by ID](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-onramp-transactions-by-id.md): When you initialize the Onramp Widget you can pass a `partnerUserRef` parameter to associate the transaction created during that session with the ID. You can then use that ID in this API to retrieve that transaction and any others that share the ID. The value of the `partnerUserRef` param can be any…
- [Get sell config](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-sell-config.md): The Sell Config API returns the list of countries supported by Coinbase Pay Offramp, and the fiat deposit methods available in each country. Clients should call this API periodically and cache the response.
- [Get sell options](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-sell-options.md): The Sell Options API provides clients with a way to discover the available options for selling Crypto with Coinbase Offramp. It returns the supported fiat deposit currencies and available crypto assets that can be passed into the Sell Quote API. Clients should call this API periodically for each cou…

#### JSON-RPC API

- [Core JSON-RPC Methods](https://docs.cdp.coinbase.com/api-reference/json-rpc-api/core.md): The following EVM-compatible JSON-RPC methods provide convenient access to onchain data on Base.
- [Paymaster JSON-RPC Methods](https://docs.cdp.coinbase.com/api-reference/json-rpc-api/paymaster.md)
- [Address History JSON-RPC Methods](https://docs.cdp.coinbase.com/api-reference/json-rpc-api/address-history.md): The following JSON-RPC APIs provide convenient access to historical data for your onchain addresses.

## OpenAPI Specs

- [adv-starbase-openapi](/api-reference/coinbase-deribit-app-api/adv-starbase-openapi.json)
- [cde-spec](/api-reference/derivatives-api/rest-api/cde-spec.json)
- [cpm-spec](/api-reference/derivatives-predictions-api/rest-api/cpm-spec.json)
- [cbc-spec](/api-reference/clearing-api/rest-api/cbc-spec.json)

## AsyncAPI Specs

- [advanced-trade-asyncapi](/api-reference/advanced-trade-api/advanced-trade-asyncapi.json)
- [adv-starbase-asyncapi](/api-reference/coinbase-deribit-app-api/adv-starbase-asyncapi.json)
