Aller au contenu

API de données boursières : actions US, Hong Kong et Chine

Interrogez les marchés boursiers mondiaux via une interface unique et standardisée.

Offre Gratuite IncluseREST + WebSocketActivation Instantanée

Données disponibles

EndpointDescription
/stock/quoteReal-time quote for one symbol
/stock/quotesBatch quotes: pass several codes at once (the maximum depends on your plan)
/stock/tickReal-time ticks
/stock/depthOrder book
/stock/klineMinute, day, week and month candles; use limit for the count and et for historical ranges
/symbol/listLook up symbols
/market/statusCheck whether each market is currently open

Exemple : Cotation Tencent (700) à la Bourse de Hong Kong

Request
curl -H "token: YOUR_API_KEY" \
  "https://api.itick.dev/stock/quote?region=HK&code=700"
Response
{
  "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
  }
}

Marchés couverts

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.

Choisir selon votre cas d'usage

  • 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 limit and et to page through history.
  • Price alerts: poll quotes on a schedule, or subscribe over WebSocket and check thresholds locally.
Fetch daily candles for Apple (US)
curl -H "token: YOUR_API_KEY" \
  "https://api.itick.dev/stock/kline?region=US&code=AAPL&kType=8&limit=30"

Questions fréquentes (FAQ)

Is Hong Kong and US stock data delayed?

Data comes from an upstream provider and is cached for stability and rate limiting; quotes are refreshed by the gateway as fast as every 3 seconds, and the X-Data-Age header gives the data age. 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.

Appelez l'API en quelques minutes

Inscrivez-vous gratuitement, activez l'offre gratuite et copiez votre token immédiatement.

S'inscrire gratuitement