Skip to main content
Glama
hvip MCP Server

hvip MCP Server

by okx-wallet-H

hvip MCP Server

OKX 全部能力接入 AI —— 365 个 MCP 工具,覆盖 97.7% OKX REST API

npm version License

📦 github.com/okx-wallet-H/hvip-mcp · 🐛 提交反馈


🚀 一行安装

npx -y hvip-mcp-server

就这么简单。MCP 客户端(Claude Desktop / Claude Code / Cursor / VS Code)会自动接管。


Related MCP server: okx-trade-mcp

配置到 AI 客户端

这不是命令行工具——hvip-mcp 是 MCP (Model Context Protocol) 服务器,由 AI 客户端在后台自动运行。你只需要在配置文件中加一行 JSON,AI 自己会启动它。

Claude Desktop

Claude Desktop → 设置 → Developer → Edit Config:

{
  "mcpServers": {
    "hvip": {
      "command": "npx",
      "args": ["-y", "hvip-mcp-server"]
    }
  }
}

Claude Code

在项目根目录或全局 .claude/settings.json:

{
  "mcpServers": {
    "hvip": {
      "command": "npx",
      "args": ["-y", "hvip-mcp-server@latest"]
    }
  }
}

VS Code / Cline / 其他 MCP 客户端

在 MCP 配置中添加同样的 JSON。

配置完需要完全退出并重启客户端,重开后 AI 自动连接 hvip。

需要 API Key?

行情、技术指标、市场扫描等公开数据无需 Key。查看账户、下单交易需要 OKX API Key:

{
  "mcpServers": {
    "hvip": {
      "command": "npx",
      "args": ["-y", "hvip-mcp-server"],
      "env": {
        "OKX_API_KEY": "<你的 API Key>",
        "OKX_SECRET_KEY": "<你的 Secret Key>",
        "OKX_PASSPHRASE": "<你的 Passphrase>"
      }
    }
  }
}

API Key 在 OKX 官网 → 个人中心 → API 中创建,开通「读取」权限即可查账户,「交易」权限可下单。


工作流

AI 连接 hvip 后自动执行:

1. tools/list  →  365 个工具,但只有 agent_catalog 带完整描述
2. agent_catalog  →  15 个域的地图(7 公开 + 8 需 Key),按需直达
3. 用户说 "BTC 怎么样"  →  AI 调 okx_quick_market
4. 用户说 "买 0.1 BTC"  →  AI 先预检再下单

无需手动操作,全程 AI 自己来。


工具覆盖

模块

工具数

说明

🔹 账户

40+

余额/持仓/配置/杠杆/估值

🔹 行情

17

Ticker/K线/深度/成交

🔹 交易

27

下单/撤单/改单/批量/平仓

🔹 公共数据

34

产品规格/资金费率/标记价

🔹 资金

18

划转/提现/充值/兑换

🔹 策略委托

6

止损止盈/冰山/移动止盈

🔹 网格

13

现货网格/合约网格/定投

🔹 跟单

23

交易员/跟单/带单

🔹 信号

10

信号订阅/历史信号

🔹 价差

16

跨品种/跨期价差

🔹 RFQ

12

大宗询价/报价/成交

🔹 金融

27

赚币/质押/借贷

🔹 预测市场

36

事件合约/预测交易

🔹 技术指标

2

RSI/MACD/布林带等 17 种

🔹 聪明钱

3

交易员排行榜/市场情绪

🔹 WebSocket

5

55 频道实时推送

🔹 代码图谱

2

函数调用链/符号搜索

🔹 系统工具

19

导航/偏好/反馈/Agent 协作

365 个 MCP 工具 · 覆盖 97.7% OKX REST API


本地开发

git clone https://github.com/okx-wallet-H/hvip-mcp.git
cd hvip-mcp
npm install
npm run build
npm start

架构

原子层 (350 工具) → [L:READ] 权限标记 → AI Agent 按需调用
       ↓
Skill 组合层 (13 个) → 串联多工具,一次完成复杂任务
       ↓
agent_catalog → 15 域地图 → 按意图路由 → 直达目标工具

贡献

  1. 阅读 CLAUDE.md 了解项目规范

  2. 阅读 CONTRIBUTING.md 了解提交流程

  3. Fork → 创建分支 → 开发 → npm run build → 提 PR


文档

Available Tools

373 tools
agent_asset_centerC

[L:READ] CAT:[账户资产] | 资产指挥中心:资金分布、理财收益、子账户一览,三合一

Inputs: ccy, mode, subMode.

agent_catalogA

[L:READ] CAT:[系统] | ## 功能:全局工具导航——Agent 首次连接 hvip MCP 后第一个应调用的工具。返回按用户意图分组的工具地图

场景:Agent 首次连接、不确定该用什么工具、想了解 hvip 能做什么。看完目录后 Agent 按域直达目标工具,无需阅读全部 350+ 工具描述

关键词:导航, catalog, 目录, 地图, 入口, 首次连接, 工具发现, 索引, 路由

参数:无

鉴权:PUBLIC — 纯索引,不查任何 API

风险:READ — 只读

返回量:微小 ~5KB — 12 个域的结构化索引

关联:本工具看全局 → agent_catalog_detail { domain } 看域详情 → 直接调用目标工具

Inputs: no named parameters.

agent_catalog_detailA

[L:READ] CAT:[系统] | ## 功能:查看某个业务域的详细工具清单——含每个工具的参数提示、鉴权要求、推荐调用顺序

场景:Agent 在 agent_catalog 确定域后,调用此工具获取该域所有工具的精准信息、参数提示和典型 workflow

关键词:目录详情, catalog detail, 工具清单, 域详情, workflow

参数:

- domain: 域名称。可取值: 账户资产 | 行情看盘 | 下单交易 | 风险风控 | 市场扫描 | 盈亏复盘 | 资金管理 | 策略交易 | 预测市场 | WebSocket 实时 | 模拟估算 | 系统工具

鉴权:PUBLIC — 纯索引

风险:READ — 只读

返回量:微小 ~2KB — 单域详情

关联:agent_catalog 选域 → 本工具获取详情 → 直接调用目标工具

Inputs: domain (required).

agent_get_preferenceA

[L:READ] CAT:[系统] | 读取 Agent 持久化偏好,跨会话保留

Inputs: key.

agent_hub_dispatchC

[L:READ] CAT:[系统] | → 请先调用 agent_catalog

Inputs: taskId (required), agentId.

agent_hub_reviewC

[L:READ] CAT:[系统] | → 请先调用 agent_catalog

Inputs: taskId (required), verdict (required), feedback.

agent_hub_statusC

[L:READ] CAT:[系统] | → 请先调用 agent_catalog

Inputs: no named parameters.

agent_market_scanA

[L:READ] CAT:[系统] | ## 功能:一键扫描市场异动——涨幅榜、跌幅榜、成交量异动、资金费率异常品种

场景:Agent 回答"今天有什么机会"、发现暴涨暴跌、找费率套利目标

关键词:市场扫描, 异动, 涨幅榜, 跌幅榜, 资金费率, 交易机会

参数:

- instType: 产品类型,默认SWAP

- topN: 返回前N条,默认10

- sortBy: 排序字段。change=涨跌幅, vol=成交量, fundingRate=资金费率

鉴权:PUBLIC — 公开接口

风险:READ — 只读查询

返回量:微小 ~3KB — 仅返回topN

关联:本工具扫描 → okx_quick_market 深入分析 → agent_quick_trade 下单

Inputs: topN, sortBy, instType.

agent_market_sentimentA

[L:READ] CAT:[市场扫描] | 市场情绪综合分析:多空比+PCR+资金费率+大户情绪→方向评分,或扫描极端费率套利机会

Inputs: mode, topN, instType, sampleCcy, +1 more.

agent_option_scannerA

[L:READ] CAT:[市场扫描] | 期权全景扫描:概要+OI到期/行权价分布+PCR+大宗交易量

Inputs: uly (required).

agent_pnl_reportA

[L:READ] CAT:[系统] | ## 功能:一键生成盈亏报告——当前持仓浮动盈亏 + 近N日已实现盈亏汇总

场景:Agent 回答"今天我赚了多少"、复盘交易绩效、生成每日盈亏报表

关键词:盈亏, PnL, 盈亏报告, 浮动盈亏, 已实现盈亏, 交易复盘

参数:

- days: 统计天数,默认7(近7日已实现盈亏)

鉴权:⚠️ 需要 API Key(只读)

风险:READ — 只读查询

返回量:微小 ~2KB

关联:agent_risk_overview 风险 → agent_quick_trade 交易 → 本工具复盘 → 调整策略

Inputs: days.

agent_prediction_arbitrageA

[L:READ] CAT:[预测市场] | 扫描预测市场事件,发现 YES+NO 价差 < 1.0 的无风险套利机会

Inputs: no named parameters.

agent_quick_tradeA

[L:WRITE] CAT:[系统] | ## 功能:一步完成交易全流程——自动查余额、算最大可开、检查限价、下单,返回结构化交易确认

场景:Agent 收到用户"买入0.1 BTC"时直接调用,无需分别调余额/可开/限价/下单

关键词:一键交易, quick trade, 下单全流程, 自动检查, 一步到位

参数:

- instId: 产品ID,如 BTC-USDT-SWAP

- side: buy=买入, sell=卖出

- sz: 下单数量(币数或张数)

- tdMode: cash=现货, cross=全仓, isolated=逐仓

- px: 限价(选填,不填市价单)

- ordType: 订单类型,默认limit

鉴权:⚠️ 需要 API Key(交易权限)

风险:WRITE — 真实下单,Agent 需用户确认后调用

返回量:微小 ~1KB — 含预检结果+订单确认+风控提醒

关联:agent_risk_overview 看风险 → 本工具下单 → okx_get_order 确认 → agent_pnl_report 复盘

Inputs: sz (required), side (required), instId (required), tdMode (required), +2 more.

agent_risk_overviewA

[L:READ] CAT:[系统] | ## 功能:一键获取全仓风险仪表盘:持仓风险排序、总保证金率、强平预警、资金费率到期提醒

场景:Agent 回答"我现在风险多大"、巡检所有持仓健康度、强平前预警通知

关键词:风险, 强平, 保证金率, 风险排序, 健康度, risk, 风控

参数:无

鉴权:⚠️ 需要 API Key(只读)

风险:READ — 只读查询

返回量:微小 ~2KB — 结构化风险摘要

关联:本工具风险巡检 → 高风险仓位 agent_quick_trade 平仓 → agent_pnl_report 盈亏复盘

Inputs: no named parameters.

agent_room_sendD

[L:READ] CAT:[系统] | → 请先调用 agent_catalog

Inputs: text (required), roomId (required).

agent_room_viewC

[L:READ] CAT:[系统] | → 请先调用 agent_catalog

Inputs: limit, roomId.

agent_set_preferenceA

[L:READ] CAT:[系统] | ## 功能:设置 Agent 持久化偏好,跨会话保留

场景:用户说"以后默认交易对用BTC-USDT"时,Agent 保存偏好,下次会话自动恢复

关键词:偏好, preference, 设置, 记忆, 持久化, 用户画像

参数:

- key: 偏好键名

- value: 偏好值

鉴权:PUBLIC — 本地写入

风险:READ — 本地文件写入,无资金风险

返回量:微小 ~200B

关联:本工具设置偏好 → agent_get_preference 读取 → Agent 按偏好决策

常用键名参考:

- default_instId: 默认交易对,如 BTC-USDT-SWAP

- default_tdMode: 默认交易模式 (cross/isolated/cash)

- risk_level: 风险偏好 (low/medium/high)

- trade_mode: 交易模式 (spot_only/swap_permitted/margin_permitted)

- position_size_pct: 单笔仓位占比,如 0.1 (10%)

Inputs: key (required), value (required).

agent_simulate_orderA

[L:READ] CAT:[系统] | ## 功能:模拟下单——不产生真实订单,返回预估成交价、滑点、手续费、资金占用

场景:Agent 回答"如果我现在买入0.1 BTC会怎样"时使用,让用户在不冒风险的情况下了解交易成本

关键词:模拟交易, 沙盒, simulate, 预估, 滑点, 手续费, 资金预估

参数:

- instId: 产品ID

- side: buy=买入, sell=卖出

- sz: 下单数量

- tdMode: 交易模式

- px: 限价(选填,用于计算限价单预估)

鉴权:⚠️ 需要 API Key(只读,不产生订单)

风险:READ — 只查询+计算,不产生真实订单

返回量:微小 ~1KB

关联:本工具模拟 → 用户确认 → agent_quick_trade 真实下单

Inputs: sz (required), side (required), instId (required), tdMode (required), +1 more.

agent_stop_loss_masterB

[L:WRITE] CAT:[风险风控] | 全局风控:批量设止损条件单 / 一键全部撤单 / 查看风控状态

Inputs: mode (required), instId, stopLossPct.

agent_strategy_centerB

[L:READ] CAT:[策略交易] | 策略交易中心:活跃策略仪表盘 or 网格参数智能推荐

Inputs: mode, instId, instType, direction.

agent_technical_reportC

[L:READ] CAT:[技术指标] | 多周期(1H/4H/1D)技术指标综合计算,输出方向共识信号

Inputs: instId (required), bars.

codegraph_queryA

[L:READ] CAT:[代码智能] | ## 功能:查询代码知识图谱——追踪调用链(callers/callees)、搜索符号、按文件列符号、影响分析

场景:Agent 回答「toResult 被哪些工具调用」「改 shared.ts 影响哪些模块」「WebSocket 在哪些文件里」时调用

关键词:codegraph, 调用链, callers, callees, 搜索, 影响分析, 依赖

参数:

- mode: 查询模式。callers / callees / search / file / impact

- symbol: 符号名或文件名

- limit: 返回数,默认 15

鉴权:PUBLIC — 本地读 DB

风险:READ — 只读

返回量:微小 ~2KB

关联:codegraph_status → codegraph_query

Inputs: mode (required), limit, symbol.

codegraph_statusA

[L:READ] CAT:[代码智能] | ## 功能:检查代码知识图谱状态——节点数、边数、覆盖文件、被调最多的函数

场景:Agent 首次连接时确认图谱就绪

关键词:代码图谱, codegraph, 知识图谱, 索引状态, 调用排行

参数:无

鉴权:PUBLIC — 本地读 DB

风险:READ — 只读

返回量:微小 ~1KB

关联:确认状态 → codegraph_query 追踪调用链

Inputs: no named parameters.

okx_account_overviewA

[L:READ] CAT:[系统] | ## 功能:一键获取账户全景:余额、持仓、配置、总估值,替代串行调用 4 个工具

场景:用于Agent首次了解用户账户全貌、回答"我账户现在什么情况"、每日资产概览

关键词:账户全景, 账户概览, account overview, 资产快照, 持仓汇总, 一键查账

参数:无

鉴权:⚠️ 需要 API Key(只读)

风险:READ — 只读查询,Agent 可自动调用

返回量:微小 ~3KB — 结构化摘要,非原始JSON堆砌

关联:本工具全景 → okx_get_positions 深入单仓位 → okx_get_balance 看各币种 → okx_place_order 交易

Inputs: no named parameters.

okx_activate_optionC

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_adjust_collateralD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required), ccy (required), side (required).

okx_agent_feedbackA

[L:READ] CAT:[系统] | ## 功能:提交使用反馈——当你遇到多步操作烦琐、参数试错、不知道调用顺序、搜索不到工具、或需要使用手工计算弥补不足时,调用此工具记录下来

场景:用于Agent汇报MCP工具的使用痛点,反馈将直接进入开发团队的待办列表,推动Skill组合和工具优化

关键词:反馈, feedback, 留言, 建议, 痛点, 改善建议

参数:

- title: 一句话标题

- what: 你做了什么操作

- tools: 调用了哪些工具(用逗号分隔)

- pain: 痛点是什么

- suggestion: 你建议怎么改善(想要什么Skill)

鉴权:PUBLIC — 无需 API Key,谁都可以反馈

风险:READ — 只写日志,Agent 可随时调用

返回量:微小 ~200B

关联:任何工具组合遇到阻碍时调用 → 开发者审查反馈 → 创建 Skill 或优化工具

Inputs: pain (required), what (required), title (required), tools (required), +1 more.

okx_amend_algo_orderD

[L:WRITE] CAT:[交易-委托] | → 请先调用 agent_catalog

Inputs: orders (required).

okx_amend_batch_ordersD

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: orders (required).

okx_amend_copy_settingsC

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: subPosId (required), amount, amountType.

okx_amend_orderD

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: ordId (required), instId (required), newPx, newSz.

okx_amend_profit_sharing_ratioD

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: profitSharingRatio (required).

okx_amend_spread_orderC

[L:WRITE] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: ordId (required), sprdId (required), newPx, newSz.

okx_batch_cancel_ordersC

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: orders (required).

okx_batch_ordersD

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: orders (required).

okx_borrow_repayC

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: amt (required), ccy (required), side (required).

okx_cancel_algo_orderD

[L:WRITE] CAT:[交易-委托] | → 请先调用 agent_catalog

Inputs: algoId (required), instId (required).

okx_cancel_all_afterC

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: timeOut (required).

okx_cancel_all_rfqsC

[L:WRITE] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_cancel_batch_rfqsC

[L:WRITE] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: rfqIds (required).

okx_cancel_orderC

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: ordId (required), instId (required).

okx_cancel_quoteC

[L:WRITE] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: rfqId (required), quoteId (required).

okx_cancel_redeem_ethD

[L:WRITE] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required).

okx_cancel_rfqD

[L:WRITE] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: rfqId (required).

okx_cancel_spread_orderC

[L:WRITE] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: ordId (required), sprdId (required).

okx_close_grid_positionC

[L:WRITE] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoId (required), algoOrdType (required).

okx_close_positionC

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instId (required), ccy, mgnMode, posSide.

okx_convert_contract_coinD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: sz (required), unit (required), instId (required), opType (required).

okx_convert_tradeC

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: sz (required), toCcy (required), fromCcy (required).

okx_copy_traderC

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: amount (required), instType (required), uniqueCode (required), amountType.

okx_create_grid_orderC

[L:WRITE] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: maxPx (required), minPx (required), instId (required), gridNum (required), +2 more.

okx_create_quoteD

[L:WRITE] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: sz (required), rfqId (required), quotePx (required).

okx_create_recurring_planC

[L:WRITE] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: amount (required), instId (required), period (required), currency (required).

okx_create_rfqC

[L:WRITE] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: sz (required), side (required), instId (required), szType.

okx_create_signal_botC

[L:WRITE] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: channel (required), signalName (required).

okx_create_subaccountC

[L:WRITE] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: subAcct (required), label.

okx_create_subaccount_api_keyC

[L:WRITE] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: perm (required), label (required), subAcct (required), passphrase (required), +1 more.

okx_delete_subaccount_api_keyD

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: apiKey (required), subAcct (required).

okx_easy_convertC

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: sz (required), toCcy (required), fromCcy (required).

okx_event_amend_orderD

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: ordId (required), instId (required), newPx, newSz.

okx_event_cancel_orderC

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: ordId (required), instId (required).

okx_event_fillsD

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: limit, instId.

okx_event_instrumentsD

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: seriesId.

okx_event_place_orderD

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: sz (required), side (required), instId (required), outcome (required), +2 more.

okx_execute_quoteD

[L:READ] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: sz (required), rfqId (required), instId (required), quoteId (required).

okx_first_copy_settingsC

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: amount (required), instType (required), uniqueCode (required), amountType.

okx_get_account_billsD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy, limit, instType.

okx_get_account_bills_archiveC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_account_configC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_account_greeksC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: uly, instId, instType, instFamily.

okx_get_account_position_riskD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_account_rate_limitD

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_account_subtypesC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_affiliate_invitee_detailC

[L:READ] CAT:[推广] | → 请先调用 agent_catalog

Inputs: uid.

okx_get_affiliate_invitee_listC

[L:READ] CAT:[推广] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_affiliate_performanceC

[L:READ] CAT:[推广] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_algo_ordersC

[L:READ] CAT:[交易-委托] | → 请先调用 agent_catalog

Inputs: ordType (required), instType.

okx_get_algo_orders_historyD

[L:READ] CAT:[交易-委托] | → 请先调用 agent_catalog

Inputs: state (required), ordType (required), instType.

okx_get_announcementsC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: lang, annType.

okx_get_announcement_typesC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_asset_balancesC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_asset_bills_historyA

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: limit.

okx_get_asset_valuationD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_balanceC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_billsC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy, limit, instType.

okx_get_block_tickerC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_block_tickersD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instType (required).

okx_get_books_fullC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), depth.

okx_get_borrow_repay_historyC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_call_auction_detailsC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_candlesD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), bar, limit.

okx_get_co_inviter_listC

[L:READ] CAT:[推广] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_contract_position_trader_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_contracts_long_short_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy, end, begin.

okx_get_contracts_taker_volumeC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy, end, begin.

okx_get_contract_trader_ls_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: instId (required), end, begin.

okx_get_convert_currenciesC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_convert_currency_pairC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_convert_estimate_quoteD

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: sz (required), toCcy (required), fromCcy (required).

okx_get_copy_instrumentsC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: instType.

okx_get_copy_settingsC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_copy_tradersC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_currenciesC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_delivery_exercise_historyD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required), uly, instFamily.

okx_get_deposit_addressC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_deposit_historyC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy, limit.

okx_get_deposit_lightningC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_deposit_withdraw_statusD

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_discount_infoC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_easy_convert_currency_listC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_easy_convert_historyC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: after, limit, before.

okx_get_economic_calendarC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: end, begin, limit.

okx_get_entrust_subaccount_listC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_estimated_priceC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_eth_staking_balanceC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_eth_staking_historyD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: limit.

okx_get_event_eventsD

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: seriesId (required).

okx_get_event_marketsC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: seriesId (required).

okx_get_event_seriesC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_exchange_listC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_exchange_rateC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_fee_ratesC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: uly, instId, instType.

okx_get_fiat_buy_sell_pairC

[L:READ] CAT:[资金-法币] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_fiat_depositC

[L:READ] CAT:[资金-法币] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_fiat_deposit_methodsC

[L:READ] CAT:[资金-法币] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_fiat_deposit_ordersC

[L:READ] CAT:[资金-法币] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_fillsC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: limit, instId, instType.

okx_get_fills_historyD

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: limit, instId, instType.

okx_get_flexible_loan_collateralC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_flexible_loan_historyC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_flexible_loan_infoC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_funding_balanceC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_funding_rateC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_funding_rate_historyD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required), after, limit, before.

okx_get_grid_ai_paramC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: instId (required), algoOrdType (required), direction.

okx_get_grid_orders_historyC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoOrdType (required), instId, instType.

okx_get_grid_orders_pendingC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoOrdType (required), instId, instType.

okx_get_grid_positionsC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoId (required).

okx_get_grid_sub_ordersC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: type (required), algoId (required), algoOrdType (required).

okx_get_history_candlesC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), bar, after, limit, +1 more.

okx_get_history_index_candlesC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), bar, after, limit, +1 more.

okx_get_history_mark_price_candlesC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), bar, after, limit, +1 more.

okx_get_history_tradesD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), limit.

okx_get_index_candlesC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), bar, after, limit, +1 more.

okx_get_index_componentsC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: index (required).

okx_get_index_components_marketC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: index (required).

okx_get_index_priceC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_index_tickersC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId, quoteCcy.

okx_get_instrumentsD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required), instId.

okx_get_instrument_tick_bandsC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required).

okx_get_insurance_fundD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required), uly.

okx_get_interest_accruedC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy, limit, instId.

okx_get_interest_limitsD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_interest_rate_loan_quotaC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_interest_ratesC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_lead_trader_historyC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: uniqueCode (required), limit, instType.

okx_get_lead_trader_positionsC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: uniqueCode (required), instType.

okx_get_lead_trader_statsC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: instType (required), lastDays (required), uniqueCode (required).

okx_get_lending_rate_historyC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_lending_rate_summaryC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_leverage_infoC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: instId (required), mgnMode (required).

okx_get_long_short_account_ratioD

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin.

okx_get_long_short_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin.

okx_get_long_short_ratio_allC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy, end, begin.

okx_get_margin_balanceC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: instId (required), mgnMode (required).

okx_get_margin_lending_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_margin_lending_ratio_historyD

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_mark_priceC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required), instId.

okx_get_mark_price_candlesD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), bar, after, limit, +1 more.

okx_get_max_loanD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: instId (required), mgnMode (required).

okx_get_max_sizeD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: instId (required), tdMode (required), ccy.

okx_get_max_withdrawalC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_mmp_configC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_monthly_statementC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_my_lead_historyC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: limit, instType.

okx_get_my_lead_positionsC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: instType.

okx_get_non_tradable_assetsC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_one_click_repay_historyC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_one_click_repay_listC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_open_interestC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required), instId.

okx_get_open_interest_historyD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required), limit, period.

okx_get_open_interest_history_rubikC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: instId (required), limit, period.

okx_get_open_interest_volumeD

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin.

okx_get_option_instrument_family_tradesC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instFamily (required), limit.

okx_get_option_oi_expiryC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_option_oi_ratioD

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin.

okx_get_option_oi_strikeC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), expTime (required).

okx_get_option_open_interestC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_option_taker_block_volumeC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_get_option_tradesC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: limit, instId, instFamily.

okx_get_opt_summaryC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: uly (required), expTime.

okx_get_orderC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: ordId (required), instId (required).

okx_get_order_algoC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: algoId.

okx_get_orderbookC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), depth.

okx_get_order_by_clOrdIdD

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instId (required), clOrdId (required).

okx_get_orders_algo_pendingC

[L:READ] CAT:[交易-委托] | → 请先调用 agent_catalog

Inputs: limit, algoId, instId, ordType, +1 more.

okx_get_orders_archiveC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instType (required), limit.

okx_get_orders_historyC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: instType (required), limit.

okx_get_orders_history_archiveD

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instType (required), limit.

okx_get_orders_pendingC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instId, ordType, instType.

okx_get_platform_24_volumeC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_position_builder_graphC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_positionsC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: instType.

okx_get_positions_historyC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: limit, instId, instType.

okx_get_position_tiersC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: tdMode (required), instType (required), uly, instFamily.

okx_get_premium_historyC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required), period.

okx_get_price_limitC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_profit_sharing_detailsC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: limit, instType.

okx_get_profit_sharing_totalC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: instType.

okx_get_public_block_tradesC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_public_copy_configC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_public_lead_trader_pnlC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: lastDays (required), uniqueCode (required).

okx_get_public_lead_tradersC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_public_preference_currencyC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: uniqueCode (required).

okx_get_put_call_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin.

okx_get_quotesC

[L:READ] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: rfqId (required).

okx_get_recurring_orders_historyC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_recurring_orders_pendingC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_recurring_sub_ordersC

[L:READ] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoId (required), limit.

okx_get_rfq_counterpartiesC

[L:READ] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_rfqsC

[L:READ] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: state.

okx_get_rfq_tradesC

[L:READ] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_risk_stateC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_savings_balanceD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_savings_historyC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_savings_lending_rateC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy.

okx_get_settlement_historyC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType (required), uly, instFamily.

okx_get_sfp_order_historyC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_sfp_productsC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_signal_bots_historyC

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: limit, algoId, instType.

okx_get_signal_bots_pendingC

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId, instType.

okx_get_signal_event_historyC

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId (required), limit.

okx_get_signal_ordersD

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId (required).

okx_get_signal_positionsC

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId (required).

okx_get_signal_positions_historyC

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId (required), limit.

okx_get_signal_sub_ordersC

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId (required), limit.

okx_get_signal_subscriptionsB

[L:READ] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_sol_staking_balanceC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_sol_staking_historyD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: limit.

okx_get_sprd_history_candlesC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: sprdId (required), bar, after, limit, +1 more.

okx_get_spread_booksD

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId (required).

okx_get_spread_candlesC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId (required), bar, limit.

okx_get_spread_fillsC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: limit, sprdId.

okx_get_spread_orderbookC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId (required), depth.

okx_get_spread_ordersC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId.

okx_get_spread_orders_historyC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: limit, sprdId.

okx_get_spread_orders_history_archiveC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId.

okx_get_spread_orders_pendingC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId.

okx_get_spreadsC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: state, instId, sprdId, baseCcy.

okx_get_spread_tickerC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId (required).

okx_get_spread_tradesC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId (required), limit.

okx_get_spread_trades_fillsC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId.

okx_get_spread_trades_publicC

[L:READ] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sprdId (required).

okx_get_stable_rewards_apyC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_stable_rewards_historyC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_stable_rewards_productD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_staking_active_ordersD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_staking_offersC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: productId.

okx_get_staking_ordersC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: limit, state, productId.

okx_get_stats_support_coinC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_subaccount_api_keyC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: subAcct (required).

okx_get_subaccount_assetsC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: subAcct (required).

okx_get_subaccount_balanceC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: subAcct (required).

okx_get_subaccount_billsC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: subAcct (required), after, limit, before.

okx_get_subaccount_listC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: enable.

okx_get_subaccount_trading_balanceC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: subAcct (required).

okx_get_sub_affiliate_listC

[L:READ] CAT:[推广] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_system_statusC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_system_timeC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_taker_flowD

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin, instType.

okx_get_taker_flow_contractC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), end, begin, instType.

okx_get_taker_volumeC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), instType (required), end, begin.

okx_get_taker_volume_contractD

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy (required), instId (required).

okx_get_tickerD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_get_tickersD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instType (required).

okx_get_top_trader_long_short_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: instId (required), end, begin.

okx_get_top_traders_contract_ls_ratioC

[L:READ] CAT:[统计] | → 请先调用 agent_catalog

Inputs: ccy, end, begin.

okx_get_total_unrealized_profit_sharingD

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_trade_feeD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: uly, instId, instType.

okx_get_tradesC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), limit.

okx_get_transfer_stateC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: transferId (required).

okx_get_underlyingC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: instType.

okx_get_unrealized_profit_sharingC

[L:READ] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_get_withdrawal_historyC

[L:READ] CAT:[资金] | → 请先调用 agent_catalog

Inputs: ccy, limit.

okx_indicatorD

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), indicator (required), bar, period.

okx_indicator_batchC

[L:READ] CAT:[行情] | → 请先调用 agent_catalog

Inputs: instId (required), indicators (required), bar.

okx_list_subaccountsB

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: enable.

okx_mass_cancelD

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instType (required), instFamily.

okx_move_positionsD

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: body (required).

okx_one_click_repayD

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: ccy (required), repayCcy (required).

okx_order_precheckD

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: params (required).

okx_place_algo_orderD

[L:WRITE] CAT:[交易-委托] | → 请先调用 agent_catalog

Inputs: params (required).

okx_place_orderC

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: sz (required), side (required), instId (required), tdMode (required), +2 more.

okx_place_spread_orderC

[L:WRITE] CAT:[策略-价差] | → 请先调用 agent_catalog

Inputs: sz (required), side (required), sprdId (required), ordType (required), +1 more.

okx_position_builderD

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: body (required).

okx_precheck_delta_neutralC

[L:READ] CAT:[账户] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_predictions_balanceC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_predictions_cancel_allD

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: assetIds.

okx_predictions_cancel_orderC

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: orderId.

okx_predictions_candlesC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: instId (required), bar, limit.

okx_predictions_get_eventC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: eventId (required).

okx_predictions_get_event_marketsC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: eventId (required).

okx_predictions_get_marketC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: marketId (required).

okx_predictions_get_orderC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: orderId (required).

okx_predictions_heartbeatC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_predictions_list_eventsC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: sort, limit, status, category.

okx_predictions_mergeC

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: amount (required).

okx_predictions_orderbookC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: instId (required), sz.

okx_predictions_order_listC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: limit, status, marketId.

okx_predictions_place_orderC

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: side (required), size (required), outcome (required), marketId (required), +1 more.

okx_predictions_positionsD

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: status, marketId.

okx_predictions_redeemC

[L:FUND_TRANSFER] CAT:[预测] | → 请先调用 agent_catalog

Inputs: assetId.

okx_predictions_search_eventsC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: keyword (required).

okx_predictions_splitC

[L:WRITE] CAT:[预测] | → 请先调用 agent_catalog

Inputs: amount (required).

okx_predictions_tickerC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: instId (required).

okx_predictions_tradesC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: limit, marketId.

okx_preflight_checkA

[L:READ] CAT:[系统] | ## 功能:下单前一次性检查:最大可开数量、限价范围、合约张数换算、当前价格,避免下单后报错

场景:用于Agent下单前必调、验证用户输入的数量和价格是否合法、避免因参数错误被拒

关键词:下单预检, preflight, 下单前检查, 数量换算, 限价检查, 可开检查

参数:

- instId: 产品ID,如 BTC-USDT-SWAP。必填

- tdMode: 交易模式。cash=现货, cross=全仓, isolated=逐仓。必填

- sz: 用户想下单的数量。必填(币数,会自动换算为张数)

- px: 用户想下单的价格(选填,填了会检查是否在限价范围内)

- side: 买卖方向。buy=买入, sell=卖出。填了会查对应方向的最大可开

- ordType: 订单类型。填了会检查是否在限价范围内(限价单才需要)

鉴权:⚠️ 需要 API Key(只读)- 只查询不产生订单

风险:READ — 只读查询,Agent 可自动调用

返回量:微小 ~1KB

关联:本工具预检通过 → okx_place_order 下单 → okx_get_order 确认成交

Inputs: sz (required), instId (required), tdMode (required), px, +2 more.

okx_preset_account_switchC

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: acctLv (required).

okx_purchase_savingsD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required), ccy (required), side (required), rate.

okx_purchase_sol_stakingD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required).

okx_quick_marketA

[L:READ] CAT:[系统] | ## 功能:单次调用返回指定产品的行情+5档深度+资金费率+产品规格的结构化摘要

场景:用于Agent回答"现在BTC什么情况"时一次拿到全部信息、快速判断交易时机

关键词:市场速览, quick market, 行情+深度, 一键看盘, 综合行情, 市场概况

参数:

- instId: 产品ID,如 BTC-USDT、ETH-USDT-SWAP

鉴权:PUBLIC — 公开接口,不需要 API Key

风险:READ — 只读查询,Agent 可自动调用

返回量:微小 ~2KB — 精简5档深度,非全量订单簿

关联:本工具速览 → okx_get_candles 深入K线分析 → okx_get_orderbook 看全深度 → okx_place_order 下单

Inputs: instId (required).

okx_redeem_sfpD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required), productId (required).

okx_redeem_sol_stakingD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required).

okx_reset_mmpC

[L:READ] CAT:[交易] | → 请先调用 agent_catalog

Inputs: instFamily (required).

okx_reset_rfq_mmpC

[L:READ] CAT:[策略-RFQ] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_reset_subaccount_api_keyC

[L:READ] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: apiKey (required), subAcct (required), ip, perm, +1 more.

okx_search_instrumentsC

[L:READ] CAT:[公共] | → 请先调用 agent_catalog

Inputs: keyword (required), instType.

okx_set_account_modeC

[L:ADMIN] CAT:[账户] | → 请先调用 agent_catalog

Inputs: acctLv (required).

okx_set_auto_earnD

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy (required), autoEarn (required).

okx_set_auto_loanD

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy (required), side (required).

okx_set_copy_settingsB

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: amount, instType, amountType, uniqueCode.

okx_set_fee_typeC

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: feeType (required).

okx_set_lending_rateD

[L:WRITE] CAT:[金融] | → 请先调用 agent_catalog

Inputs: ccy (required), rate (required).

okx_set_leverageD

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: lever (required), instId (required), mgnMode (required), posSide.

okx_set_mmp_configD

[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog

Inputs: limit (required), instFamily (required), timeInterval (required), frozenInterval (required).

okx_set_position_modeD

[L:ADMIN] CAT:[账户] | → 请先调用 agent_catalog

Inputs: posMode (required).

okx_set_settle_currencyC

[L:ADMIN] CAT:[账户] | → 请先调用 agent_catalog

Inputs: ccy (required).

okx_set_trading_configD

[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog

Inputs: jsonString (required).

okx_smart_leaderboardD

[L:READ] CAT:[Smart Money] | → 请先调用 agent_catalog

Inputs: topN, sortBy, instType.

okx_smart_sentimentD

[L:READ] CAT:[Smart Money] | → 请先调用 agent_catalog

Inputs: instFamily.

okx_smart_trader_detailC

[L:READ] CAT:[Smart Money] | → 请先调用 agent_catalog

Inputs: uniqueCode (required), instType.

okx_stake_ethD

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required), rate.

okx_stop_copy_traderD

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: subPosId.

okx_stop_copy_tradingC

[L:WRITE] CAT:[策略-跟单] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_stop_grid_orderC

[L:WRITE] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoId (required), instId (required), algoOrdType (required).

okx_stop_recurring_planC

[L:WRITE] CAT:[策略-网格] | → 请先调用 agent_catalog

Inputs: algoId (required).

okx_stop_signal_botC

[L:WRITE] CAT:[策略-信号] | → 请先调用 agent_catalog

Inputs: algoId (required).

okx_subaccount_set_transfer_outD

[L:WRITE] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: subAcct (required), canTransferOut (required).

okx_transferC

[L:WRITE] CAT:[资金] | → 请先调用 agent_catalog

Inputs: to (required), amt (required), ccy (required), from (required).

okx_transfer_subaccountD

[L:WRITE] CAT:[账户-子账户] | → 请先调用 agent_catalog

Inputs: to (required), amt (required), ccy (required), from (required), +2 more.

okx_unstake_ethC

[L:READ] CAT:[金融] | → 请先调用 agent_catalog

Inputs: amt (required).

okx_withdrawalD

[L:FUND_TRANSFER] CAT:[资金] | → 请先调用 agent_catalog

Inputs: amt (required), ccy (required), dest (required), fee, +2 more.

okx_withdrawal_lightningC

[L:FUND_TRANSFER] CAT:[资金] | → 请先调用 agent_catalog

Inputs: to (required), amt (required), ccy (required).

okx_ws_closeC

[L:READ] CAT:[行情-WS] | → 请先调用 agent_catalog

Inputs: subscriptionId.

okx_ws_eventsD

[L:READ] CAT:[行情-WS] | → 请先调用 agent_catalog

Inputs: limit, filter, subscriptionId.

okx_ws_statusB

[L:READ] CAT:[行情-WS] | → 请先调用 agent_catalog

Inputs: no named parameters.

okx_ws_subscribeC

[L:READ] CAT:[行情-WS] | → 请先调用 agent_catalog

Inputs: instId (required), channel (required), instType.

okx_ws_subscribe_privateC

[L:READ] CAT:[行情-WS] | → 请先调用 agent_catalog

Inputs: channel (required), instId.

outcomes_check_arbitrageC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: marketId (required).

outcomes_get_candlesD

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: outcome (required), marketId (required), bar, limit.

outcomes_get_eventC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: eventId (required).

outcomes_get_marketC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: marketId (required).

outcomes_get_orderbookC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: outcome (required), marketId (required), size.

outcomes_get_tickerC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: outcome (required), marketId (required).

outcomes_list_eventsC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: search, pageSize, includeMarkets.

outcomes_list_marketsC

[L:READ] CAT:[预测] | → 请先调用 agent_catalog

Inputs: pageSize.

xlayer_callC

[L:WRITE] CAT:[链上] | → 请先调用 agent_catalog

Inputs: method (required), params.

xlayer_get_eventsC

[L:READ] CAT:[链上] | → 请先调用 agent_catalog

Inputs: subscriptionId (required).

xlayer_list_subscriptionsC

[L:READ] CAT:[链上] | → 请先调用 agent_catalog

Inputs: no named parameters.

xlayer_subscribeC

[L:READ] CAT:[链上] | → 请先调用 agent_catalog

Inputs: type (required), topics, address.

xlayer_unsubscribeC

[L:READ] CAT:[链上] | → 请先调用 agent_catalog

Inputs: subscriptionId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    D1.9/5.0

    Scored across 373 tools

    Disambiguation1/5

    There are many tools with nearly identical names and descriptions (e.g., okx_get_ticker vs okx_get_tickers, multiple candles variants) that lack sufficient disambiguation for an agent. The consistent instruction to call agent_catalog first acknowledges this ambiguity.

    Naming Consistency2/5

    While okx_ tools mostly follow a verb_noun pattern, the mix of prefixes (okx_, agent_, outcomes_, xlayer_, codegraph_) and occasional anomalous names (e.g., okx_preset_account_switch) create inconsistency. Naming within the predictions domain is particularly messy with overlapping okx_predictions_ and outcomes_ prefixes.

    Tool Count1/5

    373 tools is far beyond reasonable for an MCP server. Even for a comprehensive exchange API, this count overwhelms agents and suggests a low-level API mapping rather than a curated, agent-friendly interface. The extreme size makes navigation impractical without the agent_catalog crutch.

    Completeness4/5

    The tool set covers an extensive range of exchange operations: market data, trading, account management, funding, staking, predictions, spreads, copy trading, subaccounts, and more. It also includes agent orchestration and code intelligence tools, making it broadly comprehensive for the OKX ecosystem.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI assistants to OKX cryptocurrency exchange for trading, market data, account management, and more via the Model Context Protocol.
      30
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server connecting AI assistants to OKX exchange, enabling trading, market data, account management, and more via 150+ tools across 11 modules.
      501
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with OKX cryptocurrency exchange, providing tools for market data, trading, account management, and more through the Model Context Protocol.
      116
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with Interactive Brokers through 48 tools for market data, orders, account management, and more, via the MCP protocol.
      MIT