Fundamental

A/H Premium Intraday

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

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 intraday A/H premium timeseries data for a dual-listed security.

>_ CLI
longbridge ah-premium intraday 939.HK

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredHK-side symbol of a dual-listed stock, e.g. `939.HK`
daysintegerRequiredNumber of intraday trading days to return, e.g. `1`

Response

Response properties

NameTypeRequiredDescription
klinesobject[]RequiredIntraday A/H premium kline data
└ 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.