Fundamental

A/H Premium

GEThttps://openapi.longbridge.com/v1/quote/ahpremium/klines

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

Get the A/H premium ratio for dual-listed stocks comparing A-share and H-share prices.

>_ CLI
longbridge ah-premium 939.HK
longbridge ah-premium 0939.HK

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredSecurity symbol, e.g. `600519.SH` or `000001.SZ`.
line_typestringRequiredCandlestick period, e.g. `day`, `week`, `month`.
line_numintegerRequiredNumber of candlesticks to return.

Response

Response properties

NameTypeRequiredDescription
klinesobject[]RequiredA/H premium daily kline records
└ timestampstringOptionalUnix timestamp
└ ahpremium_ratestringOptionalA/H premium rate
└ apricestringOptionalA-share price (CNY)
└ apreclosestringOptionalA-share previous close (CNY)
└ hpricestringOptionalH-share price (HKD)
└ hpreclosestringOptionalH-share previous close (HKD)
└ currency_ratestringOptionalCNH/HKD exchange rate
└ price_spreadstringOptionalPrice spread

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "klines": [
      {
        "ahpremium_rate": "0.1523",
        "apreclose": "24.80",
        "aprice": "25.10",
        "currency_rate": "0.8920",
        "hpreclose": "19.20",
        "hprice": "19.50",
        "price_spread": "1.23",
        "timestamp": "1778198400"
      }
    ]
  }
}

Error code

See the Error Codes page for the full list of error codes.