본문으로 건너뛰기

REST API 레퍼런스

모든 인터페이스는 표준 GET 요청을 사용하며 주식, 외환, 암호화폐, 지수, 선물, 펀드를 지원합니다.

주요 엔드포인트

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.

캔들 주기(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.

응답 포맷

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