跳到主要内容

创建实盘价值审核任务

POST/research/experiments/{id}/strategies/{code}/promote在线调试
POST https://api.shengkezhi.com/open/v1/research/experiments/{id}/strategies/{code}/promote
等效 curl
curl "https://api.shengkezhi.com/open/v1/research/experiments/{id}/strategies/{code}/promote" \
  -H "Authorization: Bearer sk_xxx"

POST /research/experiments/{id}/strategies/{code}/promote — 创建实盘价值审核任务。

需在请求头携带 Authorization: Bearer sk_xxx

路径参数

参数必填说明
id执行 ID
code编码

请求体

请求体PromoteBody 自由形对象,无固定字段(键随数据而定)。

响应

响应 dataPromotionView

字段类型必填说明
created_atstring任务创建时间,RFC3339 UTC。
errorobject(自由形)|null任务失败时的错误详情 JSON(含错误码与消息),成功时为 null
experiment_idstring该策略所属实验的编号,对应 strategy_exploration 下的实验目录。
lifecyclestring|null策略在实盘跟踪中的生命周期阶段标签,由 promote 请求携带,可为空。
phasestring任务当前所处的细粒度阶段,如 realtime_runningcompletedfailed
promotion_idstringpromote 异步任务编号,格式为 promote_策略_时间戳_序号,后端自动生成。
realtimeobject(自由形)|nullFC(Function Compute)实盘回调透传的实时结果 JSON,任务尚未回调时为 null
registeredboolean提交 promote 时标记该策略是否已在实盘库登记。
statusPromotionStatuspromote 任务的整体状态,取值见 PromotionStatusrunningsucceededfailed)。
strategy_codestring被推入实盘跟踪的策略编号,如 TS_1D_4E70093D
updated_atstring任务最近一次更新时间,RFC3339 UTC。

调用示例

curl -X POST "https://api.shengkezhi.com/open/v1/research/experiments/experiment-20260724-001/strategies/TS_1D_4E70093D/promote" \
-H "Authorization: Bearer sk_xxx" \
-H "Content-Type: application/json" \
-d '{}'
{
"code": 0,
"msg": "promote 已发起",
"data": {
"promotion_id": "promote_TS_1D_4E70093D_001",
"experiment_id": "experiment-20260724-001",
"strategy_code": "TS_1D_4E70093D",
"status": "running",
"phase": "realtime_running",
"registered": true,
"lifecycle": "实盘",
"realtime": null,
"error": null,
"created_at": "2026-07-29T07:04:00Z",
"updated_at": "2026-07-29T07:04:00Z"
}
}