REST API
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GET /v1/quote/{queryData}
| Product type | Request URL |
|---|---|
| US stocks, Hong Kong stocks, A-shares, and major indices | https://quote.alltick.co/quote-stock-b-api/v1/quote/{queryData} |
| Forex, precious metals, cryptocurrencies, crude oil, CFD indices, and commodities | https://quote.alltick.co/quote-b-api/v1/quote/{queryData} |
| Parameter | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | Yes | Authentication token |
queryData | string | Yes | Request content |
{
"trace": "edd5df80-df7f-4acf-8f67-68fd2f096426",
"data": {
"symbol_list": [{"code": "857.HK"}, {"code": "UNH.US"}]
}
}
| Name | Type | Required | Description |
|---|---|---|---|
trace | string | Yes | Request trace ID |
data | object | Yes | Request data |
symbol_list | array | Yes | Product list |
code | string | No | Product code; case must match the product list |
{
"ret": 200,
"msg": "ok",
"trace": "edd5df80-df7f-4acf-8f67-68fd2f096426",
"data": {
"tick_list": [{"code":"857.HK","seq":"30841439","tick_time":"1677831545217","price":"136.302","volume":"0","turnover":"0","trade_direction":0}]
}
}
| Field | Type | Description |
|---|---|---|
code | string | Product code |
seq | string | Sequence number |
tick_time | string | Timestamp |
price | string | Trade price |
volume | string | Traded volume |
turnover | string | Traded amount |
trade_direction | integer | 0=neutral, 1=buy, 2=sell; forex, precious metals, and energy return 1 by default |
