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

69 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 港股复权因子
----
接口hk_adjfactor
描述:获取港股每日复权因子数据,每天滚动刷新
限量单次最大6000行数据可以根据日期循环
权限:本接口是在开通港股日线权限后自动获取权限,权限请参考[权限说明文档](https://tushare.pro/document/1?doc_id=290)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | N | 股票代码
trade_date | str | N | 交易日期格式YYYYMMDD下同
start_date | str | N | 开始日期
end_date | str | N | 结束日期
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
ts_code | str | Y | 股票代码
trade_date | str | Y | 交易日期
cum_adjfactor | float | Y | 累计复权因子
close_price | float | Y | 收盘价
<br>
<br>
**接口示例**
```python
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')
```
<br>
<br>
**数据示例**
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