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.5 KiB
Raw Permalink Blame History

国债长期利率


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



输入参数

名称 类型 必选 描述
date str N 日期
start_date str N 开始日期
end_date str N 结束日期
fields str N 指定字段


输出参数

名称 类型 默认显示 描述
date str Y 日期
ltc float Y 收益率 LT COMPOSITE (>10 Yrs)
cmt float Y 20年期CMT利率(TREASURY 20-Yr CMT)
e_factor float Y 外推因子EXTRAPOLATION FACTOR


接口调用


pro = ts.pro_api()

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


#获取5年期和20年期数据
df = pro.us_tltr(start_date='20180101', end_date='20200327', fields='ltc,cmt')


数据样例

          date   ltc   cmt e_factor
0     20200327  1.19  1.09     None
1     20200326  1.32  1.20     None
2     20200325  1.35  1.23     None
3     20200324  1.30  1.19     None
4     20200323  1.25  1.12     None
...        ...   ...   ...      ...
1995  20120404  2.98  3.02     None
1996  20120403  3.02  3.07     None
1997  20120402  2.96  3.00     None
1998  20120330  2.96  3.00     None
1999  20120329  2.89  2.93     None