Live OKX spot and perpetual swap tickers, orderbooks, funding rates, candles, and top markets.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Fetch OHLCV candlestick bars for an OKX spot or perpetual swap instrument.
Candle interval (default "1H").
Number of candles to return (default 12, max 50).
OKX instrument ID such as "BTC-USDT" (default) or "ETH-USDT-SWAP".
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http okx-spot-derivatives-mcp https://okx-spot-derivatives-mcp.lipmichal.workers.dev/mcp
Fetch OHLCV candlestick bars for an OKX spot or perpetual swap instrument.
| Argument | Type | Description |
|---|---|---|
| bar | string | Candle interval (default "1H"). |
| limit | integer | Number of candles to return (default 12, max 50). |
| inst_id | string | OKX instrument ID such as "BTC-USDT" (default) or "ETH-USDT-SWAP". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"bar": {
"enum": [
"1m",
"3m",
"5m",
"15m",
"30m",
"1H",
"2H",
"4H",
"6H",
"12H",
"1D",
"1W"
],
"type": "string",
"description": "Candle interval (default \"1H\")."
},
"limit": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "Number of candles to return (default 12, max 50)."
},
"inst_id": {
"type": "string",
"description": "OKX instrument ID such as \"BTC-USDT\" (default) or \"ETH-USDT-SWAP\"."
}
},
"additionalProperties": false
}Fetch the live OKX perpetual swap funding rate, annualized APR, min/max bounds, and next funding timestamp.
| Argument | Type | Description |
|---|---|---|
| inst_id | string | OKX perpetual swap instrument ID such as "BTC-USDT-SWAP" (default) or "ETH-USDT-SWAP". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"inst_id": {
"type": "string",
"description": "OKX perpetual swap instrument ID such as \"BTC-USDT-SWAP\" (default) or \"ETH-USDT-SWAP\"."
}
},
"additionalProperties": false
}Retrieve top bid and ask levels from the live OKX orderbook along with spread in bps and bid/ask volume imbalance.
| Argument | Type | Description |
|---|---|---|
| depth | integer | Number of price levels per side (default 10, max 50). |
| inst_id | string | OKX instrument ID such as "BTC-USDT" (default) or "BTC-USDT-SWAP". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"depth": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "Number of price levels per side (default 10, max 50)."
},
"inst_id": {
"type": "string",
"description": "OKX instrument ID such as \"BTC-USDT\" (default) or \"BTC-USDT-SWAP\"."
}
},
"additionalProperties": false
}Fetch live OKX spot or perpetual swap ticker including last price, best bid, best ask, spread in basis points, 24h high/low, and volume.
| Argument | Type | Description |
|---|---|---|
| inst_id | string | OKX instrument ID such as "BTC-USDT" (default), "ETH-USDT", or "BTC-USDT-SWAP". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"inst_id": {
"type": "string",
"description": "OKX instrument ID such as \"BTC-USDT\" (default), \"ETH-USDT\", or \"BTC-USDT-SWAP\"."
}
},
"additionalProperties": false
}Rank active OKX spot, perpetual swap, or futures markets by 24h quote volume with optional symbol search.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Maximum markets to return (default 15, max 50). |
| search | string | Optional filter string (e.g. "BTC", "ETH", "USDT"). |
| inst_type | string | Instrument type (default "SPOT"). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "Maximum markets to return (default 15, max 50)."
},
"search": {
"type": "string",
"description": "Optional filter string (e.g. \"BTC\", \"ETH\", \"USDT\")."
},
"inst_type": {
"enum": [
"SPOT",
"SWAP",
"FUTURES"
],
"type": "string",
"description": "Instrument type (default \"SPOT\")."
}
},
"additionalProperties": false
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 6, 2026.