← All articles

Coinbase INTX perpetuals moved to Starbase: migrating Node.js code to the Global Derivatives API

On 1 October 2026, Coinbase moved Advanced Trade international derivatives (the INTX perpetuals) to a new gateway built on the Deribit-powered Starbase platform. Spot and US futures did not move. If your Node.js code places or tracks international perpetual orders through the old Advanced Trade REST endpoints, it now needs a different client, different instrument names and different request shapes.

This post walks through what changed and shows the same tasks with the coinbase-api package (the Coinbase JavaScript SDK we maintain at Siebly), which has a dedicated CBAdvancedTradeGlobalClient for the new API. Coinbase’s own derivatives migration guide is the source of truth for endpoint details.

What actually changed

  • Protocol. The new API is JSON-RPC 2.0 at https://drb.coinbase.com/api/v2, not the REST paths under /api/v3/brokerage.
  • Instrument names. instrument_name replaces the old product id. BTC-PERP-INTX becomes BTC_USDC-PERPETUAL.
  • Numbers, not strings. Prices and sizes are JSON numbers. On these USDC perpetuals, amount: 0.001 means 0.001 of the base coin.
  • Side is the method. There is no single “create order” call with a side field. You call buy or sell.
  • Labels, not client order ids. label replaces client_order_id, and it is not guaranteed unique, so don’t use it as an idempotency key.
  • Lowercase enums. Order type, time in force and status are lowercase (limit, good_til_cancelled, open).
  • No order preview. The old /orders/preview endpoint has no equivalent.

Install and create the client

npm install coinbase-api

The Global client uses the same CDP API keys as Advanced Trade. ECDSA and Ed25519 keys are both detected automatically.

import { CBAdvancedTradeGlobalClient } from 'coinbase-api';

const client = new CBAdvancedTradeGlobalClient({
  apiKey: process.env.CB_API_KEY_NAME!,
  apiSecret: process.env.CB_API_PRIVATE_KEY!,
});

Spot and US futures code stays on CBAdvancedTradeClient. Many apps will end up with both clients side by side.

Find the new instrument names

Rather than hard-coding the mapping, list the instruments once at startup:

const instruments = await client.getInstruments({
  currency: 'any',
  kind: 'future',
});

const perps = instruments.filter((i) => i.instrument_name.endsWith('-PERPETUAL'));
console.log(perps.map((i) => i.instrument_name));

const ticker = await client.getTicker({ instrument_name: 'BTC_USDC-PERPETUAL' });
console.log(ticker);

The SDK returns the JSON-RPC result directly, so there is no result or id to unwrap on a successful call.

Placing and cancelling orders

The old POST /orders call with a side field becomes submitBuy() or submitSell():

const placed = await client.submitBuy({
  instrument_name: 'BTC_USDC-PERPETUAL',
  amount: 0.001,
  type: 'limit',
  price: 50000,
  post_only: true,
  label: `my-bot-${Date.now()}`,
});

console.log(placed.order.order_id, placed.order.order_state);

await client.cancelOrder({ order_id: placed.order.order_id });

Batch cancel by a list of ids is gone. Either loop over cancelOrder(), or use one of the cancel-all variants such as cancelAllByInstrument().

Quick mapping for common calls

Old Advanced Trade call New JSON-RPC method SDK method
POST /orders private/buy, private/sell submitBuy(), submitSell()
POST /orders/edit private/edit updateOrder(), updateOrderByLabel()
POST /orders/batch_cancel private/cancel, private/cancel_all_* cancelOrder(), cancelAll() and friends
GET /orders/historical/{id} private/get_order_state getOrderState()
GET /intx/positions/{uuid} private/get_positions getPositions()
GET /intx/portfolio/{uuid} private/get_account_summary getAccountSummary()
GET /product_book public/get_order_book getOrderBook()
GET /products/{id}/candles public/get_tradingview_chart_data getTradingviewChartData()

Parameters and responses are not the same shape as before, so treat each row as “where to look”, not a drop-in rename. The full list is in the CBAdvancedTradeGlobalClient reference.

WebSockets

The streams moved too. Public market data uses the advTradeGlobalMarketData key, with full channel names including the instrument and interval:

import { WebsocketClient, WS_KEY_MAP } from 'coinbase-api';

const ws = new WebsocketClient();

ws.on('update', (event) => {
  console.log(event.params.channel, event.params.data);
});

ws.subscribe(
  ['quote.BTC-PERPETUAL', 'ticker.BTC-PERPETUAL.100ms'],
  WS_KEY_MAP.advTradeGlobalMarketData,
);

For orders, positions and portfolio updates, pass your keys and use WS_KEY_MAP.advTradeGlobalUserData with channels like user.orders.future.USDC.100ms and user.portfolio.USDC. The client authenticates with a CDP JWT, renews the session before it expires and restores subscriptions after a reconnect. Global connections open on demand and are not part of connectAll().

Migration checklist

  1. Split international perpetual code onto CBAdvancedTradeGlobalClient; leave spot and US futures where they are.
  2. Replace product ids with instrument_name values from getInstruments().
  3. Send prices and sizes as numbers and check the size units for each instrument.
  4. Stop relying on client_order_id uniqueness; keep your own idempotency map keyed by order_id.
  5. Lowercase any order type, time in force and status comparisons.
  6. Move WebSocket subscriptions to the Global market data and user data keys.

For the rest of the Coinbase APIs (spot, US futures, the App API and WebSockets), the Coinbase API JavaScript tutorial covers setup and the common flows. If you are still on code written for Coinbase Pro, see the Coinbase Pro to Advanced Trade migration guide first.