> ## Documentation Index
> Fetch the complete documentation index at: https://alltick.co/apis/llms.txt
> Use this file to discover all available pages before exploring further.

# Latest quote

### Endpoint description

Batch query the latest trade price (the latest tick, also the current price) for multiple products. Historical tick prices are not supported.

```http theme={null}
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}`       |

### Request parameters

| Parameter   | Type   | Required | Description          |
| ----------- | ------ | -------- | -------------------- |
| `X-API-Key` | string | Yes      | Authentication token |
| `queryData` | string | Yes      | Request content      |

### queryData

```json theme={null}
{
  "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 |

### Response example

```json theme={null}
{
  "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}]
  }
}
```

### Response fields

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