oclaw/runtime/skills/tushare-finance/reference/接口文档/国债实际收益率曲线利率.md
oliver d1bcc4debe feat: multimodal image clients, workspaces, Tushare skill, test fixes
- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path.
- Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment.
- Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata).
- Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper.
- Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-10 04:41:42 +08:00

2.2 KiB
Raw Blame History

国债实际收益率曲线利率

文档ID: 220 原始链接: https://tushare.pro/document/2?doc_id=220


国债实际收益率曲线利率

接口:us_trycr描述:国债实际收益率曲线利率限量:单次最大可获取2000行数据,可循环获取权限:用户积累120积分可以使用,积分越高频次越高。具体请参阅积分获取办法

输入参数

名称 类型 必选 描述
date str N 日期 (YYYYMMDD格式,下同)
start_date str N 开始日期
end_date str N 结束日期
fields str N 指定输出字段
输出参数
名称 类型 默认显示 描述
date str Y 日期
y5 float Y 5年期
y7 float Y 7年期
y10 float Y 10年期
y20 float Y 20年期
y30 float Y 30年期
接口调用

pro = ts.pro_api()

df = pro.us_trycr(start_date='20180101', end_date='20200327')


#获取5年期和20年期数据
df = pro.us_trycr(start_date='20180101', end_date='20200327', fields='y5,y20')

数据样例

          date     y5     y7    y10    y20    y30
0     20200327  -0.13  -0.20  -0.22  -0.12  -0.03
1     20200326  -0.21  -0.24  -0.24  -0.14  -0.05
2     20200325  -0.13  -0.18  -0.19  -0.09   0.00
3     20200324  -0.03  -0.11  -0.13  -0.09  -0.07
4     20200323   0.01  -0.03  -0.04  -0.02  -0.01
...        ...    ...    ...    ...    ...    ...
1995  20120404  -0.91  -0.46  -0.05   0.62   0.94
1996  20120403  -0.94  -0.48  -0.06   0.62   0.94
1997  20120402  -1.01  -0.55  -0.14   0.56   0.89
1998  20120330  -0.98  -0.53  -0.09   0.61   0.93
1999  20120329  -0.98  -0.53  -0.13   0.55   0.87