codes.onv/onv-mcp is an MCP server published by codes.onv, hosted at onv.codes. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 50 tools, including platform_market_quote, platform_market_overview, platform_market_ticker, platform_market_factors, platform_symbol_search.
量化策略回测、组合配置与多交易所执行(14 家通道)
2 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
【行情】查询平台行情 K 线。参数 symbol 为交易标的(如 BTCUSDT / ETHUSDT),timeframe 可选 1m/5m/15m/30m/1H/4H/1D,limit 最大 299。返回该标的的 K 线数组。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回 K 线条数上限(可选,最大 299) |
| symbol * | string | 交易标的,如 BTCUSDT(必填) |
| timeframe | string | K 线周期,如 1H / 4H / 1D(可选) |
{
"name": "platform_market_quote",
"title": "查询K线行情",
"description": "【行情】查询平台行情 K 线。参数 symbol 为交易标的(如 BTCUSDT / ETHUSDT),timeframe 可选 1m/5m/15m/30m/1H/4H/1D,limit 最大 299。返回该标的的 K 线数组。(cost: free)",
"inputSchema": {
"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(可选)"
}
}
},
"annotations": {
"title": "查询K线行情",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】市场总览:主流币种快照、涨跌幅、成交量等市场状态概览。(cost: free)
No parameters.
{
"name": "platform_market_overview",
"title": "市场总览",
"description": "【行情】市场总览:主流币种快照、涨跌幅、成交量等市场状态概览。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "市场总览",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】查询标的实时行情 ticker。参数 symbol 为交易标的(如 BTCUSDT,可选,缺省返回全部)。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| symbol | string | 交易标的,如 BTCUSDT(可选) |
{
"name": "platform_market_ticker",
"title": "查询实时行情",
"description": "【行情】查询标的实时行情 ticker。参数 symbol 为交易标的(如 BTCUSDT,可选,缺省返回全部)。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(可选)"
}
}
},
"annotations": {
"title": "查询实时行情",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】查询标的的市场因子数据(技术/宏观因子)。参数 symbol 为交易标的。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回因子条数上限(可选) |
| symbol * | string | 交易标的,如 BTCUSDT(必填) |
{
"name": "platform_market_factors",
"title": "查询市场因子",
"description": "【行情】查询标的的市场因子数据(技术/宏观因子)。参数 symbol 为交易标的。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"symbol"
],
"properties": {
"limit": {
"type": "number",
"description": "返回因子条数上限(可选)"
},
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(必填)"
}
}
},
"annotations": {
"title": "查询市场因子",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】搜索平台支持的交易标的(币种/交易对)。参数 query 为关键词如 BTC。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| query * | string | 搜索关键词,如 BTC(必填) |
{
"name": "platform_symbol_search",
"title": "搜索交易标的",
"description": "【行情】搜索平台支持的交易标的(币种/交易对)。参数 query 为关键词如 BTC。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "搜索关键词,如 BTC(必填)"
}
}
},
"annotations": {
"title": "搜索交易标的",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】对指定标的进行快速 AI 技术分析(拉取行情并生成分析结论)。参数 symbol 为交易标的,如 BTCUSDT。(cost: ≈ 22–28 credits/次(按实际 tokens 结算))
| Parameter | Type | Description |
|---|---|---|
| symbol * | string | 交易标的,如 BTCUSDT(必填) |
| timeframe | string | K 线周期(可选) |
{
"name": "platform_quick_analysis",
"title": "快速技术分析",
"description": "【行情】对指定标的进行快速 AI 技术分析(拉取行情并生成分析结论)。参数 symbol 为交易标的,如 BTCUSDT。(cost: ≈ 22–28 credits/次(按实际 tokens 结算))",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "交易标的,如 BTCUSDT(必填)"
},
"timeframe": {
"type": "string",
"description": "K 线周期(可选)"
}
}
},
"annotations": {
"title": "快速技术分析",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】列出平台上已发布的公开 AI 助理(策略),可按能力过滤与分页。参数 capabilities 可选(如 dex/defi)。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| page | number | 页码(可选) |
| pageSize | number | 每页数量(可选) |
| activeOnly | boolean | 仅返回活跃 AI 助理(可选) |
| capabilities | string | 按能力过滤(可选,如 dex) |
{
"name": "platform_list_agents",
"title": "策略市场列表",
"description": "【策略】列出平台上已发布的公开 AI 助理(策略),可按能力过滤与分页。参数 capabilities 可选(如 dex/defi)。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"page": {
"type": "number",
"description": "页码(可选)"
},
"pageSize": {
"type": "number",
"description": "每页数量(可选)"
},
"activeOnly": {
"type": "boolean",
"description": "仅返回活跃 AI 助理(可选)"
},
"capabilities": {
"type": "string",
"description": "按能力过滤(可选,如 dex)"
}
}
},
"annotations": {
"title": "策略市场列表",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】获取单个已发布的公开 AI 助理(策略)详情。参数 agentId 为策略 ID。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| agentId * | string | 策略 / AI 助理 ID(必填) |
{
"name": "platform_get_agent",
"title": "查看策略详情",
"description": "【策略】获取单个已发布的公开 AI 助理(策略)详情。参数 agentId 为策略 ID。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"agentId"
],
"properties": {
"agentId": {
"type": "string",
"description": "策略 / AI 助理 ID(必填)"
}
}
},
"annotations": {
"title": "查看策略详情",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】查询**已订阅策略**的最新交易信号(需本人有效订阅,或本人创建该策略)。返回最近信号列表(动作/标的/价格/时间等);不包含下单执行。参数 strategyId 必填,limit 可选(默认 10,最大 50)。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回条数(可选,默认 10,最大 50) |
| strategyId * | string | 策略 ID(必填) |
{
"name": "platform_agent_signal",
"title": "Agent 信号",
"description": "【策略】查询**已订阅策略**的最新交易信号(需本人有效订阅,或本人创建该策略)。返回最近信号列表(动作/标的/价格/时间等);不包含下单执行。参数 strategyId 必填,limit 可选(默认 10,最大 50)。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"limit": {
"type": "number",
"description": "返回条数(可选,默认 10,最大 50)"
},
"strategyId": {
"type": "string",
"description": "策略 ID(必填)"
}
}
},
"annotations": {
"title": "Agent 信号",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】查询**已订阅策略**的绩效(需本人有效订阅,或本人创建该策略):订阅人数、样本内外指标、OOS 验证状态与实盘观察天数。参数 strategyId 必填。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| strategyId * | string | 策略 ID(必填) |
{
"name": "platform_agent_performance",
"title": "Agent 绩效",
"description": "【策略】查询**已订阅策略**的绩效(需本人有效订阅,或本人创建该策略):订阅人数、样本内外指标、OOS 验证状态与实盘观察天数。参数 strategyId 必填。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "string",
"description": "策略 ID(必填)"
}
}
},
"annotations": {
"title": "Agent 绩效",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询平台订阅套餐列表(免费/付费 tier 与价格)。无需参数。(cost: free)
No parameters.
{
"name": "platform_plans",
"title": "查询订阅套餐",
"description": "【账户与额度】查询平台订阅套餐列表(免费/付费 tier 与价格)。无需参数。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "查询订阅套餐",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】查询我创建的**策略市场/订阅域**策略列表(onv-backend `strategies` 表,按钱包地址归属,邮箱注册账号回退按数字 userId)。⚠️ 不含实盘策略——实盘策略在 `qd_strategies_trading`,请用 REST `GET /api/cex/strategies`(该端点不支持 status 过滤,返回全部状态)。status 可选 draft/published/archived(缺省三者全取)。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| page | number | 页码(可选) |
| status | string | 状态过滤(可选,draft/published/archived) |
| pageSize | number | 每页数量(可选) |
{
"name": "platform_my_strategies",
"title": "我的策略列表",
"description": "【策略】查询我创建的**策略市场/订阅域**策略列表(onv-backend `strategies` 表,按钱包地址归属,邮箱注册账号回退按数字 userId)。⚠️ 不含实盘策略——实盘策略在 `qd_strategies_trading`,请用 REST `GET /api/cex/strategies`(该端点不支持 status 过滤,返回全部状态)。status 可选 draft/published/archived(缺省三者全取)。(cost: free)",
"inputSchema": {
"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": "每页数量(可选)"
}
}
},
"annotations": {
"title": "我的策略列表",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】查询回测任务结果。参数 jobId 为 run_backtest 返回的任务 ID。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| jobId * | string | 回测任务 ID(必填) |
{
"name": "platform_backtest_result",
"title": "查询回测结果",
"description": "【策略】查询回测任务结果。参数 jobId 为 run_backtest 返回的任务 ID。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"jobId"
],
"properties": {
"jobId": {
"type": "string",
"description": "回测任务 ID(必填)"
}
}
},
"annotations": {
"title": "查询回测结果",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】查询回测历史(可指定策略 ID 过滤)。参数 strategyId 可选。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| strategyId | string | 策略 ID(可选,缺省返回全部) |
{
"name": "platform_backtest_history",
"title": "查询回测历史",
"description": "【策略】查询回测历史(可指定策略 ID 过滤)。参数 strategyId 可选。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"strategyId": {
"type": "string",
"description": "策略 ID(可选,缺省返回全部)"
}
}
},
"annotations": {
"title": "查询回测历史",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】解释一次回测「为什么亏 / 为什么没成交」。返回结构化卡片(数据区间、样本内外、最大回撤、数据缺失)与逐条原因。参数 runId / jobId / strategyId 至少给一个,三选一即可。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| jobId | string | 回测任务 ID(run_backtest 返回,可选) |
| runId | number | 回测记录 ID(qd_backtest_runs.id,可选) |
| strategyId | number | 策略 ID(取最近一次回测,可选) |
{
"name": "platform_explain_backtest",
"title": "explain backtest",
"description": "【行情】解释一次回测「为什么亏 / 为什么没成交」。返回结构化卡片(数据区间、样本内外、最大回撤、数据缺失)与逐条原因。参数 runId / jobId / strategyId 至少给一个,三选一即可。(cost: free)",
"inputSchema": {
"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(取最近一次回测,可选)"
}
}
},
"annotations": {
"title": "explain backtest",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】解释我的持仓与账户风控:逐仓名义价值 / 未实现盈亏 / 杠杆,以及账户敞口、当日盈亏、保证金使用率、熔断状态。返回结构化卡片,每个数字带 source(来源接口 + 字段),narrative.traces 写明口径公式;不做收益预测。(cost: free)
No parameters.
{
"name": "platform_explain_portfolio",
"title": "explain portfolio",
"description": "【行情】解释我的持仓与账户风控:逐仓名义价值 / 未实现盈亏 / 杠杆,以及账户敞口、当日盈亏、保证金使用率、熔断状态。返回结构化卡片,每个数字带 source(来源接口 + 字段),narrative.traces 写明口径公式;不做收益预测。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "explain portfolio",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】解释一次回测里各因子对收益的贡献:同一指标代码 / 区间 / 参数,逐个剔除一个因子列重跑,用指标差分(基准 − 剔除后)给出边际贡献,并把每个数字的 source 写明(基准结果 / ablate(id))。参数 runId / jobId 至少给一个,maxFactors 可选(默认 3,最大 5)。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| jobId | string | 回测任务 ID(run_backtest 返回,可选;经 backtest_jobs 桥接为 run) |
| runId | number | 回测记录 ID(qd_backtest_runs.id,可选) |
| maxFactors | number | 最多解释的因子个数(可选,默认 3,最大 5) |
{
"name": "platform_explain_factors",
"title": "explain factors",
"description": "【行情】解释一次回测里各因子对收益的贡献:同一指标代码 / 区间 / 参数,逐个剔除一个因子列重跑,用指标差分(基准 − 剔除后)给出边际贡献,并把每个数字的 source 写明(基准结果 / ablate(id))。参数 runId / jobId 至少给一个,maxFactors 可选(默认 3,最大 5)。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"jobId": {
"type": "string",
"description": "回测任务 ID(run_backtest 返回,可选;经 backtest_jobs 桥接为 run)"
},
"runId": {
"type": "number",
"description": "回测记录 ID(qd_backtest_runs.id,可选)"
},
"maxFactors": {
"type": "number",
"description": "最多解释的因子个数(可选,默认 3,最大 5)"
}
}
},
"annotations": {
"title": "explain factors",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询对某 AI 助理的订阅状态。参数 strategyId 或 agentId。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| strategyId * | string | 策略 / AI 助理 ID(必填) |
{
"name": "platform_subscription_status",
"title": "查询策略订阅状态",
"description": "【账户与额度】查询对某 AI 助理的订阅状态。参数 strategyId 或 agentId。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "string",
"description": "策略 / AI 助理 ID(必填)"
}
}
},
"annotations": {
"title": "查询策略订阅状态",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询我的策略订阅列表(含状态 status/running_status、到期时间 expires_at、最近执行错误 last_error/last_error_at)。退订用 platform_unsubscribe。无需参数。(cost: free)
No parameters.
{
"name": "platform_subscription_list",
"title": "我的策略订阅",
"description": "【账户与额度】查询我的策略订阅列表(含状态 status/running_status、到期时间 expires_at、最近执行错误 last_error/last_error_at)。退订用 platform_unsubscribe。无需参数。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "我的策略订阅",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询我的平台套餐订阅状态(当前套餐/到期时间)。无需参数。(cost: free)
No parameters.
{
"name": "platform_user_subscription",
"title": "查询我的平台套餐",
"description": "【账户与额度】查询我的平台套餐订阅状态(当前套餐/到期时间)。无需参数。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "查询我的平台套餐",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询我的平台用量汇总(今日 bars / 本月 tokens / 剩余配额)。无需参数。(cost: free)
No parameters.
{
"name": "platform_user_usage",
"title": "查询用量配额",
"description": "【账户与额度】查询我的平台用量汇总(今日 bars / 本月 tokens / 剩余配额)。无需参数。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "查询用量配额",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】提交回测任务(写操作,需用户确认)。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 身份直接执行)
| Parameter | 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 线周期(可选) |
{
"name": "platform_run_backtest",
"title": "运行回测",
"description": "【策略】提交回测任务(写操作,需用户确认)。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 身份直接执行)",
"inputSchema": {
"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 线周期(可选)"
}
}
},
"annotations": {
"title": "运行回测",
"readOnlyHint": false,
"destructiveHint": true
}
}【策略】管理自己的策略(写操作,需用户确认)。action 为 create / update / delete;update/delete 需要 strategyId;create/update 用 data 传策略数据(data.name 必填,data.strategy_category 为 dex/defi)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| data | object | 策略数据(create / update 必填) |
| action * | string | 要执行的操作 |
| strategyId | string | 策略 ID(update / delete 必填) |
{
"name": "platform_manage_strategy",
"title": "创建或修改策略",
"description": "【策略】管理自己的策略(写操作,需用户确认)。action 为 create / update / delete;update/delete 需要 strategyId;create/update 用 data 传策略数据(data.name 必填,data.strategy_category 为 dex/defi)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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 必填)"
}
}
},
"annotations": {
"title": "创建或修改策略",
"readOnlyHint": false,
"destructiveHint": true
}
}【策略】提交策略审核(提交后进入 pending_review,不会直接上架)。name / category / agentCategory / code 必填;同时必须披露样本外结果 oos、搜索尝试次数 n_trials、经济解释 economicRationale(≥10 字)。live_observation_days 为实盘观察天数(可选;source=factory 来源时后端要求达到上架门槛)。strategy_id 可指定已有草稿提交。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| oos * | object | 样本外结果(必填) |
| code * | string | 策略代码(必填) |
| name * | string | 策略名称(必填) |
| params | object | 策略参数(可选) |
| category * | string | 分类(必填) |
| n_trials * | string | 搜索尝试次数(必填,≥1) |
| description | string | 策略描述(可选) |
| performance | object | 历史表现数据(可选) |
| strategy_id | number | 已有草稿 ID(可选,提交该草稿) |
| agentCategory * | string | 应用类别(必填,AGENT_CATEGORIES 之一,如 quant-trading) |
【账户与额度】订阅引导(写操作,需用户确认):为指定 AI 助理生成订阅引导信息(周期可选 day/week/month/year),确认后返回订阅链接与支付信息,不自动扣费。参数 strategyId 必填(agentId 为等价别名)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| period | string | 订阅周期(可选) |
| agentId | string | 同 strategyId(兼容旧客户端别名,二选一) |
| strategyId | string | 要订阅的 AI 助理 / 策略 ID(来自 platform_list_agents) |
{
"name": "platform_subscribe_guide",
"title": "获取订阅指引",
"description": "【账户与额度】订阅引导(写操作,需用户确认):为指定 AI 助理生成订阅引导信息(周期可选 day/week/month/year),确认后返回订阅链接与支付信息,不自动扣费。参数 strategyId 必填(agentId 为等价别名)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"period": {
"type": "string",
"description": "订阅周期(可选)"
},
"agentId": {
"type": "string",
"description": "同 strategyId(兼容旧客户端别名,二选一)"
},
"strategyId": {
"type": "string",
"description": "要订阅的 AI 助理 / 策略 ID(来自 platform_list_agents)"
}
}
},
"annotations": {
"title": "获取订阅指引",
"readOnlyHint": false,
"destructiveHint": true
}
}【账户与额度】订阅策略市场里的 AI 助理 / 策略(写操作,需用户确认):免费策略提交即生效;付费策略创建收款单并返回订单号与支付信息,支付确认后自动激活(不会重复扣费)。参数 strategyId 必填(来自 platform_list_agents),period 可选 monthly/quarterly/yearly。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| period | string | 订阅周期(可选,默认 monthly) |
| strategyId * | string | 策略 / AI 助理 ID(必填) |
| payment_method | string | 付费策略的支付方式(可选,默认 usdt;credit 表示用平台点数余额) |
{
"name": "platform_subscribe_strategy",
"title": "订阅策略",
"description": "【账户与额度】订阅策略市场里的 AI 助理 / 策略(写操作,需用户确认):免费策略提交即生效;付费策略创建收款单并返回订单号与支付信息,支付确认后自动激活(不会重复扣费)。参数 strategyId 必填(来自 platform_list_agents),period 可选 monthly/quarterly/yearly。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"period": {
"type": "string",
"description": "订阅周期(可选,默认 monthly)"
},
"strategyId": {
"type": "string",
"description": "策略 / AI 助理 ID(必填)"
},
"payment_method": {
"type": "string",
"description": "付费策略的支付方式(可选,默认 usdt;credit 表示用平台点数余额)"
}
}
},
"annotations": {
"title": "订阅策略",
"readOnlyHint": false,
"destructiveHint": true
}
}【账户与额度】退订策略(写操作,需用户确认):停止后续信号执行并释放订阅名额,不支持退款。subscriptionId 与 strategyId 二选一——只给 strategyId 时自动匹配本人当前有效订阅。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| strategyId | string | 策略 ID(未提供 subscriptionId 时用于匹配本人有效订阅) |
| subscriptionId | number | 订阅记录 ID(来自 platform_subscription_list) |
{
"name": "platform_unsubscribe",
"title": "退订策略",
"description": "【账户与额度】退订策略(写操作,需用户确认):停止后续信号执行并释放订阅名额,不支持退款。subscriptionId 与 strategyId 二选一——只给 strategyId 时自动匹配本人当前有效订阅。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"strategyId": {
"type": "string",
"description": "策略 ID(未提供 subscriptionId 时用于匹配本人有效订阅)"
},
"subscriptionId": {
"type": "number",
"description": "订阅记录 ID(来自 platform_subscription_list)"
}
}
},
"annotations": {
"title": "退订策略",
"readOnlyHint": false,
"destructiveHint": true
}
}【账户与额度】购买平台套餐(写操作,需用户确认):plan_id 必填(来自 platform_plans),period 可选 day/week/month/year,payment_method 可选 chain/x402。创建支付订单,支付在平台完成。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| period | string | 订阅周期(可选) |
| plan_id * | number | 套餐 ID(必填) |
| payment_method | string | 支付方式(可选,默认 chain;仅支持加密货币) |
{
"name": "platform_subscribe_plan",
"title": "购买平台套餐",
"description": "【账户与额度】购买平台套餐(写操作,需用户确认):plan_id 必填(来自 platform_plans),period 可选 day/week/month/year,payment_method 可选 chain/x402。创建支付订单,支付在平台完成。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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;仅支持加密货币)"
}
}
},
"annotations": {
"title": "购买平台套餐",
"readOnlyHint": false,
"destructiveHint": true
}
}【策略】AI 生成策略代码(写操作,需用户确认):输入自然语言 prompt(可选 context 传入研究流水线结构化学徒上下文),返回策略代码与解释。(cost: ≈ 36–48 credits/次(按实际 tokens 结算))(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| prompt * | string | 策略描述提示词,如「BTC 均线金叉策略」(必填) |
| context | object | 可选结构化学徒上下文(B2-a):failedReasons/retiredFactors/reviewNotes/targetMetrics,独立注入 LLM,不进 prompt 文本 |
{
"name": "platform_ai_generate",
"title": "AI 生成策略",
"description": "【策略】AI 生成策略代码(写操作,需用户确认):输入自然语言 prompt(可选 context 传入研究流水线结构化学徒上下文),返回策略代码与解释。(cost: ≈ 36–48 credits/次(按实际 tokens 结算))(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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": {}
}
}
},
"annotations": {
"title": "AI 生成策略",
"readOnlyHint": false,
"destructiveHint": true
}
}【策略】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 身份直接执行)
| Parameter | 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(可选) |
{
"name": "platform_ai_optimize",
"title": "AI 优化策略",
"description": "【策略】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 身份直接执行)",
"inputSchema": {
"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": {}
}
}
},
"annotations": {
"title": "AI 优化策略",
"readOnlyHint": false,
"destructiveHint": true
}
}【持仓与执行】我的跨所账户总览:各交易所余额、持仓与币种归并(无凭证返回空)。(cost: free)
No parameters.
{
"name": "platform_account_overview",
"title": "账户总览",
"description": "【持仓与执行】我的跨所账户总览:各交易所余额、持仓与币种归并(无凭证返回空)。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "账户总览",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】我的全部持仓(跨交易所扁平化,含方向/数量/开仓价/未实现盈亏)。可按交易所或交易对过滤。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| symbol | string | 交易对(可选,如 BTC/USDT) |
| exchangeId | string | 交易所 ID(可选,如 binance) |
{
"name": "platform_positions",
"title": "查询持仓",
"description": "【持仓与执行】我的全部持仓(跨交易所扁平化,含方向/数量/开仓价/未实现盈亏)。可按交易所或交易对过滤。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"symbol": {
"type": "string",
"description": "交易对(可选,如 BTC/USDT)"
},
"exchangeId": {
"type": "string",
"description": "交易所 ID(可选,如 binance)"
}
}
},
"annotations": {
"title": "查询持仓",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】查询**实盘策略**的持仓(策略级,按实盘策略 ID)。⚠️ ID 取自 `qd_strategies_trading`(REST `GET /api/cex/strategies`),不是策略市场/订阅域的 `strategies` 表 ID。返回方向/数量/开仓价/未实现盈亏。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| strategyId * | number | 实盘策略 ID(必填) |
{
"name": "platform_strategy_positions",
"title": "策略持仓",
"description": "【持仓与执行】查询**实盘策略**的持仓(策略级,按实盘策略 ID)。⚠️ ID 取自 `qd_strategies_trading`(REST `GET /api/cex/strategies`),不是策略市场/订阅域的 `strategies` 表 ID。返回方向/数量/开仓价/未实现盈亏。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "number",
"description": "实盘策略 ID(必填)"
}
}
},
"annotations": {
"title": "策略持仓",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】查询**实盘策略**的成交记录(策略级,按实盘策略 ID;含平仓原因与模拟盘标记)。ID 取自 `qd_strategies_trading`。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回条数上限(可选,默认 200,最大 1000) |
| strategyId * | number | 实盘策略 ID(必填) |
{
"name": "platform_strategy_trades",
"title": "策略成交",
"description": "【持仓与执行】查询**实盘策略**的成交记录(策略级,按实盘策略 ID;含平仓原因与模拟盘标记)。ID 取自 `qd_strategies_trading`。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"limit": {
"type": "number",
"description": "返回条数上限(可选,默认 200,最大 1000)"
},
"strategyId": {
"type": "number",
"description": "实盘策略 ID(必填)"
}
}
},
"annotations": {
"title": "策略成交",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】查询**实盘策略**的绩效(策略级,按实盘策略 ID):权益曲线、最新权益、区间收益与点数。ID 取自 `qd_strategies_trading`。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| strategyId * | number | 实盘策略 ID(必填) |
{
"name": "platform_strategy_performance",
"title": "策略绩效",
"description": "【持仓与执行】查询**实盘策略**的绩效(策略级,按实盘策略 ID):权益曲线、最新权益、区间收益与点数。ID 取自 `qd_strategies_trading`。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"strategyId"
],
"properties": {
"strategyId": {
"type": "number",
"description": "实盘策略 ID(必填)"
}
}
},
"annotations": {
"title": "策略绩效",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】一键全平预演(dry-run,不会下单):列出将被平仓的合约持仓 / 现货余额目标与合计盈亏。可按凭证或交易对过滤。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| symbol | string | 交易对(可选,如 BTC/USDT) |
| credentialId | number | 凭证 ID(可选,来自 platform_credentials) |
{
"name": "platform_close_preview",
"title": "一键全平预演",
"description": "【持仓与执行】一键全平预演(dry-run,不会下单):列出将被平仓的合约持仓 / 现货余额目标与合计盈亏。可按凭证或交易对过滤。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"symbol": {
"type": "string",
"description": "交易对(可选,如 BTC/USDT)"
},
"credentialId": {
"type": "number",
"description": "凭证 ID(可选,来自 platform_credentials)"
}
}
},
"annotations": {
"title": "一键全平预演",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】查询我的最近成交记录(默认 50 条,最多 200)。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回条数(可选,1-200) |
| offset | number | 偏移量(可选) |
{
"name": "platform_trade_history",
"title": "查询成交记录",
"description": "【持仓与执行】查询我的最近成交记录(默认 50 条,最多 200)。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "number",
"description": "返回条数(可选,1-200)"
},
"offset": {
"type": "number",
"description": "偏移量(可选)"
}
}
},
"annotations": {
"title": "查询成交记录",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询我绑定的交易所凭证(脱敏,不含密钥)。返回凭证 ID/交易所/名称,供下单、平仓、查询使用。(cost: free)
No parameters.
{
"name": "platform_credentials",
"title": "查询交易凭证",
"description": "【账户与额度】查询我绑定的交易所凭证(脱敏,不含密钥)。返回凭证 ID/交易所/名称,供下单、平仓、查询使用。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "查询交易凭证",
"readOnlyHint": true,
"destructiveHint": false
}
}【账户与额度】查询我的账户级风控面板:配置、熔断状态、聚合风险与策略风险。(cost: free)
No parameters.
{
"name": "platform_risk_config",
"title": "查询风控配置",
"description": "【账户与额度】查询我的账户级风控面板:配置、熔断状态、聚合风险与策略风险。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "查询风控配置",
"readOnlyHint": true,
"destructiveHint": false
}
}【策略】查询我的策略工厂运行记录;传 runId 时返回该次运行详情。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| limit | number | 返回条数(可选,默认 20) |
| runId | number | 运行 ID(可选,传则取详情) |
{
"name": "platform_factory_runs",
"title": "查询策略工厂记录",
"description": "【策略】查询我的策略工厂运行记录;传 runId 时返回该次运行详情。(cost: free)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "number",
"description": "返回条数(可选,默认 20)"
},
"runId": {
"type": "number",
"description": "运行 ID(可选,传则取详情)"
}
}
},
"annotations": {
"title": "查询策略工厂记录",
"readOnlyHint": true,
"destructiveHint": false
}
}【行情】链上 DEX 报价(只读):chain 如 ETH/BSC/BASE/SOL,fromToken/toToken 为代币地址或符号,amount 为最小单位字符串。(cost: free)
| Parameter | Type | Description |
|---|---|---|
| chain * | string | 链短名,如 ETH / BSC / BASE / SOL |
| amount * | string | 卖出数量(最小单位字符串) |
| toToken * | string | 买入代币(地址或符号) |
| slippage | number | 滑点百分比(可选,默认 1) |
| fromToken | string | 卖出代币(地址或符号;原生币可留空) |
{
"name": "platform_dex_quote",
"title": "链上兑换报价",
"description": "【行情】链上 DEX 报价(只读):chain 如 ETH/BSC/BASE/SOL,fromToken/toToken 为代币地址或符号,amount 为最小单位字符串。(cost: free)",
"inputSchema": {
"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": "卖出代币(地址或符号;原生币可留空)"
}
}
},
"annotations": {
"title": "链上兑换报价",
"readOnlyHint": true,
"destructiveHint": false
}
}【持仓与执行】真实下单(写操作,需确认,动用真实资金):credentialId 来自 platform_credentials,amount 为 USDT 名义金额;orderType=market|limit,限价单必填 price。执行前校验账号级「AI 实盘授权」,未开启一律拒绝。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | 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 * | number | 交易所凭证 ID(必填) |
| idempotencyKey | string | 幂等键(可选,防重复下单) |
【持仓与执行】撤销未成交挂单(写操作,需确认):exchangeOrderId 与 clientOrderId 二选一。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| symbol * | string | 交易对(必填) |
| marketType | string | 市场类型 swap/spot(可选) |
| credentialId * | number | 交易所凭证 ID(必填) |
| clientOrderId | string | 客户端订单 ID(与 exchangeOrderId 二选一) |
| exchangeOrderId | string | 交易所订单 ID(与 clientOrderId 二选一) |
{
"name": "platform_cancel_order",
"title": "撤单",
"description": "【持仓与执行】撤销未成交挂单(写操作,需确认):exchangeOrderId 与 clientOrderId 二选一。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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 二选一)"
}
}
},
"annotations": {
"title": "撤单",
"readOnlyHint": false,
"destructiveHint": true
}
}【持仓与执行】平仓(写操作,需确认):按 credentialId + symbol 平掉持仓;closeScope=full 全平,传 size 时部分平。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| size | number | 平仓数量(可选,缺省全平) |
| symbol * | string | 交易对(必填) |
| closeScope | string | full=全平(可选,默认 full) |
| marketType | string | 市场类型 swap/spot(可选) |
| credentialId * | number | 交易所凭证 ID(必填) |
{
"name": "platform_close_position",
"title": "平仓",
"description": "【持仓与执行】平仓(写操作,需确认):按 credentialId + symbol 平掉持仓;closeScope=full 全平,传 size 时部分平。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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(必填)"
}
}
},
"annotations": {
"title": "平仓",
"readOnlyHint": false,
"destructiveHint": true
}
}【持仓与执行】一键全平(写操作,需确认):默认 dryRun=true 只预演;确认执行须显式 dryRun=false。可按凭证/交易对/市场类型限定,marketType=spot 时清现货余额。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | 仅预演(默认 true) |
| symbol | string | 交易对(可选) |
| marketType | string | swap/spot(可选) |
| credentialId | number | 凭证 ID(可选,缺省全部) |
{
"name": "platform_flat_all",
"title": "一键全平",
"description": "【持仓与执行】一键全平(写操作,需确认):默认 dryRun=true 只预演;确认执行须显式 dryRun=false。可按凭证/交易对/市场类型限定,marketType=spot 时清现货余额。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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(可选,缺省全部)"
}
}
},
"annotations": {
"title": "一键全平",
"readOnlyHint": false,
"destructiveHint": true
}
}【账户与额度】更新账户级风控配置(写操作,需确认):config 为要修改的字段对象(如日亏损上限、单笔上限)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| config * | object | 风控字段对象(必填) |
{
"name": "platform_set_risk_config",
"title": "修改风控配置",
"description": "【账户与额度】更新账户级风控配置(写操作,需确认):config 为要修改的字段对象(如日亏损上限、单笔上限)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"config"
],
"properties": {
"config": {
"type": "object",
"description": "风控字段对象(必填)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
},
"annotations": {
"title": "修改风控配置",
"readOnlyHint": false,
"destructiveHint": true
}
}【账户与额度】更新账户熔断配置(写操作,需确认):enabled 开关,可设日亏损上限、连续失败次数、gas 尖峰上限。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| enabled | boolean | 是否启用熔断 |
| alertChannels | string | 告警通道(可选) |
| gasSpikeLimitUsd | number | gas 尖峰上限 USD(可选) |
| dailyLossLimitUsd | number | 日亏损上限 USD(可选) |
| consecutiveFailLimit | number | 连续失败次数上限(可选) |
{
"name": "platform_set_breaker",
"title": "设置熔断",
"description": "【账户与额度】更新账户熔断配置(写操作,需确认):enabled 开关,可设日亏损上限、连续失败次数、gas 尖峰上限。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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": "连续失败次数上限(可选)"
}
}
},
"annotations": {
"title": "设置熔断",
"readOnlyHint": false,
"destructiveHint": true
}
}【账户与额度】人工解除熔断(写操作,需确认):须提供 recoveryCode;解除后策略恢复实盘执行。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | Type | Description |
|---|---|---|
| recoveryCode * | string | 解除码(必填) |
{
"name": "platform_reset_breaker",
"title": "解除熔断",
"description": "【账户与额度】人工解除熔断(写操作,需确认):须提供 recoveryCode;解除后策略恢复实盘执行。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"recoveryCode"
],
"properties": {
"recoveryCode": {
"type": "string",
"description": "解除码(必填)"
}
}
},
"annotations": {
"title": "解除熔断",
"readOnlyHint": false,
"destructiveHint": true
}
}【持仓与执行】链上 DEX 兑换(写操作,需确认,动用真实资金):钱包地址自动取本人智能账户,不接受任意地址;大额授权需 approvalToken(由平台签发)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | 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(可选,平台签发) |
{
"name": "platform_dex_swap",
"title": "链上兑换",
"description": "【持仓与执行】链上 DEX 兑换(写操作,需确认,动用真实资金):钱包地址自动取本人智能账户,不接受任意地址;大额授权需 approvalToken(由平台签发)。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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(可选,平台签发)"
}
}
},
"annotations": {
"title": "链上兑换",
"readOnlyHint": false,
"destructiveHint": true
}
}【策略】发起策略工厂运行(写操作,需确认):sourceType=llm(描述生成)/search(条件扫描)/optimize(优化现有策略,需 strategyId)。同一用户同时只允许一个运行。(cost: base 5 + 10/1k bars(>10000 部分 5/1k) + 1/1k tokens credits)(写操作,外部调用将以 apikey 身份直接执行)
| Parameter | 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 | 搜索预算(可选) |
| maxCandidates | number | 候选上限(可选) |
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| payment_token | string | 支付代币,默认 ETH |
| economicRationale * | string | 经济解释(必填,至少 10 字) |
| subscription_price | number | 订阅价格(可选) |
| live_observation_days | string | 实盘观察天数(可选;factory 来源需达到上架门槛) |
{
"name": "platform_publish_strategy",
"title": "发布策略",
"description": "【策略】提交策略审核(提交后进入 pending_review,不会直接上架)。name / category / agentCategory / code 必填;同时必须披露样本外结果 oos、搜索尝试次数 n_trials、经济解释 economicRationale(≥10 字)。live_observation_days 为实盘观察天数(可选;source=factory 来源时后端要求达到上架门槛)。strategy_id 可指定已有草稿提交。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"category",
"agentCategory",
"code",
"oos",
"n_trials",
"economicRationale"
],
"properties": {
"oos": {
"type": "object",
"description": "样本外结果(必填)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"code": {
"type": "string",
"description": "策略代码(必填)"
},
"name": {
"type": "string",
"description": "策略名称(必填)"
},
"params": {
"type": "object",
"description": "策略参数(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"category": {
"type": "string",
"description": "分类(必填)"
},
"n_trials": {
"type": "string",
"description": "搜索尝试次数(必填,≥1)"
},
"description": {
"type": "string",
"description": "策略描述(可选)"
},
"performance": {
"type": "object",
"description": "历史表现数据(可选)",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"strategy_id": {
"type": "number",
"description": "已有草稿 ID(可选,提交该草稿)"
},
"agentCategory": {
"type": "string",
"description": "应用类别(必填,AGENT_CATEGORIES 之一,如 quant-trading)"
},
"payment_token": {
"type": "string",
"description": "支付代币,默认 ETH"
},
"economicRationale": {
"type": "string",
"description": "经济解释(必填,至少 10 字)"
},
"subscription_price": {
"type": "number",
"description": "订阅价格(可选)"
},
"live_observation_days": {
"type": "string",
"description": "实盘观察天数(可选;factory 来源需达到上架门槛)"
}
}
},
"annotations": {
"title": "发布策略",
"readOnlyHint": false,
"destructiveHint": true
}
}{
"name": "platform_place_order",
"title": "下单",
"description": "【持仓与执行】真实下单(写操作,需确认,动用真实资金):credentialId 来自 platform_credentials,amount 为 USDT 名义金额;orderType=market|limit,限价单必填 price。执行前校验账号级「AI 实盘授权」,未开启一律拒绝。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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": "幂等键(可选,防重复下单)"
}
}
},
"annotations": {
"title": "下单",
"readOnlyHint": false,
"destructiveHint": true
}
}{
"name": "platform_factory_run",
"title": "运行策略工厂",
"description": "【策略】发起策略工厂运行(写操作,需确认):sourceType=llm(描述生成)/search(条件扫描)/optimize(优化现有策略,需 strategyId)。同一用户同时只允许一个运行。(cost: base 5 + 10/1k bars(>10000 部分 5/1k) + 1/1k tokens credits)(写操作,外部调用将以 apikey 身份直接执行)",
"inputSchema": {
"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": "候选上限(可选)"
}
}
},
"annotations": {
"title": "运行策略工厂",
"readOnlyHint": false,
"destructiveHint": true
}
}