# Intraday

`WS` `request · cmd 18`

> **Quote Permission Required · Free**
> US stocks: US LV1 included free by default (pre-market, regular, after-hours, and overnight sessions).
> HK stocks: LV1 real-time quotes included by default.
> US options: no permission by default — purchase "OPRA US Options Quotes (OpenAPI)".
> _OpenAPI quote perms are separate from App/Web perms_

This API is used to obtain the intraday data of security.

```protobuf
message SecurityIntradayRequest {
  string symbol = 1;
}

message SecurityIntradayResponse {
  string symbol = 1;
  repeated Line lines = 2;
}
```

## Request Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | Yes | Security code, in ticker.region format, e.g. 700.HK |

## Response Fields

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | No | Security code, e.g. AAPL.US |
| `lines` | object[] | No | Intraday line data |
| `└ price` | string | No | Close price of the minute |
| `└ timestamp` | int64 | No | Start time stamp of the minute |
| `└ volume` | int64 | No | Volume |
| `└ turnover` | string | No | Turnover |
| `└ avg_price` | string | No | Average price |

## Response JSON Example

```json
{
  "symbol": "700.HK",
  "lines": [
    {
      "price": "330.400",
      "timestamp": 1651023000,
      "volume": 375870,
      "turnover": "123949699.000",
      "avg_price": "329.767470"
    }
  ]
}
```
