Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
【持仓与执行】我的跨所账户总览:各交易所余额、持仓与币种归并(无凭证返回空)。(cost: free)
This tool takes no arguments.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http onv-mcp https://onv.codes/mcp
【持仓与执行】我的跨所账户总览:各交易所余额、持仓与币种归并(无凭证返回空)。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【策略】AI 生成策略代码(写操作,需用户确认):输入自然语言 prompt(可选 context 传入研究流水线结构化学徒上下文),返回策略代码与解释。(cost: ≈ 36–48 credits/次(按实际 tokens 结算))(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| prompt* | string | 策略描述提示词,如「BTC 均线金叉策略」(必填) |
| context | object | 可选结构化学徒上下文(B2-a):failedReasons/retiredFactors/reviewNotes/targetMetrics,独立注入 LLM,不进 prompt 文本 |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"description": "策略描述提示词,如「BTC 均线金叉策略」(必填)"
},
"context": {
"type": "object",
"description": "可选结构化学徒上下文(B2-a):failedReasons/retiredFactors/reviewNotes/targetMetrics,独立注入 LLM,不进 prompt 文本",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
}【策略】AI 多轮优化策略(写操作,需用户确认):输入 prompt 描述策略目标,自动生成→回测→分析→改进(最多 maxRounds 轮,1-5,默认 3)。耗时较长。给了 initialCode 时第 1 轮不生成:直接回测这份既有代码作基线,第 2 轮起在其上改进(A3)。strategyParams 为指标参数覆盖(对齐 /api/cex/indicator/backtest 的 params)。context 为可选结构化学徒上下文(B2-a,失败因子/评审结论/目标指标),独立注入 LLM。每轮回传 rounds[].params(本轮实际生效参数)与 rounds[].errorCode(失败原因可判定);全轮未产出代码时返回 502/429 + errorCode,不再返回空 finalCode。(cost: ≈ 34–38 credits/轮(按实际 tokens 结算))(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| prompt* | string | 策略目标描述(必填) |
| context | object | 可选结构化学徒上下文(B2-a):failedReasons/retiredFactors/reviewNotes/targetMetrics,独立注入 LLM,不进 prompt 文本 |
| category | string | 分类(可选,默认 dex) |
| maxRounds | number | 优化轮数 1-5(可选,默认 3) |
| initialCode | string | 待改进的既有策略代码(可选;提供时第 1 轮直接回测它作基线) |
| backtestParams | object | 回测参数(可选) |
| strategyParams | object | 指标参数覆盖,写入引擎 indicator_params(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"description": "策略目标描述(必填)"
},
"context": {
"type": "object",
"description": "可选结构化学徒上下文(B2-a):failedReasons/retiredFactors/reviewNotes/targetMetrics,独立注入 LLM,不进 prompt 文本",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"category": {
"type": "string",
"description": "分类(可选,默认 dex)"
},
"maxRounds": {
"type": "number",
"description": "优化轮数 1-5(可选,默认 3)"
},
"initialCode": {
"type": "string",
"description": "待改进的既有策略代码(可选;提供时第 1 轮直接回测它作基线)"
},
"backtestParams": {
"type": "object",
"description": "回测参数(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"strategyParams": {
"type": "object",
"description": "指标参数覆盖,写入引擎 indicator_params(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
}【策略】查询回测历史(可指定策略 ID 过滤)。参数 strategyId 可选。(cost: free)
| Argument | Type | Description |
|---|---|---|
| strategyId | string | 策略 ID(可选,缺省返回全部) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"strategyId": {
"type": "string",
"description": "策略 ID(可选,缺省返回全部)"
}
}
}【策略】查询回测任务结果。参数 jobId 为 run_backtest 返回的任务 ID。(cost: free)
| Argument | Type | Description |
|---|---|---|
| jobId* | string | 回测任务 ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"jobId"
],
"properties": {
"jobId": {
"type": "string",
"description": "回测任务 ID(必填)"
}
}
}【持仓与执行】撤销未成交挂单(写操作,需确认):exchangeOrderId 与 clientOrderId 二选一。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| symbol* | string | 交易对(必填) |
| marketType | string | 市场类型 swap/spot(可选) |
| credentialId* | number | 交易所凭证 ID(必填) |
| clientOrderId | string | 客户端订单 ID(与 exchangeOrderId 二选一) |
| exchangeOrderId | string | 交易所订单 ID(与 clientOrderId 二选一) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credentialId",
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "交易对(必填)"
},
"marketType": {
"type": "string",
"description": "市场类型 swap/spot(可选)"
},
"credentialId": {
"type": "number",
"description": "交易所凭证 ID(必填)"
},
"clientOrderId": {
"type": "string",
"description": "客户端订单 ID(与 exchangeOrderId 二选一)"
},
"exchangeOrderId": {
"type": "string",
"description": "交易所订单 ID(与 clientOrderId 二选一)"
}
}
}【持仓与执行】平仓(写操作,需确认):按 credentialId + symbol 平掉持仓;closeScope=full 全平,传 size 时部分平。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| size | number | 平仓数量(可选,缺省全平) |
| symbol* | string | 交易对(必填) |
| closeScope | string | full=全平(可选,默认 full) |
| marketType | string | 市场类型 swap/spot(可选) |
| credentialId* | number | 交易所凭证 ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credentialId",
"symbol"
],
"properties": {
"size": {
"type": "number",
"description": "平仓数量(可选,缺省全平)"
},
"symbol": {
"type": "string",
"description": "交易对(必填)"
},
"closeScope": {
"type": "string",
"description": "full=全平(可选,默认 full)"
},
"marketType": {
"type": "string",
"description": "市场类型 swap/spot(可选)"
},
"credentialId": {
"type": "number",
"description": "交易所凭证 ID(必填)"
}
}
}【持仓与执行】一键全平预演(dry-run,不会下单):列出将被平仓的合约持仓 / 现货余额目标与合计盈亏。可按凭证或交易对过滤。(cost: free)
| Argument | Type | Description |
|---|---|---|
| symbol | string | 交易对(可选,如 BTC/USDT) |
| credentialId | number | 凭证 ID(可选,来自 platform_credentials) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"symbol": {
"type": "string",
"description": "交易对(可选,如 BTC/USDT)"
},
"credentialId": {
"type": "number",
"description": "凭证 ID(可选,来自 platform_credentials)"
}
}
}【账户与额度】查询我绑定的交易所凭证(脱敏,不含密钥)。返回凭证 ID/交易所/名称,供下单、平仓、查询使用。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【行情】链上 DEX 报价(只读):chain 如 ETH/BSC/BASE/SOL,fromToken/toToken 为代币地址或符号,amount 为最小单位字符串。(cost: free)
| Argument | Type | Description |
|---|---|---|
| chain* | string | 链短名,如 ETH / BSC / BASE / SOL |
| amount* | string | 卖出数量(最小单位字符串) |
| toToken* | string | 买入代币(地址或符号) |
| slippage | number | 滑点百分比(可选,默认 1) |
| fromToken | string | 卖出代币(地址或符号;原生币可留空) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"chain",
"toToken",
"amount"
],
"properties": {
"chain": {
"type": "string",
"description": "链短名,如 ETH / BSC / BASE / SOL"
},
"amount": {
"type": "string",
"description": "卖出数量(最小单位字符串)"
},
"toToken": {
"type": "string",
"description": "买入代币(地址或符号)"
},
"slippage": {
"type": "number",
"description": "滑点百分比(可选,默认 1)"
},
"fromToken": {
"type": "string",
"description": "卖出代币(地址或符号;原生币可留空)"
}
}
}【持仓与执行】链上 DEX 兑换(写操作,需确认,动用真实资金):钱包地址自动取本人智能账户,不接受任意地址;大额授权需 approvalToken(由平台签发)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| chain* | string | 链短名,如 ETH / BSC / BASE / SOL(必填) |
| amount* | string | 卖出数量(最小单位字符串,必填) |
| toToken* | string | 买入代币(地址或符号,必填) |
| slippage | number | 滑点百分比(可选,默认 1) |
| amountUsd | number | 本次金额 USD 估值(可选,用于大额授权校验) |
| fromToken | string | 卖出代币(地址或符号;原生币可留空) |
| reference | string | 幂等参考号(可选) |
| approvalToken | string | 大额授权确认 token(可选,平台签发) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"chain",
"toToken",
"amount"
],
"properties": {
"chain": {
"type": "string",
"description": "链短名,如 ETH / BSC / BASE / SOL(必填)"
},
"amount": {
"type": "string",
"description": "卖出数量(最小单位字符串,必填)"
},
"toToken": {
"type": "string",
"description": "买入代币(地址或符号,必填)"
},
"slippage": {
"type": "number",
"description": "滑点百分比(可选,默认 1)"
},
"amountUsd": {
"type": "number",
"description": "本次金额 USD 估值(可选,用于大额授权校验)"
},
"fromToken": {
"type": "string",
"description": "卖出代币(地址或符号;原生币可留空)"
},
"reference": {
"type": "string",
"description": "幂等参考号(可选)"
},
"approvalToken": {
"type": "string",
"description": "大额授权确认 token(可选,平台签发)"
}
}
}【行情】解释一次回测「为什么亏 / 为什么没成交」。返回结构化卡片(数据区间、样本内外、最大回撤、数据缺失)与逐条原因。参数 runId / jobId / strategyId 至少给一个,三选一即可。(cost: free)
| Argument | Type | Description |
|---|---|---|
| jobId | string | 回测任务 ID(run_backtest 返回,可选) |
| runId | number | 回测记录 ID(qd_backtest_runs.id,可选) |
| strategyId | number | 策略 ID(取最近一次回测,可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"jobId": {
"type": "string",
"description": "回测任务 ID(run_backtest 返回,可选)"
},
"runId": {
"type": "number",
"description": "回测记录 ID(qd_backtest_runs.id,可选)"
},
"strategyId": {
"type": "number",
"description": "策略 ID(取最近一次回测,可选)"
}
}
}【策略】发起策略工厂运行(写操作,需确认):sourceType=llm(描述生成)/search(条件扫描)/optimize(优化现有策略,需 strategyId)。同一用户同时只允许一个运行。(cost: base 5 + 10/1k bars(>10000 部分 5/1k) + 1/1k tokens credits)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| days | number | 回测天数(可选) |
| intent | string | 自然语言意图(llm 模式用) |
| symbol | string | 交易对(可选,默认 BTC/USDT) |
| factorIds | array | 条件 ID 列表(search 模式用) |
| timeframe | string | 周期(可选) |
| sourceType | string | 运行类型(可选,默认 llm) |
| strategyId | string | 被优化的策略 ID(optimize 必填,支持 s:/t: 前缀) |
| thresholds | object | 指标阈值(可选) |
| nCandidates | number | 生成候选数(llm 模式,可选) |
| searchBudget | number | 搜索预算(可选) |
【策略】查询我的策略工厂运行记录;传 runId 时返回该次运行详情。(cost: free)
| Argument | Type | Description |
|---|---|---|
| limit | number | 返回条数(可选,默认 20) |
| runId | number | 运行 ID(可选,传则取详情) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "number",
"description": "返回条数(可选,默认 20)"
},
"runId": {
"type": "number",
"description": "运行 ID(可选,传则取详情)"
}
}
}【持仓与执行】一键全平(写操作,需确认):默认 dryRun=true 只预演;确认执行须显式 dryRun=false。可按凭证/交易对/市场类型限定,marketType=spot 时清现货余额。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean | 仅预演(默认 true) |
| symbol | string | 交易对(可选) |
| marketType | string | swap/spot(可选) |
| credentialId | number | 凭证 ID(可选,缺省全部) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"dryRun": {
"type": "boolean",
"description": "仅预演(默认 true)"
},
"symbol": {
"type": "string",
"description": "交易对(可选)"
},
"marketType": {
"type": "string",
"description": "swap/spot(可选)"
},
"credentialId": {
"type": "number",
"description": "凭证 ID(可选,缺省全部)"
}
}
}【策略】获取单个已发布的公开 Agent(策略)详情。参数 agentId 为策略 ID。(cost: free)
| Argument | Type | Description |
|---|---|---|
| agentId* | string | 策略 / Agent ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"agentId"
],
"properties": {
"agentId": {
"type": "string",
"description": "策略 / Agent ID(必填)"
}
}
}【策略】列出平台上已发布的公开 Agent(策略),可按能力过滤与分页。参数 capabilities 可选(如 dex/defi)。(cost: free)
| Argument | Type | Description |
|---|---|---|
| page | number | 页码(可选) |
| pageSize | number | 每页数量(可选) |
| activeOnly | boolean | 仅返回活跃 Agent(可选) |
| capabilities | string | 按能力过滤(可选,如 dex) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"page": {
"type": "number",
"description": "页码(可选)"
},
"pageSize": {
"type": "number",
"description": "每页数量(可选)"
},
"activeOnly": {
"type": "boolean",
"description": "仅返回活跃 Agent(可选)"
},
"capabilities": {
"type": "string",
"description": "按能力过滤(可选,如 dex)"
}
}
}【策略】管理自己的策略(写操作,需用户确认)。action 为 create / update / delete;update/delete 需要 strategyId;create/update 用 data 传策略数据(data.name 必填,data.strategy_category 为 dex/defi)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| data | object | 策略数据(create / update 必填) |
| action* | string | 要执行的操作 |
| strategyId | string | 策略 ID(update / delete 必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"action"
],
"properties": {
"data": {
"type": "object",
"description": "策略数据(create / update 必填)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"action": {
"type": "string",
"description": "要执行的操作"
},
"strategyId": {
"type": "string",
"description": "策略 ID(update / delete 必填)"
}
}
}【行情】查询标的的市场因子数据(技术/宏观因子)。参数 symbol 为交易标的。(cost: free)
| Argument | Type | Description |
|---|---|---|
| limit | number | 返回因子条数上限(可选) |
| symbol* | string | 交易标的,如 BTCUSDT(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"symbol"
],
"properties": {
"limit": {
"type": "number",
"description": "返回因子条数上限(可选)"
},
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(必填)"
}
}
}【行情】市场总览:主流币种快照、涨跌幅、成交量等市场状态概览。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【行情】查询平台行情 K 线。参数 symbol 为交易标的(如 BTCUSDT / ETHUSDT),timeframe 可选 1m/5m/15m/30m/1H/4H/1D,limit 最大 299。返回该标的的 K 线数组。(cost: free)
| Argument | Type | Description |
|---|---|---|
| limit | number | 返回 K 线条数上限(可选,最大 299) |
| symbol* | string | 交易标的,如 BTCUSDT(必填) |
| timeframe | string | K 线周期,如 1H / 4H / 1D(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"symbol"
],
"properties": {
"limit": {
"type": "number",
"description": "返回 K 线条数上限(可选,最大 299)"
},
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(必填)"
},
"timeframe": {
"type": "string",
"description": "K 线周期,如 1H / 4H / 1D(可选)"
}
}
}【行情】查询标的实时行情 ticker。参数 symbol 为交易标的(如 BTCUSDT,可选,缺省返回全部)。(cost: free)
| Argument | Type | Description |
|---|---|---|
| symbol | string | 交易标的,如 BTCUSDT(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(可选)"
}
}
}【策略】查询我创建的**策略市场/订阅域**策略列表(onv-backend `strategies` 表,按钱包地址归属,邮箱注册账号回退按数字 userId)。⚠️ 不含实盘策略——实盘策略在 `qd_strategies_trading`,请用 REST `GET /api/cex/strategies`(该端点不支持 status 过滤,返回全部状态)。status 可选 draft/published/archived(缺省三者全取)。(cost: free)
| Argument | Type | Description |
|---|---|---|
| page | number | 页码(可选) |
| status | string | 状态过滤(可选,draft/published/archived) |
| pageSize | number | 每页数量(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"page": {
"type": "number",
"description": "页码(可选)"
},
"status": {
"type": "string",
"description": "状态过滤(可选,draft/published/archived)"
},
"pageSize": {
"type": "number",
"description": "每页数量(可选)"
}
}
}【持仓与执行】真实下单(写操作,需确认,动用真实资金):credentialId 来自 platform_credentials,amount 为 USDT 名义金额;orderType=market|limit,限价单必填 price。执行前校验账号级「AI 实盘授权」,未开启一律拒绝。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| side* | string | 方向(必填) |
| price | number | 限价(限价单必填) |
| amount* | number | 下单金额,USDT 名义(必填) |
| symbol* | string | 交易对,如 BTC/USDT(必填) |
| slPrice | number | 止损价(可选) |
| tpPrice | number | 止盈价(可选) |
| leverage | number | 杠杆(可选,默认 1) |
| orderType | string | 订单类型(可选,默认 market) |
| marketType | string | 市场类型 swap/spot(可选) |
| credentialId* |
【账户与额度】查询平台订阅套餐列表(免费/付费 tier 与价格)。无需参数。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【持仓与执行】我的全部持仓(跨交易所扁平化,含方向/数量/开仓价/未实现盈亏)。可按交易所或交易对过滤。(cost: free)
| Argument | Type | Description |
|---|---|---|
| symbol | string | 交易对(可选,如 BTC/USDT) |
| exchangeId | string | 交易所 ID(可选,如 binance) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"symbol": {
"type": "string",
"description": "交易对(可选,如 BTC/USDT)"
},
"exchangeId": {
"type": "string",
"description": "交易所 ID(可选,如 binance)"
}
}
}【策略】发布策略(写操作,需用户确认)。name 必填、category 为 dex/defi;code 为策略代码(可选);subscription_price 订阅价格;strategy_id 可指定已有草稿发布。发布为公开上架。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| code | string | 策略代码(可选) |
| name* | string | 策略名称(必填) |
| params | object | 策略参数(可选) |
| category* | string | 分类(必填) |
| description | string | 策略描述(可选) |
| performance | object | 历史表现数据(可选) |
| strategy_id | number | 已有草稿 ID(可选,发布该草稿) |
| payment_token | string | 支付代币,默认 ETH |
| subscription_price | number | 订阅价格(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"category"
],
"properties": {
"code": {
"type": "string",
"description": "策略代码(可选)"
},
"name": {
"type": "string",
"description": "策略名称(必填)"
},
"params": {
"type": "object",
"description": "策略参数(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"category": {
"type": "string",
"description": "分类(必填)"
},
"description": {
"type": "string",
"description": "策略描述(可选)"
},
"performance": {
"type": "object",
"description": "历史表现数据(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"strategy_id": {
"type": "number",
"description": "已有草稿 ID(可选,发布该草稿)"
},
"payment_token": {
"type": "string",
"description": "支付代币,默认 ETH"
},
"subscription_price": {
"type": "number",
"description": "订阅价格(可选)"
}
}
}【行情】对指定标的进行快速 AI 技术分析(拉取行情并生成分析结论)。参数 symbol 为交易标的,如 BTCUSDT。(cost: ≈ 22–28 credits/次(按实际 tokens 结算))
| Argument | Type | Description |
|---|---|---|
| symbol* | string | 交易标的,如 BTCUSDT(必填) |
| timeframe | string | K 线周期(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(必填)"
},
"timeframe": {
"type": "string",
"description": "K 线周期(可选)"
}
}
}【账户与额度】人工解除熔断(写操作,需确认):须提供 recoveryCode;解除后策略恢复实盘执行。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| recoveryCode* | string | 解除码(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"recoveryCode"
],
"properties": {
"recoveryCode": {
"type": "string",
"description": "解除码(必填)"
}
}
}【账户与额度】查询我的账户级风控面板:配置、熔断状态、聚合风险与策略风险。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【策略】提交回测任务(写操作,需用户确认)。strategy 为策略代码字符串或已有策略 ID(纯数字),symbol 为交易标的如 BTCUSDT,timeframe 可选 1m/5m/15m/30m/1H/4H/1D。params 为指标参数覆盖(可选,写入引擎 indicator_params,与代码内 # @param 默认值合并、此处优先),与同步链 /api/cex/indicator/backtest 的 params 同口径。(cost: ≈ 27 credits/次(90d·1H))(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| params | object | 指标参数覆盖,如 {"fast_period":20,"slow_period":60}(可选) |
| symbol* | string | 交易标的,如 BTCUSDT(必填) |
| endDate | string | 结束日期,如 2024-12-31(可选) |
| strategy* | string | 策略代码或策略 ID(纯数字视为 ID) |
| startDate | string | 开始日期,如 2024-01-01(可选) |
| timeframe | string | K 线周期(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategy",
"symbol"
],
"properties": {
"params": {
"type": "object",
"description": "指标参数覆盖,如 {\"fast_period\":20,\"slow_period\":60}(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(必填)"
},
"endDate": {
"type": "string",
"description": "结束日期,如 2024-12-31(可选)"
},
"strategy": {
"type": "string",
"description": "策略代码或策略 ID(纯数字视为 ID)"
},
"startDate": {
"type": "string",
"description": "开始日期,如 2024-01-01(可选)"
},
"timeframe": {
"type": "string",
"description": "K 线周期(可选)"
}
}
}【账户与额度】更新账户熔断配置(写操作,需确认):enabled 开关,可设日亏损上限、连续失败次数、gas 尖峰上限。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| enabled | boolean | 是否启用熔断 |
| alertChannels | string | 告警通道(可选) |
| gasSpikeLimitUsd | number | gas 尖峰上限 USD(可选) |
| dailyLossLimitUsd | number | 日亏损上限 USD(可选) |
| consecutiveFailLimit | number | 连续失败次数上限(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"enabled": {
"type": "boolean",
"description": "是否启用熔断"
},
"alertChannels": {
"type": "string",
"description": "告警通道(可选)"
},
"gasSpikeLimitUsd": {
"type": "number",
"description": "gas 尖峰上限 USD(可选)"
},
"dailyLossLimitUsd": {
"type": "number",
"description": "日亏损上限 USD(可选)"
},
"consecutiveFailLimit": {
"type": "number",
"description": "连续失败次数上限(可选)"
}
}
}【账户与额度】更新账户级风控配置(写操作,需确认):config 为要修改的字段对象(如日亏损上限、单笔上限)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| config* | object | 风控字段对象(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"config"
],
"properties": {
"config": {
"type": "object",
"description": "风控字段对象(必填)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
}【持仓与执行】查询**实盘策略**的绩效(策略级,按实盘策略 ID):权益曲线、最新权益、区间收益与点数。ID 取自 `qd_strategies_trading`。(cost: free)
| Argument | Type | Description |
|---|---|---|
| strategyId* | number | 实盘策略 ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "number",
"description": "实盘策略 ID(必填)"
}
}
}【持仓与执行】查询**实盘策略**的持仓(策略级,按实盘策略 ID)。⚠️ ID 取自 `qd_strategies_trading`(REST `GET /api/cex/strategies`),不是策略市场/订阅域的 `strategies` 表 ID。返回方向/数量/开仓价/未实现盈亏。(cost: free)
| Argument | Type | Description |
|---|---|---|
| strategyId* | number | 实盘策略 ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "number",
"description": "实盘策略 ID(必填)"
}
}
}【持仓与执行】查询**实盘策略**的成交记录(策略级,按实盘策略 ID;含平仓原因与模拟盘标记)。ID 取自 `qd_strategies_trading`。(cost: free)
| Argument | Type | Description |
|---|---|---|
| limit | number | 返回条数上限(可选,默认 200,最大 1000) |
| strategyId* | number | 实盘策略 ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"limit": {
"type": "number",
"description": "返回条数上限(可选,默认 200,最大 1000)"
},
"strategyId": {
"type": "number",
"description": "实盘策略 ID(必填)"
}
}
}【账户与额度】订阅引导(写操作,需用户确认):为指定 Agent 生成订阅引导信息(周期可选 day/week/month/year),确认后返回订阅链接与支付信息,不自动扣费。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| period | string | 订阅周期(可选) |
| agentId* | string | 要订阅的 Agent / 策略 ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"agentId"
],
"properties": {
"period": {
"type": "string",
"description": "订阅周期(可选)"
},
"agentId": {
"type": "string",
"description": "要订阅的 Agent / 策略 ID(必填)"
}
}
}【账户与额度】购买平台套餐(写操作,需用户确认):plan_id 必填(来自 platform_plans),period 可选 day/week/month/year,payment_method 可选 chain/x402。创建支付订单,支付在平台完成。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Argument | Type | Description |
|---|---|---|
| period | string | 订阅周期(可选) |
| plan_id* | number | 套餐 ID(必填) |
| payment_method | string | 支付方式(可选,默认 chain;仅支持加密货币) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"plan_id"
],
"properties": {
"period": {
"type": "string",
"description": "订阅周期(可选)"
},
"plan_id": {
"type": "number",
"description": "套餐 ID(必填)"
},
"payment_method": {
"type": "string",
"description": "支付方式(可选,默认 chain;仅支持加密货币)"
}
}
}【账户与额度】查询我的订阅列表。无需参数。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【账户与额度】查询对某 Agent 的订阅状态。参数 strategyId 或 agentId。(cost: free)
| Argument | Type | Description |
|---|---|---|
| strategyId* | string | 策略 / Agent ID(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "string",
"description": "策略 / Agent ID(必填)"
}
}
}【行情】搜索平台支持的交易标的(币种/交易对)。参数 query 为关键词如 BTC。(cost: free)
| Argument | Type | Description |
|---|---|---|
| query* | string | 搜索关键词,如 BTC(必填) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "搜索关键词,如 BTC(必填)"
}
}
}【持仓与执行】查询我的最近成交记录(默认 50 条,最多 200)。(cost: free)
| Argument | Type | Description |
|---|---|---|
| limit | number | 返回条数(可选,1-200) |
| offset | number | 偏移量(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "number",
"description": "返回条数(可选,1-200)"
},
"offset": {
"type": "number",
"description": "偏移量(可选)"
}
}
}【账户与额度】查询我的平台套餐订阅状态(当前套餐/到期时间)。无需参数。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}【账户与额度】查询我的平台用量汇总(今日 bars / 本月 tokens / 剩余配额)。无需参数。(cost: free)
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 5, 2026.
| maxCandidates | number | 候选上限(可选) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"days": {
"type": "number",
"description": "回测天数(可选)"
},
"intent": {
"type": "string",
"description": "自然语言意图(llm 模式用)"
},
"symbol": {
"type": "string",
"description": "交易对(可选,默认 BTC/USDT)"
},
"factorIds": {
"type": "array",
"items": {},
"description": "条件 ID 列表(search 模式用)"
},
"timeframe": {
"type": "string",
"description": "周期(可选)"
},
"sourceType": {
"type": "string",
"description": "运行类型(可选,默认 llm)"
},
"strategyId": {
"type": "string",
"description": "被优化的策略 ID(optimize 必填,支持 s:/t: 前缀)"
},
"thresholds": {
"type": "object",
"description": "指标阈值(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"nCandidates": {
"type": "number",
"description": "生成候选数(llm 模式,可选)"
},
"searchBudget": {
"type": "number",
"description": "搜索预算(可选)"
},
"maxCandidates": {
"type": "number",
"description": "候选上限(可选)"
}
}
}| number |
| 交易所凭证 ID(必填) |
| idempotencyKey | string | 幂等键(可选,防重复下单) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credentialId",
"symbol",
"side",
"amount"
],
"properties": {
"side": {
"type": "string",
"description": "方向(必填)"
},
"price": {
"type": "number",
"description": "限价(限价单必填)"
},
"amount": {
"type": "number",
"description": "下单金额,USDT 名义(必填)"
},
"symbol": {
"type": "string",
"description": "交易对,如 BTC/USDT(必填)"
},
"slPrice": {
"type": "number",
"description": "止损价(可选)"
},
"tpPrice": {
"type": "number",
"description": "止盈价(可选)"
},
"leverage": {
"type": "number",
"description": "杠杆(可选,默认 1)"
},
"orderType": {
"type": "string",
"description": "订单类型(可选,默认 market)"
},
"marketType": {
"type": "string",
"description": "市场类型 swap/spot(可选)"
},
"credentialId": {
"type": "number",
"description": "交易所凭证 ID(必填)"
},
"idempotencyKey": {
"type": "string",
"description": "幂等键(可选,防重复下单)"
}
}
}