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

2.5 KiB
Raw Blame History

短期国债利率


接口us_tbr 描述:获取美国短期国债利率数据 限量单次最大可获取2000行数据可循环获取 权限用户积累120积分可以使用积分越高频次越高。具体请参阅积分获取办法



输入参数

名称 类型 必选 描述
date str N 日期
start_date str N 开始日期(YYYYMMDD格式)
end_date str N 结束日期
fields str N 指定输出字段(e.g. fields='w4_bd,w52_ce')


输出参数

名称 类型 默认显示 描述
date str Y 日期
w4_bd float Y 4周银行折现收益率
w4_ce float Y 4周票面利率
w8_bd float Y 8周银行折现收益率
w8_ce float Y 8周票面利率
w13_bd float Y 13周银行折现收益率
w13_ce float Y 13周票面利率
w17_bd float Y 17周银行折现收益率数据从20221019开始
w17_ce float Y 17周票面利率数据从20221019开始
w26_bd float Y 26周银行折现收益率
w26_ce float Y 26周票面利率
w52_bd float Y 52周银行折现收益率
w52_ce float Y 52周票面利率


接口调用


pro = ts.pro_api()

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


#获取指定字段数据
df = pro.us_tbr(start_date='20180101', end_date='20200327', fields='w4_bd,w52_ce')



数据样例

          date  w4_bd  w4_ce  w8_bd  w8_ce w13_bd w13_ce w26_bd w26_ce w52_bd w52_ce
0     20200327   0.01   0.01   0.03   0.03   0.03   0.03   0.02   0.02   0.11   0.11
1     20200326   0.01   0.01   0.01   0.01  -0.05  -0.05   0.04   0.04   0.13   0.13
2     20200325  -0.04  -0.04  -0.03  -0.03  -0.04  -0.04   0.07   0.07   0.19   0.19
3     20200324   0.01   0.01   0.01   0.01   0.01   0.01   0.09   0.09   0.25   0.25
4     20200323   0.01   0.01   0.04   0.04   0.02   0.02   0.08   0.08   0.16   0.16
...        ...    ...    ...    ...    ...    ...    ...    ...    ...    ...    ...
1995  20120405   0.07   0.07   None   None   0.08   0.08   0.14   0.14   0.19   0.19
1996  20120404   0.08   0.08   None   None   0.08   0.08   0.14   0.14   0.19   0.19
1997  20120403   0.07   0.07   None   None   0.08   0.08   0.15   0.15   0.20   0.20
1998  20120402   0.05   0.05   None   None   0.08   0.08   0.14   0.14   0.17   0.17
1999  20120330   0.05   0.05   None   None   0.07   0.07   0.15   0.15   0.18   0.18