跳到主要内容

研究问题详情

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编码

响应

响应 dataProblemView

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

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"
}