Okx
live CryptoMarketsOKX v5 public API — tickers, orderbooks, OHLC candles, funding rates, mark prices, and index data for crypto spot/futures/options.
Tools
instruments List instruments.
No parameters required.
Try it
ticker Single ticker.
No parameters required.
Try it
tickers Tickers by type.
No parameters required.
Try it
order_book Orderbook.
No parameters required.
Try it
candles OHLC candles.
No parameters required.
Try it
trades Recent trades.
No parameters required.
Try it
market_24hr 24h ticker.
No parameters required.
Try it
index_tickers Index tickers.
No parameters required.
Try it
funding_rate Current funding rate.
No parameters required.
Try it
funding_rate_history Historical funding rate.
No parameters required.
Try it
mark_price Mark price.
No parameters required.
Try it
time System time.
No parameters required.
Try it
status System status.
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/okx/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' curl -X POST https://gateway.pipeworx.io/okx/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"instruments","arguments":{}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("instruments", {}); // Or ask in plain English:
const answer = await px.ask("okx v5 public api — tickers, orderbooks, ohlc candles, funding rates, mark prices, and index data for crypto spot/futures/options");