hk-fundamental

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

HK Fundamental — 港股基础数据

HK Fundamental — 港股基础数据

所有接口均为 V2 版本(
/api/v2/...
)。
所有接口均为 V2 版本(
/api/v2/...
)。

Curl Setup

Curl 配置

bash
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")

bash
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")

代码格式规则

代码格式规则

规则
日期格式
YYYYMMDD

规则
日期格式
YYYYMMDD

端点详情

接口端点详情

GET /api/v2/hkstock/symbols — 港股列表

GET /api/v2/hkstock/symbols — 港股列表

ParameterTypeRequiredDescription
listStatus
stringNo
L
(上市),
D
(退市)
参数类型是否必填描述
listStatus
string
L
(上市),
D
(退市)

GET /api/v2/hkstock/trade-cal — 港股交易日历

GET /api/v2/hkstock/trade-cal — 港股交易日历

ParameterTypeRequiredDescription
startDate
stringNoYYYYMMDD
endDate
stringNoYYYYMMDD
limit
intNo1-5000 (默认 100)

参数类型是否必填描述
startDate
stringYYYYMMDD
endDate
stringYYYYMMDD
limit
int1-5000 (默认 100)

调用示例

调用示例

bash
undefined
bash
undefined

港股列表

港股列表

curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/symbols?listStatus=L"
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/symbols?listStatus=L"

港股交易日历

港股交易日历

curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/trade-cal?startDate=20240101&endDate=20240630"

---
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/trade-cal?startDate=20240101&endDate=20240630"

---

错误排查

错误排查

错误原因修复
400日期格式错误
YYYYMMDD
错误码原因修复方案
400日期格式错误使用
YYYYMMDD
格式