Stock market data API: Hong Kong, US and China A-share quotes and candles
Use one API for Hong Kong, US and China A-share market data. If you already use iTick, just change the base URL and the token.
What you can get
| Endpoint | Description |
|---|---|
/stock/quote | Real-time quote for one symbol |
/stock/quotes | Batch quotes: pass several codes at once (the maximum depends on your plan) |
/stock/tick | Real-time ticks |
/stock/depth | Order book |
/stock/kline | Minute, day, week and month candles; use limit for the count and et for historical ranges |
/symbol/list | Look up symbols |
/market/status | Check whether each market is currently open |
Example: Tencent (700) quote on the Hong Kong market
curl -H "token: YOUR_API_KEY" \
"https://itick.dev/stock/quote?region=HK&code=700"{
"code": 0,
"msg": null,
"data": {
"s": "700",
"ld": 420.6,
"p": 428.2,
"o": 425.6,
"h": 426,
"l": 419.2,
"v": 12436640,
"ch": -7.6,
"chp": -1.77
}
}Markets covered
US, Hong Kong and China A-shares are covered and selected with the region parameter, for example HK, US, SH or SZ. Contact support to confirm stocks in other regions; available data depends on your plan.
Choose by use case
- Dashboards: refresh a screen of symbols with the batch quote endpoint, and switch to WebSocket streaming when you need continuous updates.
- Backtesting: use the candle endpoint with
limitandetto page through history. - Price alerts: poll quotes on a schedule, or subscribe over WebSocket and check thresholds locally.
curl -H "token: YOUR_API_KEY" \
"https://itick.dev/stock/kline?region=US&code=AAPL&kType=8&limit=30"Frequently asked questions
Is Hong Kong and US stock data delayed?
Data comes from an upstream provider and is briefly cached for stability and rate limiting; quotes are cached for 3 seconds by default. Whether the data itself is real time depends on the upstream source and your plan. For millisecond latency, connect to the source directly. See rate limits and freshness.
How many stocks can I query at once?
The batch quote endpoint accepts several codes per request; the maximum depends on the upstream plan. See the batch endpoint notes in the iTick API docs.
Do I have to pay?
There is a free plan to try first; see pricing for its limits. Upgrade when your usage grows.
How do I migrate from iTick?
Replace the base URL with this site's address and send your new token in the request header. Paths and parameters stay the same. See the quick start.
Try the stock data API free
Sign up, subscribe to the free plan and get your token right away.
Sign up free