OKX MCP Server

get_candlesticks

Retrieve historical candlestick data for any OKX trading instrument to analyze market trends and price movements. Specify time intervals and number of candlesticks for precise insights.

Instructions

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 from OKX MCP Server

Related Tools

ID: glaohtlnse