REST API
GET only. Paths, parameters and response formats match the official iTick API.
Common endpoints
| Path | Description |
|---|---|
/stock/quote | Real-time quote (parameters region, code) |
/stock/quotes | Batch quotes (parameters region, codes, comma separated) |
/stock/tick, /stock/depth | Real-time ticks and order book |
/stock/kline | Candles (parameters region, code, kType, limit, optional et end time) |
/symbol/list | Symbol list (parameters type, region, code) |
/market/status | Market 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.
Candle interval kType
| kType | Interval |
|---|---|
| 1 | 1 minute |
| 2 | 5 minutes |
| 3 | 15 minutes |
| 4 | 30 minutes |
| 5 | 60 minutes |
| 8 | Day |
| 9 | Week |
| 10 | Month |
curl -H "token: YOUR_API_KEY" \
"https://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.
Response format
Successful responses look like { code: 0, msg, data }. Querying a code that does not exist returns data as null. For field meanings see the official iTick docs.
{
"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
}
}