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

71 lines
2.1 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.

## 港股实时日线
----
接口rt_hk_k
描述获取港股实时日k线行情支持按股票代码及股票代码通配符一次性提取全部股票实时日k线行情
限量单次最大可提取5000条数据
积分:本接口是单独开权限的数据,单独申请权限请参考[权限列表](https://tushare.pro/document/1?doc_id=290)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | Y | 支持通配符方式e.g. 00001.HK、02*.HK
<br>
ts_code代码一定要带<font color="red">.HK</font>后缀
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
ts_code | str | Y | 股票代码
pre_close | float | Y | 昨收价
close | float | Y | 收盘价
high | float | Y | 最高价
open | float | Y | 开盘价
low | float | Y | 最低价
vol | float | Y | 成交量(股)
amount | float | Y | 成交额(元)
<br>
<br>
**接口示例**
```python
#获取特定股票实时日线
df = pro.rt_hk_k(ts_code='00001.HK')
#获取今日开盘以来部分港股实时日线
df = pro.rt_hk_k(ts_code='01*.HK')
```
<br>
<br>
**数据示例**
ts_code pre_close close high open low vol amount
0 01508.HK 1.040 1.030 1.050 1.040 1.030 14971000.0 15564320.00
1 01314.HK 0.210 0.211 0.211 0.210 0.210 40000.0 8420.00
2 01848.HK 3.940 3.910 3.950 3.940 3.890 300500.0 1176380.00
3 01150.HK 0.091 0.103 0.106 0.106 0.100 45000.0 4580.00
4 01875.HK 1.860 1.970 1.970 1.930 1.890 164000.0 316064.00
.. ... ... ... ... ... ... ... ...
746 01653.HK 0.260 0.000 0.000 0.000 0.000 0.0 0.00
747 01729.HK 5.440 5.790 5.800 5.440 5.380 6778621.0 37845706.87
748 01608.HK 0.290 0.285 0.290 0.290 0.285 142000.0 41170.00
749 01247.HK 1.700 1.700 1.750 1.740 1.700 120400.0 206708.00
750 01878.HK 1.890 1.900 1.950 1.900 1.840 191100.0 362691.00