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

# 当日分时

> 获取股票当日的分时数据，包括每分钟的价格、成交量、成交额等信息。

## 注意事项

* 数据为当日开盘至当前时间的分时数据
* 非交易时段返回空数组

## 支持的市场

**美股**、**港股**、**A股**

示例：

* 美股：AAPL.US、TSLA.US、MSFT.US
* 港股：700.HK、9988.HK、3690.HK
* A股：000001.SH、000001.SZ

## 请求参数

| 参数名     | 是否必须 | 描述                                                                                             |
| ------- | ---- | ---------------------------------------------------------------------------------------------- |
| symbols | 是    | 股票代码，多个用逗号分隔，最多50个                                                                             |
| type    | 否    | 产品类型，可选。代码无歧义时无需传递；若返回 `AMBIGUOUS_SYMBOL` 错误，按提示传入对应值即可。可选值：`stock`、`indices`、`crypto`、`forex` |

## 返回字段说明

| 字段名           | 描述        |
| ------------- | --------- |
| symbol        | 交易产品      |
| lines         | 分时数据      |
| └─ timestamp  | 当前分钟的开始时间 |
| └─ price      | 当前分钟的收盘价格 |
| └─ volume     | 成交量       |
| └─ turnover   | 成交额       |
| └─ avg\_price | 均价        |


## OpenAPI

````yaml GET /v1/market/intraday
openapi: 3.0.0
info:
  title: TickDB API
  description: >-
    Unified real-time market data API — one connection for Forex, indices, US
    stocks, HK stocks, A-shares, and Crypto via REST and WebSocket.
  version: 1.0.1
  contact:
    email: support@tickdb.ai
servers:
  - url: https://api.tickdb.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /v1/market/intraday:
    get:
      summary: Intraday Data
      description: Get intraday time-series data for stocks
      parameters:
        - name: symbols
          in: query
          required: true
          description: Comma-separated stock symbols (max 50)
          schema:
            type: string
            default: 700.HK,9988.HK
            example: 700.HK,9988.HK
        - name: type
          in: query
          required: false
          description: >-
            Symbol type, optional. Not required when the symbol is unambiguous;
            if the API returns an AMBIGUOUS_SYMBOL error, pass the value as
            indicated
          schema:
            type: string
            enum:
              - stock
              - indices
              - crypto
              - forex
            example: stock
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  message:
                    type: string
                    example: success
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        symbol:
                          type: string
                          example: 700.HK
                        lines:
                          type: array
                          items:
                            type: object
                            properties:
                              timestamp:
                                type: integer
                                example: 1773192600000
                                description: Timestamp in milliseconds
                              price:
                                type: string
                                example: '568'
                                description: Current price
                              volume:
                                type: integer
                                example: 7294905
                                description: Cumulative volume
                              turnover:
                                type: string
                                example: '4181560679.96'
                                description: Cumulative turnover
                              avg_price:
                                type: string
                                example: '573.216605'
                                description: Average price
              examples:
                single_symbol:
                  summary: Single symbol response
                  value:
                    code: 0
                    message: success
                    data:
                      - symbol: 700.HK
                        lines:
                          - timestamp: 1773192600000
                            price: '568'
                            volume: 7294905
                            turnover: '4181560679.96'
                            avg_price: '573.216605'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````