Loading...
Loading...
Real-time Hong Kong stock market query. Batch obtain real-time quotes of HKEX securities. Triggered when users ask about "Tencent real-time price", "Hong Kong stock real-time market", "HK quote", "HKEX current price".
npx skill4agent add hubblevision/hubble-data-service-skill hk-realtime-quoteAll interfaces are V2 version ()./api/v2/...
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")| Rule | Value |
|---|---|
| Parameter Name | |
| Code Format | Pure numbers, no |
| Single Request Limit | 500 codes |
| Separator | English comma |
| Example | Description |
|---|---|
| Tencent Holdings |
| Alibaba |
| Baidu |
00700.HKHK00700| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Stock codes, separated by commas (e.g. |
| string | No | Return fields, separated by commas (returns all if not provided) |
# Query a single stock
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/securities?codes=00700"
# Batch query
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/securities?codes=00700,09988,09888"
# Query only specified fields
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/securities?codes=00700&fields=price,chgPct,volume"
# Parallel query for multiple stocks
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/securities?codes=00700" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/hkstock/securities?codes=09988" &
wait{
"success": true,
"data": {
"00700": {
"name": "Tencent Holdings",
"price": 375.20,
"chgPct": -0.53,
"volume": 12000000
}
},
"timestamp": 1710865200000
}| Error | Cause | Fix |
|---|---|---|
| Returns empty data | | Use pure numbers: |
| 400 | Invalid API key | Contact administrator to check API Key |
| Partial codes have no data | Code does not exist | Verify if the Hong Kong stock code is correct |