Skip to main content
Glama

OKX MCP Server

by esshka

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" }
Install Server

Other Tools from OKX MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/esshka/okx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server