mark_price
Pack: okx · Endpoint: https://gateway.pipeworx.io/okx/mcp
OKX crypto exchange mark price for derivatives: pass instType (e.g. ‘SWAP’) and optionally uly or instId. Returns the mark price used for unrealised P&L and liquidation calculations.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
instType | string | yes | |
uly | string | no | |
instId | string | no |
Example call
Arguments
{
"instType": "FUTURES"
}
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":"mark_price","arguments":{"instType":"FUTURES"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('mark_price', {
"instType": "FUTURES"
});
More examples
{
"instType": "SWAP",
"instId": "BTC-USDT-SWAP"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Response from OKX mark price endpoint"
}
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.