OKX MCP Server

get_candlesticks

Get candlestick data for an OKX instrument

Input Schema

NameRequiredDescriptionDefault
barNoTime interval (e.g. 1m, 5m, 1H, 1D)1m
instrumentYesInstrument ID (e.g. BTC-USDT)
limitNoNumber of candlesticks (max 100)

Input Schema (JSON Schema)

{ "properties": { "bar": { "default": "1m", "description": "Time interval (e.g. 1m, 5m, 1H, 1D)", "type": "string" }, "instrument": { "description": "Instrument ID (e.g. BTC-USDT)", "type": "string" }, "limit": { "default": 100, "description": "Number of candlesticks (max 100)", "type": "number" } }, "required": [ "instrument" ], "type": "object" }

You must be authenticated.

Other Tools