open_interest

Pack: okx · Endpoint: https://gateway.pipeworx.io/okx/mcp

Open interest for a crypto perpetual swap or dated futures contract on the OKX venue — contracts outstanding, coin-denominated size and USD notional, with timestamp. Accepts ‘MASKUSDT’, ‘MASK’ or ‘MASK-USDT-SWAP’. Use to size how much leverage is riding on a perp.

Parameters

NameTypeRequiredDescription
instIdstringyes
instTypestringnoSWAP (default), FUTURES or OPTION.

Example call

Arguments

{
  "instId": "MASK-USDT-SWAP"
}

curl

curl -X POST https://gateway.pipeworx.io/okx/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"open_interest","arguments":{"instId":"MASK-USDT-SWAP"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('open_interest', {
  "instId": "MASK-USDT-SWAP"
});

More examples

{
  "instId": "MASK"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "okx": {
      "url": "https://gateway.pipeworx.io/okx/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 23, 2026