Hong Kong Stock Market API integration (HKEX · SSE · SZSE)

Protocol analysis, watchlist and portfolio export, and OpenFinance-style quote APIs for the mdr.stocks.hkg Android app and adjacent HK/China equity data sources.

From $300 · Pay-per-call available
OpenData · OpenFinance · Protocol analysis · HK & Mainland equity feeds

Turn the Hong Kong Stock Market app into a programmable data source for portfolios, research, and compliance tooling

The Hong Kong Stock Market app (package ID mdr.stocks.hkg) aggregates live quotes and indices from SEHK, Shanghai Stock Exchange and Shenzhen Stock Exchange, together with a user-maintained portfolio, ETF quotes, daily/weekly/monthly/yearly charts, and curated stock news. Every one of those surfaces — quotes, watchlists, chart series, ETF metadata, and news feeds — is structured data that can be extracted, normalized, and delivered as an API.

HSI, HSCEI, SSE Composite & sectoral quote APIs — snapshot plus OHLCV for Hang Seng Index, mid/small-cap indices, and key sectoral benchmarks mirrored in the app.
User portfolio & watchlist export — pull the customizable list the user builds in-app (adds, removals, cost basis hints) and push it into brokerage dashboards, spreadsheets, or accounting systems.
Chart time-series + ETF quotes — daily/weekly/monthly/yearly candles plus ETF ticker metadata for backtesting, factor research, or client-facing dashboards.

Feature modules exposed as API

Each module below maps a specific surface in the Hong Kong Stock Market app to a concrete endpoint we can deliver as runnable source code or hosted pay-per-call API. Every module cites the data it emits and at least one practical use case so you can scope integration quickly.

Quote snapshot API

Pulls the tabbed quote screen for stocks and indices. Returns last price, bid/ask (where available), change, change %, turnover, lot size, and trading status for any HKEX/SSE/SZSE ticker. Use case: feeding a self-built watchlist widget on an intranet portal without paying for a full HKEX Orion Market Data licence.

Index tracker API

Focused endpoint for HSI, HSCEI, HSTECH, SSE Composite, SZSE Component and sectoral indices surfaced in the app. Returns level, previous close, daily range, and percentage change. Use case: index-change notifications for wealth-management newsletters and Slack/Teams bots.

Portfolio & watchlist sync

Mirrors the “add / remove” behaviour of the customizable list plus portfolio performance. Endpoints: GET /watchlist, POST /watchlist/items, GET /portfolio/performance. Use case: sync a retail investor’s watchlist into a CRM or robo-advisor onboarding flow.

Historical chart-series API

Returns OHLCV arrays for day, week, month, and year windows, matching the full-screen charts in the app. Use case: powering a Python / R notebook for pair-trade backtests between dual-listed Hong Kong and Mainland names.

ETF metadata feed

Exchange-traded fund ticker list, quote snapshot, and latest NAV proxy. Use case: feeding a thematic ETF monitor into a family-office dashboard alongside OpenFinance bank balance data.

News ingestion endpoint

Pulls the “Support for News related to stocks” surface, returning headline, timestamp, related ticker(s), and source URL. Use case: sentiment analysis pipelines that tag news against portfolio holdings.

Data available for integration

Below is the OpenData inventory we can extract from the Hong Kong Stock Market Android app (and complementary public datafeeds where appropriate). Each row shows the source screen inside the app, granularity, and the typical downstream use. In 2024 HKEX published v1.14 of the Orion Market Data Platform (OMD-C) Developers Guide, and in September 2025 it released v2.0 of the OMD-C Mainland Market Data Hub binary spec — our wrappers are designed to interop with that licensed infrastructure where clients hold direct entitlements, and to degrade gracefully to delayed public quotes where they do not.

Data typeSource (app screen / feature)GranularityTypical downstream use
Equity quote snapshot“Stocks” tab, symbol detailPer ticker, per callWatchlist widgets, risk dashboards, broker comparison tools
Index level & change“Indices” tab (HSI, HSCEI, SSE, SZSE)Per index, near-real-timeMarket-open briefings, benchmark reporting, newsletters
User watchlistCustomizable list (add/remove)Per user, list-levelCRM enrichment, onboarding in robo-advisors, cross-device sync
Portfolio performancePortfolio tracking screenPer user, per holding, time-windowedAccounting export, tax reporting (HK salaries tax is simple, but capital activity still matters for audit)
Historical OHLCVFull-screen daily/weekly/monthly/yearly chartsDay / week / month / year candlesBacktesting, factor research, technical-analysis SaaS
ETF ticker & quoteETF quote sectionPer ETFThematic fund trackers, model-portfolio rebalancers
Stock news itemsNews feed per symbolHeadline + timestamp + tickerNLP sentiment, event studies, alerting bots

Typical integration scenarios

1. Family office research desk

Context: a boutique family office in Singapore covers Greater China equities and wants a single programmatic source for HKEX + SSE + SZSE. Data used: quote snapshot API, index tracker API, historical chart-series API. OpenFinance mapping: mirrors the OpenBanking “account information service” pattern — the end user authorizes read-only access to the app’s data surface, and we deliver a token-gated REST API that plugs directly into the firm’s internal research stack.

2. Robo-advisor onboarding with watchlist import

Context: a Hong Kong robo-advisor wants new clients to import their existing watchlist on sign-up rather than retyping tickers. Data used: portfolio & watchlist sync endpoints. OpenFinance mapping: consent-based data portability — the user opts in, we exchange app credentials for a short-lived token, pull the watchlist, and hand it to the advisor’s onboarding API in a normalized JSON shape compatible with FIX symbology.

3. Compliance-grade audit trail for a fund

Context: an SFC-licensed Type 9 asset manager needs evidence that staff watchlists are covered by the firm’s personal account dealing policy. Data used: watchlist export + timestamped delta log. OpenFinance mapping: aligned with SFC’s “Data Standards for Order Life Cycles” expectations — our wrapper emits append-only, timestamped records suitable for WINGS-style submission or internal e-discovery.

4. Chart-backed backtesting API

Context: a quant consultancy wants a uniform daily/weekly/monthly candle series across HK main board and A-shares. Data used: historical chart-series API, with adjustments for splits and dividends from a public reference. OpenFinance mapping: data-as-a-service endpoint, billed per call, so the consultancy pays only for the universe and window they actually read.

5. News-driven alert bot

Context: a corporate treasury team running an HKD/CNH cash book wants alerts when HSI constituents publish price-sensitive news. Data used: news ingestion endpoint + index tracker API as a cross-check. OpenFinance mapping: webhook-driven event stream that plugs into Microsoft Teams or PagerDuty; aligns with the OpenData idea of “push-based entitlements” rather than constant polling.

Technical implementation

We reverse-engineer the app’s client-server protocol (TLS pinning bypass under authorized test environments, request signing, session refresh) and expose a clean REST/JSON surface on top. Below are three representative snippets you will receive in the delivered source (Python / Node.js / Go available).

Quote snapshot endpoint

// GET /api/v1/hkstocks/quote
GET /api/v1/hkstocks/quote?symbol=0700.HK
Authorization: Bearer <ACCESS_TOKEN>

200 OK
{
  "symbol": "0700.HK",
  "name": "Tencent Holdings",
  "last": 312.40,
  "change": 2.60,
  "change_pct": 0.84,
  "turnover": 4123456789,
  "lot_size": 100,
  "exchange": "SEHK",
  "ts": "2025-10-14T06:02:11Z"
}

Historical candles (weekly)

// GET /api/v1/hkstocks/candles
GET /api/v1/hkstocks/candles
    ?symbol=000001.SZ&interval=1w&limit=52
Authorization: Bearer <ACCESS_TOKEN>

200 OK
{
  "symbol": "000001.SZ",
  "interval": "1w",
  "candles": [
    { "t":"2025-09-29","o":12.30,"h":12.85,"l":12.10,"c":12.72,"v":318299100 },
    { "t":"2025-10-06","o":12.70,"h":13.10,"l":12.55,"c":12.98,"v":289144000 }
  ]
}

Watchlist sync + webhook

// POST /api/v1/hkstocks/watchlist/sync
POST /api/v1/hkstocks/watchlist/sync
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json

{
  "user_ref": "robo-7f31",
  "items": [
    { "symbol":"0005.HK","action":"add" },
    { "symbol":"600519.SS","action":"add" },
    { "symbol":"0939.HK","action":"remove" }
  ],
  "webhook": "https://your.app/hooks/hkstocks"
}

// Error handling
4xx body: { "error":"INVALID_SYMBOL",
            "detail":"9999.HK not listed on SEHK",
            "request_id":"req_01HS..." }

Compliance & privacy

Integration work is scoped to respect Hong Kong’s Personal Data (Privacy) Ordinance (PDPO, Cap. 486) under the PCPD, the Hong Kong Securities and Futures Commission (SFC) expectations for data submission (including the Data Standards for Order Life Cycles framework that governs In-Scope Brokers), and HKEX market data licensing for any downstream redistribution of live quotes from the Orion Market Data Platform (OMD-C). For Mainland A-share data sourced via Stock Connect, we follow the Mainland Market Data Hub (MMDH) entitlement rules. For EU-facing clients, our pipelines are designed to be GDPR-compatible: minimal personal data, documented lawful basis, and data-minimization by default.

Practical controls we ship with every delivery include: explicit user consent capture for portfolio and watchlist extraction, encryption in transit and at rest, short-lived access tokens, redaction of identifiers in log streams, and a retention policy template aligned with typical SFC record-keeping guidance.

Data flow / architecture

A typical deployment looks like this, end to end:

  1. Client App (Hong Kong Stock Market / mdr.stocks.hkg) — the source of user watchlists, portfolio entries, and session context.
  2. Protocol adapter — our reverse-engineered client handles auth, request signing, and retry/backoff against the app’s backend and complementary public quote sources.
  3. Normalization & storage — payloads are mapped to a stable schema (symbol, exchange, timestamp, OHLCV, metadata) and persisted in a time-series store + relational metadata table.
  4. OpenData API layer — REST/JSON endpoints with OAuth2-style tokens, per-call metering, and webhooks for event-driven subscribers.
  5. Consumer systems — your research notebook, CRM, robo-advisor, compliance vault, or BI dashboard.

Market positioning & user profile

The Hong Kong Stock Market app is a lightweight, retail-facing Android tool for self-directed investors who follow HKEX, SSE, and SZSE in one place. Its typical user is a Hong Kong, Mainland China, or overseas Chinese-speaking investor who already holds brokerage accounts elsewhere and wants a low-friction, no-account tracker for HSI, HSCEI, small/mid caps, sectoral benchmarks, and dual-listed ETFs. Device focus is mobile, and the absence of a published developer API is exactly why integration partners — wealth platforms, B2B research desks, and compliance-tech vendors — ask us to build a supervised, consent-based wrapper instead of scraping inside their own runtime.

Screenshots

Click any thumbnail to enlarge. These screens correspond to the data surfaces referenced above (quote tabs, index tabs, portfolio, full-screen charts, news feed).

Similar apps & integration landscape

Teams that work with the Hong Kong Stock Market app usually also evaluate or hold accounts in adjacent tools. We treat these apps as part of the same OpenData / OpenFinance ecosystem, so a unified integration layer can merge watchlists, trade history, and quote feeds across them without forcing users to choose one platform.

Futubull (Futu / moomoo)
SFC-regulated brokerage app with 29M+ global users covering HK/US/A-shares; its server-side holds executed trades, positions, and cash balances that pair naturally with a read-only quote wrapper.
Webull Securities Hong Kong
Offers an Open API programme in HK; unified integration can push watchlists from our wrapper into Webull’s order staging area.
Tiger Brokers (Tiger Trade)
Multi-market brokerage app strong on HK/US listings; typical scenario is exporting trade history for cross-broker performance attribution.
Yahoo Finance
Widely used quote and portfolio aggregator; teams often need HKEX quote parity between Yahoo and in-house dashboards.
TradingView
Charting and social platform; pair-trade research between dual-listed HK/A-share names is a recurring request.
Investing.com
Indices and news aggregator; many users mirror Hang Seng and SSE Composite levels in both apps for cross-check.
Bloomberg Terminal / Bloomberg mobile
Institutional reference; our wrappers feed retail-style mobile data into Bloomberg-adjacent internal tooling where entitlements allow.
Stocker (Hong Kong, US, Taiwan, UK)
Multi-market portfolio app with cloud sync and AI trade-import; a common integration path is consolidating Stocker holdings with HK Stock Market watchlists.
Portfolio X — Stock Tracker
iOS tracker with dividend and insider-trades features; pairing Portfolio X data with HK-focused quote APIs gives a complete Asia-plus-US view.
HK Stock Market (com.dayna.xhkstock)
Another Hong Kong-only Android tracker with streaming prices; users who evaluate both apps often need side-by-side feed parity checks.

What we deliver

Deliverables checklist

  • API specification (OpenAPI / Swagger) covering every endpoint above
  • Protocol and auth-flow report (session tokens, signing, refresh) for mdr.stocks.hkg
  • Runnable source code for quote, index, watchlist, candle, ETF, and news APIs (Python / Node.js / Go on request)
  • Automated test suite and Postman / Insomnia collection
  • Compliance pack: consent templates, PDPO data inventory, SFC-aligned retention notes
  • Deployment recipe (Docker compose / Kubernetes manifests) and on-call runbook

Engagement models

1) Source code delivery from $300. We hand over the runnable API source, documentation, and test harness; you pay only after delivery and only if you are satisfied.

2) Pay-per-call API billing. Use our hosted endpoints directly; no upfront fee, and you pay only for calls actually made. Ideal if you want to prototype against HSI/SSE/SZSE data before committing to a full codebase purchase.

Key integration scenarios at a glance

Account-less quote ingestion, watchlist and portfolio export, chart-series backtesting, ETF thematic dashboards, news-driven alerts, SFC-aligned audit trails, and cross-broker merging with Futubull / Webull / Tiger Brokers through a single wrapper.

About us

We are an independent interface-integration studio focused on fintech, OpenData, and OpenFinance. Our team has shipped production systems for brokerages, family offices, and B2B research desks, and we are fluent in protocol analysis, TLS inspection under authorized conditions, and API productization. For Hong Kong equity work specifically, we combine familiarity with HKEX OMD-C documentation, SFC data-submission practice, and retail-app structures like mdr.stocks.hkg.

  • Markets covered: SEHK, SSE, SZSE, plus dual-listings, ETFs, and sectoral indices
  • Tech stack: Python / Node.js / Go, PostgreSQL, ClickHouse, Kafka, Redis
  • Process: protocol analysis → API design → build → validation → compliance sign-off
  • Source code delivery from $300 — runnable source and full docs; pay after delivery upon satisfaction
  • Pay-per-call API billing — use hosted endpoints, pay only for calls, no upfront commitment

Contact

Provide the target app (Hong Kong Stock Market / mdr.stocks.hkg) and the specific data you need — quotes, portfolio, candles, news, or a combination — and we will respond with scope, timeline, and a fixed quote.

Contact page

Engagement workflow

  1. Scope confirmation: which surfaces of the Hong Kong Stock Market app you need (quotes, indices, portfolio, charts, ETFs, news).
  2. Protocol analysis and API design (2–5 business days, complexity-dependent).
  3. Build and internal validation against a live tester device (3–8 business days).
  4. Documentation, OpenAPI spec, Postman collection, and compliance notes (1–2 business days).
  5. Typical first delivery: 5–15 business days; HKEX entitlement reviews or Stock Connect MMDH rules may extend timelines.

FAQ

What do you need from me to start?

The target app (already provided — Hong Kong Stock Market, package ID mdr.stocks.hkg), a specific list of data you care about, and any existing HKEX or vendor entitlements you already hold.

How long does a first drop usually take?

5–12 business days is typical for an initial API set and docs; richer stacks that need Stock Connect MMDH routing or streaming delivery can extend that window.

How do you handle compliance?

Authorized or public APIs only, with consent capture, tokenized access, data minimization, and record-keeping aligned with HK PDPO and SFC data-submission expectations; NDAs signed on request.

Do I need a separate market-data licence?

For internal, delayed, or derived quote use you generally do not; for live redistribution of HKEX-sourced prices you will, and we can help you scope the right OMD-C tier.
Original app overview (appendix) — Hong Kong Stock Market (mdr.stocks.hkg)

Hong Kong Stock Market is a stock tracking tool for Hong Kong and Chinese equity markets. It lets users track stocks and indices from the Stock Exchange of Hong Kong (SEHK), the Shanghai Stock Exchange, and the Shenzhen Stock Exchange from a single app.

  • Quotes for all Hong Kong and China stocks and indexes — including the HSI (Hang Seng Index), SSE Composite Index, mid-cap and small-cap indices, and important sectoral indices.
  • Quotes for stocks and indexes are displayed in separate tabs.
  • Full portfolio functionality with the ability to track stocks and portfolio performance over time.
  • Ability to search and add stocks and indexes to a user list.
  • Full stock / index detail view with charts.
  • Support for daily, weekly, monthly, and yearly full-screen charts.
  • Customizable list with the ability to remove and add stocks or indexes.
  • Quotes for exchange-traded funds (ETFs).
  • Support for news related to stocks.
  • Feedback, bug reporting, and feature requests go to the app author at codeandro@gmail.com.

This page describes a technical integration positioning around the app — it is not affiliated with, endorsed by, or a substitute for the original application. All trademarks belong to their respective owners.