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

股票周/月线行情(每日更新)


接口stk_weekly_monthly 描述:股票周/月线行情(每日更新) 限量单次最大6000,可使用交易日期循环提取,总量不限制 积分用户需要至少2000积分才可以调取具体请参阅积分获取办法

输入参数

名称 类型 必选 描述
ts_code str N TS代码
trade_date str N 交易日期(格式YYYYMMDD每周或每月最后一天的日期
start_date str N 开始交易日期
end_date str N 结束交易日期
freq str Y 频率week周month月

输出参数

名称 类型 默认显示 描述
ts_code str Y 股票代码
trade_date str Y 交易日期
end_date str Y 计算截至日期
freq str Y 频率(周week,月month)
open float Y (周/月)开盘价
high float Y (周/月)最高价
low float Y (周/月)最低价
close float Y (周/月)收盘价
pre_close float Y 上一(周/月)收盘价
vol float Y (周/月)成交量
amount float Y (周/月)成交额
change float Y (周/月)涨跌额
pct_chg float Y (周/月)涨跌幅(未复权,如果是复权请用 通用行情接口)


接口用法


pro = ts.pro_api()

#获取20251024这周周线数据
df=pro.stk_weekly_monthly(trade_date='20251024',freq='week')

#获取202510月月线数据
df=pro.stk_weekly_monthly(trade_date='20251031',freq='month')




数据样例

		    ts_code trade_date  end_date  ...      amount  change  pct_chg
	0     600137.SH   20251024  20251023  ...   429206.49    2.18    11.93
	1     600236.SH   20251024  20251023  ...   510772.77    0.25     3.49
	2     301262.SZ   20251024  20251023  ...  1140060.52    5.69    24.69
	3     600114.SH   20251024  20251023  ...  1786514.91   -0.41    -1.39
	4     301509.SZ   20251024  20251023  ...   225023.73    0.47     1.34
	...         ...        ...       ...  ...         ...     ...      ...
	5428  920061.BJ   20251024  20251023  ...   153251.70   -0.51    -1.47
	5429  920100.BJ   20251024  20251023  ...   674924.90    5.01     7.45
	5430  603196.SH   20251024  20251023  ...   316237.47    0.85     3.69
	5431  603599.SH   20251024  20251023  ...   370038.63   -0.13    -1.10
	5432  301195.SZ   20251024  20251023  ...   186490.18    1.86     5.66