Saltar al contenido

API REST

Todas las consultas utilizan peticiones GET estándar para acciones, forex, cripto, índices, futuros y fondos.

Endpoints principales

PathDescription
/stock/quoteReal-time quote (parameters region, code)
/stock/quotesBatch quotes (parameters region, codes, comma separated)
/stock/tick, /stock/depthReal-time ticks and order book
/stock/klineCandles (parameters region, code, kType, limit, optional et end time)
/symbol/listSymbol list (parameters type, region, code)
/market/statusMarket status (parameter code)

Replace stock in the path with forex, crypto, indices, future or fund to query that category. The data you can call depends on your plan.

Intervalos de velas (kType)

kTypeInterval
11 minute
25 minutes
315 minutes
430 minutes
560 minutes
8Day
9Week
10Month
Daily candles
curl -H "token: YOUR_API_KEY" \
  "https://api.itick.dev/stock/kline?region=US&code=AAPL&kType=8&limit=30"

Candles without et include the current, still-forming candle, so they are cached briefly. Candles with et (an end timestamp) are historical and cached longer.

Formato de respuesta

Successful responses look like { code: 0, msg, data }. Querying a code that does not exist returns data as null. For field meanings see the iTick API docs.

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
  }
}