实盘策略周期收益
GET
/research/strategies/{code}/periodic在线调试GET https://api.shengkezhi.com/open/v1/research/strategies/{code}/periodic等效 curl
curl "https://api.shengkezhi.com/open/v1/research/strategies/{code}/periodic" \
-H "Authorization: Bearer sk_xxx"GET /research/strategies/{code}/periodic — 实盘策略周期收益。
需在请求头携带 Authorization: Bearer sk_xxx。
路径参数
| 参数 | 必填 | 说明 |
|---|---|---|
code | 是 | 编码 |
响应
响应 data — StrategyPeriodic
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
monthly | PeriodicMonthly | ✔ | 月度收益:年份与月份轴加上逐年逐月的收益矩阵,喂月度热力图。 |
yearly | map<string, number> | ✔ | 年度收益:年份字符串到该年累计收益的映射,喂年度收益柱图。 |
调用示例
curl "https://api.shengkezhi.com/open/v1/research/strategies/TS_1D_4E70093D/periodic" -H "Authorization: Bearer sk_xxx"
{
"code": 0,
"data": {
"monthly": {
"matrix": [
[
0.02,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
]
],
"months": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
],
"years": [
2026
]
},
"yearly": {
"2026": 0.02
}
},
"msg": "ok"
}