Aller au contenu
GET /v1/quote

Live quote for one or more HKEX stocks

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hkex-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/hkex-api/v1/quote" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hkex-api/v1/quote", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hkex-api/v1/quote");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/hkex-api/v1/quote",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "The live quote for one or more HKEX-listed stocks — price, open/high/low, previous close, change, volume, turnover, turnover rate, P/E and market cap (in 100M HKD) each, with the Chinese and English names. Pass codes (the stock number, comma-separate up to 10, e.g. 00700,09988 for Tencent and Alibaba).",
        "count": 2,
        "quotes": [
            {
                "low": 462.8,
                "code": "00700",
                "high": 476.8,
                "name": "腾讯控股",
                "open": 475,
                "as_of": "2026/06/15 10:10:48",
                "price": 463.8,
                "change": 0.2,
                "volume": 6648252,
                "currency": "HKD",
                "pe_ratio": 16.97,
                "turnover": 3122964393.398,
                "english_name": "TENCENT",
                "market_cap_yi": 42243.0591,
                "turnover_rate": 3.02,
                "change_percent": 0.04,
                "previous_close": 463.6,
                "total_market_cap_yi": 42243.0591
            },
            {
                "low": 110.2,
                "code": "09988",
                "high": 113.2,
                "name": "阿里巴巴-W",
                "open": 113.1,
                "as_of": "2026/06/15 10:10:50",
                "price": 110.2,
                "change": 0,
                "volume": 21280760,
                "currency": "HKD",
                "pe_ratio": 18.03,
                "turnover": 2371530623.28,
                "english_name": "BABA-W",
                "market_cap_yi": 21150.7653,
                "turnover_rate": 2.72,
                "change_percent": 0,
                "previous_close": 110.2,
                "total_market_cap_yi": 21150.7653
            }
        ],
        "source": "HKEX (Tencent)"
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:51.506Z",
        "request_id": "ae4d9ea0-3789-412c-b737-7f7edf2806fe"
    },
    "status": "ok",
    "message": "Quote retrieved successfully",
    "success": true
}