agentsclimarketplace

Eastmoney hk index daily kline

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/eastmoney-hk-index-daily-kline

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill eastmoney-hk-index-daily-kline

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

查询东财港股指数日K线(恒生指数 HSI / 国企指数 HSCEI / 恒生科技 HSTECH 等):开高低收、成交量、成交额、振幅、涨跌幅、涨跌额、换手率。按指数代码/交易日/日期区间查询。Use when user asks about 港股指数K线, 恒生指数走势, 国企指数日线, 恒生科技指数, HK index kline, HSI/HSCEI/HSTECH, eastmoney-hk-index-daily-kline. 数据源东方财富。

SKILL.md

3.9 KB, as published. Nobody here has run it

查询东财港股指数日 K 线

接口说明

项目说明
接口名称对外接口-查询东财港股指数日K线
匹配键eastmoney-hk-index-daily-kline
外部接口GET /api/v1/market/data/eastmoney-hk-index-daily-kline
请求方式GET
适用场景查询港股指数(恒生、国企、恒生科技等)日 K 线:开高低收、成交量、成交额、振幅、涨跌幅、涨跌额、换手率。数据源东方财富,ClickHouse em_hk_index_daily_kline

请求参数

参数名类型是否必填描述取值示例备注
index_codestring指数代码HSIHSI/HSCEI/HSTECH 等;不传返回全部指数
trade_datestring交易日2026-06-15YYYY-MM-DD;与 start_date/end_date 互斥
start_datestring区间起始日2026-06-01YYYY-MM-DD;需与 end_date 同时提供
end_datestring区间结束日2026-06-15YYYY-MM-DD;需与 start_date 同时提供
page / page_sizeint分页1 / 50默认 1 / 50,page_size 最大 200
模式必填参数说明
按指数历史index_code指定指数全部历史日 K(最常用)
按交易日全市场trade_date某交易日全部港股指数
按指数+区间index_code + start_date + end_date指定指数区间走势

执行方式

# 恒生指数 HSI 最近日K
python scripts/handler.py --index_code HSI --page 1 --page_size 5
# 某交易日全部港股指数
python scripts/handler.py --trade_date 2026-06-15 --page 1 --page_size 50
# 国企指数 HSCEI 区间走势
python scripts/handler.py --index_code HSCEI --start_date 2026-06-01 --end_date 2026-06-15

响应结构(信封:code/message/data.records)

{
  "code": 0,
  "message": "success",
  "data": {
    "pageNum": 1, "pageSize": 5, "total": 3, "pages": 1,
    "records": [
      { "index_code": "HSCEI", "index_name": "恒生能源业指数", "secid": "124.HSCIEN",
        "trade_date": "2026-06-15", "open": "14439.65", "close": "14293.61",
        "high": "14650.26", "low": "14265.58", "volume": "629796496", "amount": "7337176832",
        "amplitude": "2.61", "change_pct": "-2.95", "change_amt": "-435.09", "turnover": "0" }
    ]
  }
}

⚠️ 当前页数据在 data.records不是顶层数组(与其它 skill 的 items 不同)。

records 字段

index_codeindex_namesecid(东财 secid 如 124.HSI)、trade_dateopen/close/high/lowvolume(成交量)、amount(成交额)、amplitude(振幅%)、change_pct(涨跌幅%)、change_amt(涨跌额)、turnover(换手率%)。所有数值为字符串,无数据为空字符串 ""

注意事项

  • 响应信封不同{code, message, data:{pageNum,pageSize,total,pages,records}},数据在 data.records
  • 数值字段为字符串;无数据为空字符串(非 null)。
  • change_amt 是涨跌额(绝对值),change_pct 是涨跌幅(%),含义不同。
  • volume/amount 为原始口径;部分指数(如波幅指数 VHSI)成交量为 0 属正常。
  • 全量查询数据量大,建议至少传 index_codetrade_date
  • 底表 ReplacingMergeTree,带 FINAL 去重,同一指数同一交易日只返回最新一条。

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.