跳到主要内容

研究问题详情

GET/research/problems/{code}在线调试
GET https://api.shengkezhi.com/open/v1/research/problems/STS_QS_LEADERS
等效 curl
curl "https://api.shengkezhi.com/open/v1/research/problems/STS_QS_LEADERS" \
  -H "Authorization: Bearer sk_xxx"

GET /research/problems/{code} — 研究问题详情。

需在请求头携带 Authorization: Bearer sk_xxx

请求参数

参数位置类型必填默认值说明
codepathstring-研究问题编码

响应 data

字段类型必填说明
codestring研究问题编号,后端按内容哈希生成,格式 前缀_PROBLEM_HASH
datasetstring数据源,futureetfstock
descriptionstring研究问题描述。
editableboolean是否可删除;workspace 中的问题均为 true
freqstringK 线周期,如 日线60分钟 等。
namestring研究问题名称。
problem_typestring研究问题类型枚举,TimeSeriesProblemCrossSectionalProblem
sourcestring数据来源,builtin(预置)或 user(用户自定义)。
symbolsstring[]合约或标的代码列表。
time_segmentsSeg[] | null时间段划分(训练与验证区间);仅详情接口返回,列表项省略该字段。
type_labelstring问题类型中文标签,如 时序择时截面多空

Seg 字段

字段类型必填说明
namestring时间段名称,取自必需段之一,如 训练集A段训练集后置验证
sdtstring时间段起始日期,格式 YYYYMMDD,不得晚于 20250701
edtstring时间段结束日期,格式 YYYYMMDD,不得晚于 20250701

调用示例

curl -X GET "https://api.shengkezhi.com/open/v1/research/problems/STS_QS_LEADERS" \
-H "Authorization: Bearer sk_xxx"
{
"code": 0,
"msg": "ok",
"data": {
"code": "STS_QS_LEADERS",
"name": "券商龙头时序研究",
"problem_type": "TimeSeriesProblem",
"type_label": "时序择时",
"description": "A 股券商板块龙头:中信证券,国泰海通,东方财富,中信建投,华泰证券",
"freq": "日线",
"dataset": "stock",
"symbols": [
"600030.SH",
"601211.SH",
"601066.SH"
],
"source": "user",
"editable": true,
"time_segments": [
{
"name": "训练集A段",
"sdt": "20170101",
"edt": "20190101"
},
{
"name": "训练集B段",
"sdt": "20190101",
"edt": "20210101"
},
{
"name": "训练集C段",
"sdt": "20210101",
"edt": "20230101"
}
]
}
}```