研究问题详情
GET
/research/problems/{code}在线调试GET https://api.shengkezhi.com/open/v1/research/problems/{code}等效 curl
curl "https://api.shengkezhi.com/open/v1/research/problems/{code}" \
-H "Authorization: Bearer sk_xxx"GET /research/problems/{code} — 研究问题详情。
需在请求头携带 Authorization: Bearer sk_xxx。
路径参数
| 参数 | 必填 | 说明 |
|---|---|---|
code | 是 | 编码 |
响应
响应 data — ProblemView
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | string | ✔ | 研究问题编号,后端按内容哈希生成,格式 前缀_PROBLEM_HASH。 |
dataset | string | ✔ | 数据源,future、etf 或 stock。 |
description | string | ✔ | 研究问题描述。 |
editable | boolean | ✔ | 是否可删除,仅用户自定义问题为 true,内置问题为 false。 |
freq | string | ✔ | K 线周期,如 日线、60分钟 等。 |
name | string | ✔ | 研究问题名称。 |
problem_type | string | ✔ | 研究问题类型枚举,TimeSeriesProblem 或 CrossSectionalProblem。 |
source | string | ✔ | 数据来源,builtin 表示内置问题,user 表示用户自定义问题。 |
symbols | string[] | ✔ | 合约或标的代码列表。 |
time_segments | Seg[]|null | 时间段划分(训练与验证区间);仅详情接口返回,列表项省略该字段。 | |
type_label | string | ✔ | 问题类型中文标签,如 时序择时 或 截面多空。 |
P2 · 因子库概览
调用示例
curl "https://api.shengkezhi.com/open/v1/research/problems/FTS_PROBLEM_8C7C30" -H "Authorization: Bearer sk_xxx"
{
"code": 0,
"data": {
"code": "FTS_PROBLEM_8C7C30",
"dataset": "future",
"description": "基于原油及相关能化品种日线",
"editable": true,
"freq": "日线",
"name": "原油系择时",
"problem_type": "TimeSeriesProblem",
"source": "user",
"symbols": [
"SEsc9001",
"SEnr9001"
],
"time_segments": [
{
"edt": "20190101",
"name": "训练集A段",
"sdt": "20170101"
},
{
"edt": "20210101",
"name": "训练集B段",
"sdt": "20190101"
},
{
"edt": "20230101",
"name": "训练集",
"sdt": "20170101"
},
{
"edt": "20230101",
"name": "训练集C段",
"sdt": "20210101"
},
{
"edt": "20250101",
"name": "后置验证",
"sdt": "20230101"
}
],
"type_label": "时序择时"
},
"msg": "ok"
}