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

86 lines
2.9 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_daily可以通过[**数据工具**](https://tushare.pro/webclient/)调试和查看数据。
描述获取港股每日增量和历史行情每日18点左右更新当日数据
限量单次最大提取5000行记录可多次提取总量不限制
积分:本接口单独开权限,具体请参阅[权限说明](https://tushare.pro/document/1?doc_id=290)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | N | 股票代码
trade_date | str | N | 交易日期
start_date | str | N | 开始日期
end_date | str | N | 结束日期
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
ts_code | str | Y | 股票代码
trade_date | str | Y | 交易日期
open | float | Y | 开盘价
high | float | Y | 最高价
low | float | Y | 最低价
close | float | Y | 收盘价
pre_close | float | Y | 昨收价
change | float | Y | 涨跌额
pct_chg | float | Y | 涨跌幅(%)
vol | float | Y | 成交量(股)
amount | float | Y | 成交额(元)
<br>
<br>
**接口示例**
```python
pro = ts.pro_api()
#获取单一股票行情
df = pro.hk_daily(ts_code='00001.HK', start_date='20190101', end_date='20190904')
#获取某一日所有股票
df = pro.hk_daily(trade_date='20190904')
```
<br>
<br>
**数据示例**
ts_code trade_date open ... pct_chg vol amount
0 00001.HK 20190904 66.90 ... 3.45 8212577.0 5.619534e+08
1 00001.HK 20190903 66.40 ... -0.52 3905632.0 2.598397e+08
2 00001.HK 20190902 67.50 ... -0.71 6547427.0 4.397896e+08
3 00001.HK 20190830 69.60 ... -0.73 7731576.0 5.299299e+08
4 00001.HK 20190829 69.05 ... 0.36 7902900.0 5.428812e+08
5 00001.HK 20190828 69.05 ... -1.08 8973397.0 6.183098e+08
6 00001.HK 20190827 70.50 ... 0.00 6286907.0 4.359607e+08
7 00001.HK 20190826 69.40 ... -1.91 8054636.0 5.554714e+08
8 00001.HK 20190823 70.45 ... -0.42 5449506.0 3.863469e+08
9 00001.HK 20190822 71.50 ... -0.49 5299641.0 3.750118e+08
10 00001.HK 20190821 70.00 ... 1.71 7045145.0 5.019940e+08
11 00001.HK 20190820 70.60 ... 0.21 7844342.0 5.522724e+08
12 00001.HK 20190819 68.30 ... 3.02 10498548.0 7.332229e+08
13 00001.HK 20190816 66.30 ... 2.03 8311992.0 5.599711e+08
14 00001.HK 20190815 64.40 ... 2.23 9695771.0 6.378087e+08
15 00001.HK 20190814 66.25 ... -1.29 10816336.0 7.058398e+08
16 00001.HK 20190813 67.00 ... -2.58 12104207.0 8.037089e+08
17 00001.HK 20190812 67.35 ... -0.37 5775321.0 3.921880e+08
18 00001.HK 20190809 67.65 ... -0.15 5996124.0 4.078781e+08
19 00001.HK 20190808 67.65 ... 0.52 8208977.0 5.587438e+08
20 00001.HK 20190807 68.20 ... -1.31 8215702.0 5.567659e+08