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

````