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

# 獲取日內資金分佈



## OpenAPI

````yaml /zh-Hant/api-reference/openapi.json get /api/market-data/quote/capital_distribution
openapi: 3.1.0
info:
  title: Financial Context
  version: 1.0.0
  description: >-
    Financial Context 提供經過認證、按量計費的只讀美股市場資料訪問。可通過 `/api/market-data/*` 端點，針對
    `.US` 標的和 `US` 市場篩選條件訪問行情、K 線、市場日曆、基本面、新聞、選股器和相關分析。
servers:
  - url: https://openapi.fcontext.com
    description: 生產環境
security:
  - ApiKeyHeader: []
  - BearerAuth: []
tags:
  - name: 行情
    description: 行情、K 線、交易日、深度、經紀隊列和其他市場資料端點。
  - name: 內容
    description: 證券內容：新聞和話題。
  - name: 市場
    description: 市場狀態、交易日曆、異常活動和排行。
  - name: 日曆
    description: 財務事件日曆。
  - name: 基本面
    description: 基本面、分析師評級、估值、股東和交易披露。
  - name: 選股器
    description: 選股策略、篩選條件和指標。
paths:
  /api/market-data/quote/capital_distribution:
    get:
      tags:
        - 行情
      summary: 獲取日內資金分佈
      parameters:
        - name: symbol
          in: query
          required: true
          schema:
            type: string
          example: AAPL.US
      responses:
        '200':
          description: 日內資金分佈
          content:
            application/json:
              schema:
                type: object
                properties:
                  capitalDistribution:
                    $ref: '#/components/schemas/CapitalDistributionResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: 需要付費的 Financial Context 方案或剩餘資料請求額度。
        '403':
          description: 該憑證無權訪問 Financial Context 市場資料。
components:
  schemas:
    CapitalDistributionResponse:
      type: object
      description: 日內資金分佈。
      additionalProperties: true
      properties:
        timestamp:
          type: string
          format: date-time
          description: 資料時間戳。
        capitalIn:
          type: object
          description: 按訂單規模分佈的流入資金。
          additionalProperties: true
          properties:
            large:
              type: string
              description: 大單金額。
            medium:
              type: string
              description: 中單金額。
            small:
              type: string
              description: 小單金額。
        capitalOut:
          type: object
          description: 按訂單規模分佈的流出資金。
          additionalProperties: true
          properties:
            large:
              type: string
              description: 大單金額。
            medium:
              type: string
              description: 中單金額。
            small:
              type: string
              description: 小單金額。
    Error:
      type: object
      description: 標準錯誤響應。
      additionalProperties: true
      properties:
        error:
          type: string
          description: 可讀錯誤消息。
  responses:
    BadRequest:
      description: 請求參數無效。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 缺少或使用了無效的 Financial Context 憑證。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Unauthorized: missing API key'
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: '在帳戶設置中生成的 Financial Context key。請以 `x-api-key: <key>` 形式發送。'
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth access token
      description: >-
        面向具有 `market_data` scope 的 Financial Context CLI、MCP 或 agent 客戶端的 OAuth
        bearer token。

````