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

2.2 KiB
Raw Blame History

港股复权因子

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


港股复权因子

接口:hk_adjfactor描述:获取港股每日复权因子数据,每天滚动刷新限量:单次最大6000行数据,可以根据日期循环权限:本接口是在开通港股日线权限后自动获取权限,权限请参考权限说明文档

输入参数

名称 类型 必选 描述
ts_code str N 股票代码
trade_date str N 交易日期(格式:YYYYMMDD,下同)
start_date str N 开始日期
end_date str N 结束日期
输出参数
名称 类型 默认显示 描述
ts_code str Y 股票代码
trade_date str Y 交易日期
cum_adjfactor float Y 累计复权因子
close_price float Y 收盘价
接口示例

pro = ts.pro_api()

#获取港股单一股票复权因子
df = pro.hk_adjfactor(ts_code='00001.HK', start_date='20240101', end_date='20251022')

#获取港股某一日全部股票的复权因子
df = pro.hk_adjfactor(trade_date='20251031')

数据示例

       ts_code trade_date cum_adjfactor close_price
0     00380.HK   20251031      1.000000    0.150000
1     00698.HK   20251031      1.000000    4.610000
2     00865.HK   20251031      1.000000    0.038000
3     08111.HK   20251031      1.000000    0.068000
4     00039.HK   20251031      1.000000    0.088000
...        ...        ...           ...         ...
4086  01384.HK   20251031      1.000000  113.700000
4087  02954.HK   20251031      1.000000    0.265000
4088  03460.HK   20251031      1.000000    7.440000
4089  83460.HK   20251031      1.000000    6.840000
4090  09460.HK   20251031      1.000000    0.960000