Migration to Deribit Global Derivatives trading
Who is this guide for:
- These guides are for new or existing Coinbase retail clients/partners who want to trade Global Derivatives after cutover.
- Existing Deribit clients can continue to use Deribit services and APIs as they do today.
What’s new for you:
- 125+ perpetual contracts: Including equity and commodity perpetuals
- Up to 50x maximum leverage
- Deeper liquidity: Unified order books from a combined global user base
- Starbase platform: Faster, more scalable, lower-latency execution
- Options trading — Coming soon for eligible users
What’s changing
- New API endpoints. Derivatives trading moves to a new Deribit-powered gateway. The protocol moves from REST to JSON-RPC 2.0, over HTTP or WebSocket. Hosts are on the API reference overview; protocol detail is in the Technical Guide.
- New products. 125+ perpetual contracts at launch — including equity and commodity perpetuals — with up to 50x maximum leverage. Options and dated futures follow (see Timeline).
- A richer trading surface. New native order types and features become available, including trailing stops, market-limit orders, iceberg orders, and WebSocket order entry.
- More order controls. Choose your margin model per portfolio, trigger stop and take orders on the index, mark, or last price, and auto-cancel resting orders if your WebSocket connection drops (Cancel on Disconnect).
What’s not changing
- Your API key. Keep your existing CDP API key. There are no new credentials to create, and the same key authenticates to the new gateway.
- Spot trading. Spot API endpoints are unaffected and remain on api.coinbase.com.
- Funding. You fund your derivatives account through Coinbase, as today — see Funding below.
- Key management. API keys are still created and managed in the CDP Portal, as today.
Migration Guides
The migration is covered in the 4 guides:Overview
Technical Guide
Deribit Partners Guide
INTX Partners Guide
Timeline
What happens at cutover
Your positions and balances migrate automatically — but your open orders do not.Open orders are cancelled
Positions are settled and recreated
Balances transfer
Funding
Funding stays on Coinbase. Only derivatives trading moves to the new gateway. Fund your derivatives portfolio in the same way via the UI or API before you place orders:- Retrieve the portfolio’s account ID with
GET /api/v3/brokerage/portfolios - Transfer collateral with
POST /api/v3/brokerage/portfolios/move_funds.
Margin models
You choose a margin model per portfolio, and the choice combines two independent settings.- Cross or segregated. Cross margin pools collateral across all your positions, so a gain on one cushions a loss on another. Segregated (isolated) margin ring-fences collateral to a single position, so a loss there can’t drain the rest of your account.
- Portfolio or standard. Portfolio margin nets the risk of related positions and can lower your total requirement. Standard margin sizes each position’s requirement on its own, with no netting.
private/change_margin_model.
Order types
Order-type and time-in-force values are renamed and lowercased. The take-profit / stop-loss model also changes shape.Order type mapping
Time-in-force
Migration checklist
Detailed auth, endpoint, and schema specifics are in the Technical Guide. This is the action list:Update base URLs and move to JSON-RPC 2.0
- REST
https://drb.coinbase.com/api/v2 - WebSocket
wss://drb.coinbase.com/ws/api/v2
Keep your CDP API keys but add the new token exchange
public/auth with grant_type: coinbase_cdp, then cache and refresh the access token before it expires.Update instrument names
{BASE}_USDC-PERPETUAL (for example, BTC-PERP-INTX → BTC_USDC-PERPETUAL). Discover exact names via public/get_instruments.Fund your derivatives account
Send numeric values as numbers
amount units follow the instrument.Update order-type and time-in-force values
Refactor take-profit / stop-loss to OTOCO
Deribit Advanced Trading gateway is live
FAQ
Do I need a separate trading account or API key?
Do I need a separate trading account or API key?
Can I run old and new endpoints in parallel during cutover?
Can I run old and new endpoints in parallel during cutover?
What happens to my open orders and positions at cutover?
What happens to my open orders and positions at cutover?
Is spot trading affected?
Is spot trading affected?
api.coinbase.com. You can also place spot orders through the new gateway, which routes them to the same Coinbase Exchange order books. That path is optional and additive; there is nothing to migrate for spot.How do I fund my derivatives account?
How do I fund my derivatives account?
My GTT orders — what do I do?
My GTT orders — what do I do?
My stop-limit tracking broke after a trigger.
My stop-limit tracking broke after a trigger.
My retry loop keeps getting disconnected.
My retry loop keeps getting disconnected.
Where do I get integration support?
Where do I get integration support?