skills/tushare-data-1.0.5/references/数据接口/宏观经济/国际宏观/美国利率/国债实际收益率曲线利率.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

1.7 KiB
Raw Permalink Blame History

国债实际收益率曲线利率


接口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