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

# K 線週期

> 查詢系統支持的 K 線週期列表。用於在調用 K 線接口前確認可用的週期參數。

## 週期格式

* **分鐘**: 1m, 3m, 5m, 15m, 30m
* **小時**: 1h, 2h, 4h
* **天**: 1d
* **週**: 1w
* **月**: 1M

## 返回字段說明

| 字段名         | 描述        |
| ----------- | --------- |
| count       | 支持的週期數量   |
| description | 接口說明      |
| intervals   | 支持的K線週期列表 |


## OpenAPI

````yaml GET /v1/market/intervals/kline
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/intervals/kline:
    get:
      summary: Kline Periods
      description: Get supported K-line time intervals for historical data queries
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  message:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      count:
                        type: integer
                        example: 11
                      description:
                        type: string
                        example: >-
                          Supported K-line time intervals for historical data
                          queries
                      intervals:
                        type: array
                        items:
                          type: string
                        example:
                          - 1m
                          - 3m
                          - 5m
                          - 15m
                          - 30m
                          - 1h
                          - 2h
                          - 4h
                          - 1d
                          - 1w
                          - 1M
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````