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

3.3 KiB
Raw Blame History

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

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


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

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