Discover/hkex.com.hk API
live

hkex.com.hk APIhkex.com.hk

Access real-time HKEX quotes, Hang Seng indices, company announcements, historical chart data, and daily quotation reports via a simple REST API.

Endpoints
7
Updated
10d ago
Try it

No input parameters required.

api.parse.bot/scraper/cd225318-0b93-40b5-9d1e-08aa24b02127/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/cd225318-0b93-40b5-9d1e-08aa24b02127/get_market_indices' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 7 totalclick to expand

Retrieve real-time major market indices from HKEX, including Hang Seng Index, HSCEI, Hang Seng TECH Index, and others.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "indices": "array of index objects with ric, nm_l, ls (last price), nc (net change), pc (percent change), date, tm (time)",
    "responsecode": "string status code from upstream API (000 = success)"
  },
  "sample": {
    "data": {
      "indices": [
        {
          "hc": "26,111.84",
          "hi": "26,072.24",
          "lo": "25,734.16",
          "ls": "25,776.53",
          "nc": "-335.31",
          "op": "26,008.32",
          "pc": "-1.28",
          "tm": "16:08",
          "fut": true,
          "ric": ".HSI",
          "date": "30 Apr 2026",
          "nm_l": "Hang Seng Index",
          "nm_s": "Hang Seng Index"
        }
      ],
      "responsemsg": "",
      "responsecode": "000"
    },
    "status": "success"
  }
}

About the hkex.com.hk API

This API exposes 7 endpoints covering live Hong Kong Stock Exchange data, from real-time quotes for individual securities to market-wide index snapshots. The get_stock_quote endpoint returns over a dozen fields per stock including ISIN, chairman, listing date, P/E ratio, dividend yield, and a business summary. Other endpoints handle announcement retrieval, intraday and historical chart data, and the full Daily Quotations report for the Main Board.

Market Indices and Securities

The get_market_indices endpoint returns an array of index objects covering the Hang Seng Index, HSCEI, Hang Seng TECH Index, and others. Each object includes ric, nm_l (name), ls (last price), nc (net change), pc (percent change), and a timestamp. The get_securities_list endpoint returns the top 100 equities by turnover, with fields for symbol, name, last price, net/percent change, P/E ratio, yield, market cap, and currency — useful for building turnover-ranked dashboards or screening tables.

Stock Quotes and Charts

For individual securities, get_stock_quote accepts a symbol (e.g. 700 for Tencent, 9988 for Alibaba) and returns a quote object with open, high, low, close, and previous close alongside company profile fields: ISIN, sector classification, registrar, listing date, and a business summary paragraph. get_stock_chart_data returns OHLCV arrays ([timestamp_ms, open, high, low, close, volume, turnover]) for spans ranging from 1-day intraday (1-minute intervals via interval=0) to 1 year. Both span and interval parameters are optional integers passed as strings.

Announcements and Reports

The get_company_announcements endpoint queries HKEXnews for a given stock code and optional from_date/to_date range (format YYYYMMDD). Each result includes the announcement title, date, stock name, and a direct PDF link. The get_daily_quotations endpoint returns the full-text Daily Quotations report for the Main Board for a given trading date (format YYMMDD), covering market highlights, full quotation tables, and sales records. Only the main board type is currently supported.

Search

The search_stocks endpoint accepts a keyword or partial code and returns matching equities, warrants, CBBCs, and structured products. Each result includes stockId, a zero-padded code, and name. The more field indicates whether additional results exist beyond the current page.

Common use cases
  • Build a Hang Seng Index ticker using get_market_indices ls, nc, and pc fields.
  • Screen the top 100 HKEX equities by turnover using get_securities_list with P/E and market cap filters.
  • Display a full stock profile card with ISIN, sector, chairman, and business summary from get_stock_quote.
  • Plot intraday 1-minute OHLCV candlestick charts using get_stock_chart_data with span=0 and interval=0.
  • Monitor company filing activity by polling get_company_announcements with a date range and surfacing new PDF links.
  • Archive the HKEX Daily Quotations report text for a given trading session using get_daily_quotations.
  • Implement a securities search autocomplete using search_stocks results for equities, warrants, and CBBCs.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does HKEX have an official developer API?+
HKEX does not publish a general-purpose public developer API with open registration. Market data is distributed commercially through licensed vendors. This API provides structured access to data from the HKEX public web properties.
What does `get_stock_quote` return beyond the price?+
In addition to price fields (last, open, high, low, net change, percent change, previous close), the response includes company profile data: ISIN, sector classification, listing date, chairman name, registrar, P/E ratio, dividend yield, market cap, and a plain-text business summary.
Does `get_daily_quotations` cover the GEM board or only the Main Board?+
The endpoint currently supports only the Main Board (board=main). GEM board quotation reports are not covered. You can fork this API on Parse and revise it to add a GEM board endpoint.
Are derivatives, futures, or options data available through this API?+
Not currently. The API covers equity securities, indices, and structured products (warrants, CBBCs) surfaced through search_stocks and get_securities_list, but does not include HKEX derivatives or futures contract data. You can fork it on Parse and revise to add the missing endpoint.
How far back does `get_stock_chart_data` go, and what granularity is available?+
The span parameter supports 1 Day, 5 Days, 1 Month, 3 Months, 6 Months, YTD, and 1 Year. The 1-Day span supports 1-minute granularity via interval=0. Longer spans return daily-resolution data points as [timestamp_ms, open, high, low, close, volume, turnover] arrays.
Page content last updated . Spec covers 7 endpoints from hkex.com.hk.
Related APIs in FinanceSee all →
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
guba.eastmoney.com API
Access Chinese stock discussion posts and comments from Eastmoney's community platform to monitor investor sentiment, search board discussions, and retrieve detailed post information and stock board metadata. Get real-time insights into what traders are discussing about specific stocks through posts, replies, and board analytics.
blur.io API
Access NFT collection data on Blur.io, including floor prices, best bids, listed tokens, and recent activity. Authenticate with an Ethereum wallet to place collection bids and retrieve portfolio holdings.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
blackrock.com API
Access comprehensive BlackRock iShares ETF data to research fund performance, holdings, fees, and sector allocations, plus search and compare specific ETFs. Monitor investment details like distributions, key characteristics, and broad market indices all in one place.
morningstar.com.au API
Access comprehensive financial data for Australian stocks, ETFs, and managed funds including key metrics, valuations, dividends, and historical prices. Search securities, review company profiles and ownership details, and stay informed with market news and upcoming dividend information.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
HKEX API – Hong Kong Stock Exchange Data · Parse