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

# 聪明钱追踪

> 读取美国股票的内部人申报、13F 仓位、主要权益和基金持仓。

选择 action 并填写该 action 支持的筛选。SEC API 的申报日期采用美东时间。基金报告期为 13F 季末。市场情绪覆盖全美市场，同时报告数据覆盖区间。历史股价使用 stock\_research。交付与请求费用分别见 result\_status 和 request\_charge。


## OpenAPI

````yaml /openapi.zh.json post /v1/solutions/finance/smart_money_tracker
openapi: 3.1.0
info:
  title: Glasser
  version: 0.0.1
  description: 一个 API Key，无需合同，按次付费，即可调用批量采购的付费 API。每个响应包含 x-request-id；所有错误正文采用统一结构。
servers:
  - url: https://api.glasser.ai
security: []
tags:
  - name: Solutions
  - name: Endpoints
  - name: Runs
  - name: Balance
paths:
  /v1/solutions/finance/smart_money_tracker:
    post:
      tags:
        - Solutions
      summary: 聪明钱追踪
      description: >-
        读取美国股票内部人交易、全市场内部人情绪、拟出售申报、13F 仓位、受益所有权与基金持仓。每个逻辑请求选择一个 Endpoint。缺失值为
        null。报价与源 Run 可单独读取。不会自动翻页或推断交易。
      operationId: finance-smart-money-tracker
      parameters:
        - name: idempotency-key
          in: header
          schema:
            type: string
            minLength: 1
            description: >-
              每次独立查询都生成新的唯一值（建议使用随机 UUID），即使参数相同且发生在同一天。仅在恢复同一次预期执行时沿用原键与参数，取回原
              Run，不再次扣费。同键更改执行参数返回 409；更换 task_id 或 metadata 不会创建新
              Run。旧的不透明键仍可用于恢复。
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SmartMoneyTrackerRequest'
        required: true
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/SmartMoneyTrackerResult'
        '202':
          description: 成功
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/SmartMoneyTrackerResult'
        '400':
          description: ValidationFailed | IdempotencyKeyRequired
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationFailedEncoded'
                  - $ref: '#/components/schemas/IdempotencyKeyRequiredEncoded'
                  - $ref: '#/components/schemas/ValidationFailedEncoded'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedEncoded'
        '402':
          description: InsufficientBalance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientBalanceEncoded'
        '403':
          description: EndpointNotPermitted | Forbidden
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/EndpointNotPermittedEncoded'
                  - $ref: '#/components/schemas/ForbiddenEncoded'
        '409':
          description: IdempotencyConflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdempotencyConflictEncoded'
        '429':
          description: RateLimited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitedEncoded'
        '503':
          description: ServiceUnavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableEncoded'
      security:
        - bearer: []
components:
  schemas:
    SmartMoneyTrackerRequest:
      type: object
      properties:
        action:
          type: string
          enum:
            - insider_trades
            - insider_sentiment
            - planned_insider_sales
            - institutional_holders
            - fund_holdings
            - activist_stakes
            - etf_holdings
        provider:
          anyOf:
            - type: string
              enum:
                - auto
                - secapi
                - financialdatasets
                - secform4
              description: >-
                默认为 auto，按 Glasser 偏好顺序选择第一家符合条件的数据提供商。指定的数据提供商必须支持请求且获得当前 API
                Key 的允许，不会切换到其他家。可用值见下方。
            - type: 'null'
        ticker:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9.-]{1,12}$
            - type: 'null'
        cik:
          anyOf:
            - type: string
              pattern: ^\d{1,10}$
            - type: 'null'
        name:
          anyOf:
            - type: string
              minLength: 1
              maxLength: 200
            - type: 'null'
        start_date:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d{2}-\d{2}$
            - type: 'null'
        end_date:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d{2}-\d{2}$
            - type: 'null'
        report_period:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d{2}-\d{2}$
            - type: 'null'
        form_type:
          anyOf:
            - type: string
              enum:
                - '3'
                - 3/A
                - '4'
                - 4/A
                - '5'
                - 5/A
            - type: 'null'
        mode:
          anyOf:
            - type: string
              enum:
                - holdings
                - investors
                - activist
                - beneficial
                - passive
            - type: 'null'
        holding:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9.-]{1,12}$
            - type: 'null'
        as_of:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d{2}-\d{2}$
            - type: 'null'
        history:
          anyOf:
            - type: boolean
            - type: 'null'
        limit:
          anyOf:
            - type: integer
              minimum: 1
              maximum: 100
            - type: 'null'
        offset:
          anyOf:
            - type: integer
              minimum: 0
              maximum: 100000
            - type: 'null'
        cursor:
          anyOf:
            - type: string
              minLength: 1
              maxLength: 2000
            - type: 'null'
        max_charge_usd:
          anyOf:
            - type: string
              pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
              description: 精确的美元十进制字符串，小数位数为 2–6，采用唯一规范格式。求和时使用十进制运算或乘以 10^6 转为整数，不使用浮点数。
            - type: 'null'
        task_id:
          anyOf:
            - type: string
              description: 将相关 Run，包括自动切换产生的 Run，归入同一个 Task。复用稳定字符串，并通过 Task 筛选 Run 列表。
            - type: 'null'
        metadata:
          anyOf:
            - anyOf:
                - type: object
                  additionalProperties:
                    type: string
                    minLength: 1
                    maxLength: 500
                  maxProperties: 20
                  propertyNames:
                    type: string
                    pattern: ^[a-z][a-z0-9_]{0,39}$
                - {}
              description: |-
                可选追踪字段，随 Run 返回，也可用于筛选。不会发送给数据提供商，也不影响路由、价格或幂等。

                - 最多 20 个键：小写字母、数字和下划线，以字母开头，最长 40 个字符。
                - 值：长度为 1–500 的字符串。
                - user_id：终端用户的不透明 ID，不得使用邮箱或姓名。

                无效条目整体丢弃，不截断。请求继续执行，Run 返回实际保存的字段。
            - type: 'null'
      required:
        - action
      additionalProperties: false
    SmartMoneyTrackerResult:
      type: object
      properties:
        id:
          type: string
        run_url:
          type: string
          description: 在控制台打开 Run，需要工作空间成员权限。
        provider:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]*$
        endpoint:
          type: string
          pattern: ^\/.+$
        endpoint_version:
          type: integer
          exclusiveMinimum: 0
        status:
          type: string
          enum:
            - QUEUED
            - RUNNING
            - COMPLETED
            - FAILED
            - STOPPED
          description: >-
            QUEUED 或 RUNNING 表示仍在执行。COMPLETED 表示已有数据提供商响应，包括非 2xx 响应。FAILED 请读取
            failure。STOPPED 表示分派前停止。charge_usd 与状态分别检查。
        failure:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - TIMED_OUT
                    - INTERNAL
                message:
                  type: string
              required:
                - kind
                - message
              additionalProperties: false
            - type: 'null'
          description: Run 失败原因，仅在 status 为 FAILED 时非 null。
        input:
          anyOf:
            - type: object
            - type: array
              items:
                type: object
        output:
          anyOf:
            - type: object
              properties:
                items:
                  type: array
                  items:
                    anyOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - insider_trade
                          accession_number:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_url:
                            anyOf:
                              - type: string
                              - type: 'null'
                          form_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer:
                            anyOf:
                              - type: string
                              - type: 'null'
                          name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          insider_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          title:
                            anyOf:
                              - type: string
                              - type: 'null'
                          is_director:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          is_officer:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          is_ten_percent_owner:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          report_period:
                            anyOf:
                              - type: string
                              - type: 'null'
                          security_title:
                            anyOf:
                              - type: string
                              - type: 'null'
                          original_filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          reported_trading_plan:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          instrument:
                            anyOf:
                              - type: string
                                enum:
                                  - derivative
                                  - non_derivative
                              - type: 'null'
                          transaction_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          transaction_code:
                            anyOf:
                              - type: string
                              - type: 'null'
                          transaction_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          acquired_disposed_code:
                            anyOf:
                              - type: string
                              - type: 'null'
                          shares:
                            anyOf:
                              - type: number
                              - type: 'null'
                          price_per_share:
                            anyOf:
                              - type: string
                              - type: 'null'
                          transaction_value:
                            anyOf:
                              - type: string
                              - type: 'null'
                          shares_after:
                            anyOf:
                              - type: number
                              - type: 'null'
                        required:
                          - kind
                          - accession_number
                          - filing_url
                          - form_type
                          - filing_date
                          - ticker
                          - issuer
                          - name
                          - insider_cik
                          - title
                          - is_director
                          - is_officer
                          - is_ten_percent_owner
                          - report_period
                          - security_title
                          - original_filing_date
                          - reported_trading_plan
                          - instrument
                          - transaction_date
                          - transaction_code
                          - transaction_type
                          - acquired_disposed_code
                          - shares
                          - price_per_share
                          - transaction_value
                          - shares_after
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - initial_ownership
                          accession_number:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_url:
                            anyOf:
                              - type: string
                              - type: 'null'
                          form_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer:
                            anyOf:
                              - type: string
                              - type: 'null'
                          name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          insider_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          title:
                            anyOf:
                              - type: string
                              - type: 'null'
                          is_director:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          is_officer:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          is_ten_percent_owner:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          report_period:
                            anyOf:
                              - type: string
                              - type: 'null'
                          security_title:
                            anyOf:
                              - type: string
                              - type: 'null'
                          original_filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          reported_trading_plan:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          instrument:
                            anyOf:
                              - type: string
                                enum:
                                  - derivative
                                  - non_derivative
                              - type: 'null'
                          shares_owned:
                            anyOf:
                              - type: number
                              - type: 'null'
                        required:
                          - kind
                          - accession_number
                          - filing_url
                          - form_type
                          - filing_date
                          - ticker
                          - issuer
                          - name
                          - insider_cik
                          - title
                          - is_director
                          - is_officer
                          - is_ten_percent_owner
                          - report_period
                          - security_title
                          - original_filing_date
                          - reported_trading_plan
                          - instrument
                          - shares_owned
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - market_sentiment
                          date:
                            type: string
                            pattern: ^\d{4}-\d{2}-\d{2}$
                          buy_count:
                            anyOf:
                              - type: number
                              - type: 'null'
                          sell_count:
                            anyOf:
                              - type: number
                              - type: 'null'
                          buy_value:
                            anyOf:
                              - type: string
                              - type: 'null'
                          sell_value:
                            anyOf:
                              - type: string
                              - type: 'null'
                        required:
                          - kind
                          - date
                          - buy_count
                          - sell_count
                          - buy_value
                          - sell_value
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - planned_sale
                          accession_number:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_url:
                            anyOf:
                              - type: string
                              - type: 'null'
                          form_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          seller:
                            anyOf:
                              - type: string
                              - type: 'null'
                          security_title:
                            anyOf:
                              - type: string
                              - type: 'null'
                          proposed_sale_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          proposed_units:
                            anyOf:
                              - type: number
                              - type: 'null'
                          aggregate_market_value:
                            anyOf:
                              - type: string
                              - type: 'null'
                          broker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          plan_adoption_dates:
                            anyOf:
                              - type: array
                                items:
                                  type: string
                                  pattern: ^\d{4}-\d{2}-\d{2}$
                              - type: 'null'
                        required:
                          - kind
                          - accession_number
                          - filing_url
                          - form_type
                          - filing_date
                          - ticker
                          - issuer
                          - issuer_cik
                          - seller
                          - security_title
                          - proposed_sale_date
                          - proposed_units
                          - aggregate_market_value
                          - broker
                          - plan_adoption_dates
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - institutional_position
                          accession_number:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_url:
                            anyOf:
                              - type: string
                              - type: 'null'
                          form_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filer_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filer_name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          report_period:
                            anyOf:
                              - type: string
                              - type: 'null'
                          ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer:
                            anyOf:
                              - type: string
                              - type: 'null'
                          cusip:
                            anyOf:
                              - type: string
                              - type: 'null'
                          security_class:
                            anyOf:
                              - type: string
                              - type: 'null'
                          put_call:
                            anyOf:
                              - type: string
                              - type: 'null'
                          units:
                            anyOf:
                              - type: number
                              - type: 'null'
                          unit_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          investment_discretion:
                            anyOf:
                              - type: string
                              - type: 'null'
                          other_manager:
                            anyOf:
                              - type: string
                              - type: 'null'
                          value_usd:
                            anyOf:
                              - type: string
                              - type: 'null'
                          is_amendment:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                        required:
                          - kind
                          - accession_number
                          - filing_url
                          - form_type
                          - filing_date
                          - filer_cik
                          - filer_name
                          - report_period
                          - ticker
                          - issuer
                          - cusip
                          - security_class
                          - put_call
                          - units
                          - unit_type
                          - investment_discretion
                          - other_manager
                          - value_usd
                          - is_amendment
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - investor
                          cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          name:
                            type: string
                        required:
                          - kind
                          - cik
                          - name
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - beneficial_stake
                          accession_number:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_url:
                            anyOf:
                              - type: string
                              - type: 'null'
                          form_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer:
                            anyOf:
                              - type: string
                              - type: 'null'
                          issuer_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          security_class:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filer_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          reporting_person_name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          reporting_person_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          stake_type:
                            anyOf:
                              - type: string
                              - type: 'null'
                          event_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          shares:
                            anyOf:
                              - type: number
                              - type: 'null'
                          percent_of_class:
                            anyOf:
                              - type: number
                              - type: 'null'
                          is_amendment:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          is_latest:
                            anyOf:
                              - type: boolean
                              - type: 'null'
                          purpose:
                            anyOf:
                              - type: string
                              - type: 'null'
                        required:
                          - kind
                          - accession_number
                          - filing_url
                          - form_type
                          - filing_date
                          - ticker
                          - issuer
                          - issuer_cik
                          - security_class
                          - filer_cik
                          - reporting_person_name
                          - reporting_person_cik
                          - stake_type
                          - event_date
                          - shares
                          - percent_of_class
                          - is_amendment
                          - is_latest
                          - purpose
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - fund_position
                          fund_ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          fund_name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          fund_cik:
                            anyOf:
                              - type: string
                              - type: 'null'
                          holding_ticker:
                            anyOf:
                              - type: string
                              - type: 'null'
                          holding_name:
                            anyOf:
                              - type: string
                              - type: 'null'
                          as_of:
                            anyOf:
                              - type: string
                              - type: 'null'
                          filing_date:
                            anyOf:
                              - type: string
                              - type: 'null'
                          weight_percent:
                            anyOf:
                              - type: number
                              - type: 'null'
                          asset_class:
                            anyOf:
                              - type: string
                              - type: 'null'
                          value_usd:
                            anyOf:
                              - type: string
                              - type: 'null'
                          shares:
                            anyOf:
                              - type: number
                              - type: 'null'
                        required:
                          - kind
                          - fund_ticker
                          - fund_name
                          - fund_cik
                          - holding_ticker
                          - holding_name
                          - as_of
                          - filing_date
                          - weight_percent
                          - asset_class
                          - value_usd
                          - shares
                        additionalProperties: false
                next_cursor:
                  anyOf:
                    - type: string
                    - type: 'null'
                next_offset:
                  anyOf:
                    - type: integer
                    - type: 'null'
                has_more:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                total_records:
                  anyOf:
                    - type: integer
                    - type: 'null'
                total_relation:
                  anyOf:
                    - type: string
                    - type: 'null'
                market_coverage:
                  anyOf:
                    - type: object
                      properties:
                        start_date:
                          type: string
                          pattern: ^\d{4}-\d{2}-\d{2}$
                        end_date:
                          type: string
                          pattern: ^\d{4}-\d{2}-\d{2}$
                      required:
                        - start_date
                        - end_date
                      additionalProperties: false
                    - type: 'null'
              required:
                - items
                - next_cursor
                - next_offset
                - has_more
                - total_records
                - total_relation
                - market_coverage
              additionalProperties: false
            - type: 'null'
        response_file:
          type: object
          properties:
            body_field:
              type: string
              enum:
                - output
                - provider_response.error
            state:
              type: string
              enum:
                - available
                - link_pending
                - expired
                - unavailable
            download_url:
              anyOf:
                - type: string
                - type: 'null'
            link_expires_at:
              anyOf:
                - type: string
                  description: ISO 8601 UTC 时间戳。
                  format: date-time
                - type: 'null'
            file_expires_at:
              type: string
              description: ISO 8601 UTC 时间戳。
              format: date-time
            bytes:
              type: integer
              minimum: 0
            sha256:
              type: string
            content_type:
              type: string
              enum:
                - application/json
          required:
            - body_field
            - state
            - download_url
            - link_expires_at
            - file_expires_at
            - bytes
            - sha256
            - content_type
          additionalProperties: false
          description: 内容过大时，通过文件提供完整的归一 JSON。源 Run 保留其原生输出。
        provider_response:
          anyOf:
            - type: object
              properties:
                http_status:
                  type: integer
                  minimum: 100
                  maximum: 599
                  description: 数据提供商返回的 HTTP 状态，即使 Run 为 COMPLETED 也应检查。
                error:
                  anyOf:
                    - {}
                    - type: 'null'
              required:
                - http_status
              additionalProperties: false
            - type: 'null'
          description: |-
            仅在 status 为 COMPLETED 时非 null。

            - 2xx 响应：output 为任意结构的数据提供商原生 JSON；正文为空时为 null。
            - 非 2xx 响应：error 包含数据提供商错误正文，output 为 null。

            两种正文均会移除敏感字段。
        charge_usd:
          anyOf:
            - type: string
              pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
              description: 精确的美元十进制字符串，小数位数为 2–6，采用唯一规范格式。求和时使用十进制运算或乘以 10^6 转为整数，不使用浮点数。
            - type: 'null'
          description: >-
            所列 Run 的历史费用总和，包括重放或读取的 Run。所有 Run 结算前为
            null。这不是当前请求的新增支出；request_charge 单独报告新增费用。失败也可能收费。
        charge_basis:
          anyOf:
            - type: object
              properties:
                clause:
                  type: string
                  enum:
                    - rule
                    - NO_RESULT
                    - PROVIDER_ERROR
                    - TIMED_OUT
                    - INTERNAL
                quantity:
                  anyOf:
                    - type: integer
                      minimum: 0
                    - type: 'null'
              required:
                - clause
                - quantity
              additionalProperties: false
            - type: 'null'
          description: 单个 Run 的计费依据；多个 Run 汇总时为 null。各项费用请查看 runs[].charge_basis。
        stoppable:
          type: boolean
          description: 当前是否可接受停止请求。不保证能在分派前停止 Run。
        stop_requested_at:
          anyOf:
            - type: string
              description: ISO 8601 UTC 时间戳。
              format: date-time
            - type: 'null'
          description: 请求停止的时间。如果已开始分派，Run 仍可能继续。
        created_at:
          type: string
          description: ISO 8601 UTC 时间戳。
          format: date-time
        started_at:
          anyOf:
            - type: string
              description: ISO 8601 UTC 时间戳。
              format: date-time
            - type: 'null'
        completed_at:
          anyOf:
            - type: string
              description: ISO 8601 UTC 时间戳。
              format: date-time
            - type: 'null'
        task_id:
          anyOf:
            - type: string
            - type: 'null'
        metadata:
          type: object
          additionalProperties:
            type: string
            minLength: 1
            maxLength: 500
          maxProperties: 20
          propertyNames:
            type: string
            pattern: ^[a-z][a-z0-9_]{0,39}$
          description: |-
            已保存的追踪字段，可用于筛选 Run，不发送给数据提供商，不影响路由、价格或幂等。

            - 最多 20 个键：小写字母、数字和下划线，以字母开头，最长 40 个字符。
            - 值：长度为 1–500 的字符串。
            - user_id：终端用户的不透明 ID，不得使用邮箱或姓名。
        review_invitation:
          type: object
          properties:
            run_id:
              type: string
            ratings:
              type: array
              items:
                type: string
                enum:
                  - exceeds_expectations
                  - meets_expectations
                  - partially_meets_expectations
                  - does_not_meet_expectations
                  - unable_to_assess
            instruction:
              type: string
          required:
            - run_id
            - ratings
            - instruction
          additionalProperties: false
          description: >-
            每个 Run 至多出现一次，只在部分已完成 Run 的首次交付中出现。用完本次结果后，按 instruction
            提交评价，然后继续任务。可选；不影响 Run 及其费用。
        action:
          type: string
          enum:
            - insider_trades
            - insider_sentiment
            - planned_insider_sales
            - institutional_holders
            - fund_holdings
            - activist_stakes
            - etf_holdings
        result_status:
          type: string
          enum:
            - success
            - no_result
            - error
            - pending
        error:
          anyOf:
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
              required:
                - code
                - message
              additionalProperties: false
            - type: 'null'
        runs:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              run_url:
                type: string
                description: 在控制台打开 Run，需要工作空间成员权限。
              provider:
                type: string
                pattern: ^[a-z0-9][a-z0-9-]*$
              endpoint:
                type: string
                pattern: ^\/.+$
              endpoint_version:
                type: integer
                exclusiveMinimum: 0
              status:
                type: string
                enum:
                  - QUEUED
                  - RUNNING
                  - COMPLETED
                  - FAILED
                  - STOPPED
                description: >-
                  QUEUED 或 RUNNING 表示仍在执行。COMPLETED 表示已有数据提供商响应，包括非 2xx
                  响应。FAILED 请读取 failure。STOPPED 表示分派前停止。charge_usd 与状态分别检查。
              failure:
                anyOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - TIMED_OUT
                          - INTERNAL
                      message:
                        type: string
                    required:
                      - kind
                      - message
                    additionalProperties: false
                  - type: 'null'
                description: Run 失败原因，仅在 status 为 FAILED 时非 null。
              input:
                type: object
                properties:
                  omitted:
                    type: boolean
                    enum:
                      - true
                required:
                  - omitted
                additionalProperties: false
              output:
                type: object
                properties:
                  omitted:
                    type: boolean
                    enum:
                      - true
                required:
                  - omitted
                additionalProperties: false
              response_file:
                type: object
                properties:
                  body_field:
                    type: string
                    enum:
                      - output
                      - provider_response.error
                  state:
                    type: string
                    enum:
                      - available
                      - link_pending
                      - expired
                      - unavailable
                  download_url:
                    anyOf:
                      - type: string
                      - type: 'null'
                  link_expires_at:
                    anyOf:
                      - type: string
                        description: ISO 8601 UTC 时间戳。
                        format: date-time
                      - type: 'null'
                  file_expires_at:
                    type: string
                    description: ISO 8601 UTC 时间戳。
                    format: date-time
                  bytes:
                    type: integer
                    minimum: 0
                  sha256:
                    type: string
                  content_type:
                    type: string
                    enum:
                      - application/json
                required:
                  - body_field
                  - state
                  - download_url
                  - link_expires_at
                  - file_expires_at
                  - bytes
                  - sha256
                  - content_type
                additionalProperties: false
                description: >-
                  以 JSON 文件完整交付较大的 Provider 正文。Glasser 对接收的正文和序列化文件应用 32 MiB
                  的运行时资源保护。body_field 指明被替代的字段；output 为 null，或省略
                  provider_response.error。下载链接最多一小时后过期。在文件的 7 天可用期内，通过已认证的 Get
                  Run 刷新链接。读取和下载不会再次执行 Run 或重复收费。state 为 link_pending 时，读取同一 Run
                  即可准备链接，不会再次执行或重复收费。链接授予临时读取权限，请仅与预期接收者分享。
              provider_response:
                anyOf:
                  - type: object
                    properties:
                      http_status:
                        type: integer
                        minimum: 100
                        maximum: 599
                        description: 数据提供商返回的 HTTP 状态，即使 Run 为 COMPLETED 也应检查。
                    required:
                      - http_status
                    additionalProperties: false
                  - type: 'null'
              charge_usd:
                anyOf:
                  - type: string
                    pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
                    description: >-
                      精确的美元十进制字符串，小数位数为 2–6，采用唯一规范格式。求和时使用十进制运算或乘以 10^6
                      转为整数，不使用浮点数。
                  - type: 'null'
                description: >-
                  最终费用，精确的美元十进制字符串。QUEUED 或 RUNNING 时为 null。FAILED 状态的 Run
                  仍可能按接口定价产生非零费用。
              charge_basis:
                anyOf:
                  - type: object
                    properties:
                      clause:
                        type: string
                        enum:
                          - rule
                          - NO_RESULT
                          - PROVIDER_ERROR
                          - TIMED_OUT
                          - INTERNAL
                      quantity:
                        anyOf:
                          - type: integer
                            minimum: 0
                          - type: 'null'
                    required:
                      - clause
                      - quantity
                    additionalProperties: false
                  - type: 'null'
                description: 计算费用所用的价格条款。结算前或未尝试调用数据提供商时为 null。
              stoppable:
                type: boolean
                description: 当前是否可接受停止请求。不保证能在分派前停止 Run。
              stop_requested_at:
                anyOf:
                  - type: string
                    description: ISO 8601 UTC 时间戳。
                    format: date-time
                  - type: 'null'
                description: 请求停止的时间。如果已开始分派，Run 仍可能继续。
              created_at:
                type: string
                description: ISO 8601 UTC 时间戳。
                format: date-time
              started_at:
                anyOf:
                  - type: string
                    description: ISO 8601 UTC 时间戳。
                    format: date-time
                  - type: 'null'
              completed_at:
                anyOf:
                  - type: string
                    description: ISO 8601 UTC 时间戳。
                    format: date-time
                  - type: 'null'
              task_id:
                anyOf:
                  - type: string
                  - type: 'null'
              metadata:
                type: object
                additionalProperties:
                  type: string
                  minLength: 1
                  maxLength: 500
                maxProperties: 20
                propertyNames:
                  type: string
                  pattern: ^[a-z][a-z0-9_]{0,39}$
                description: |-
                  已保存的追踪字段，可用于筛选 Run，不发送给数据提供商，不影响路由、价格或幂等。

                  - 最多 20 个键：小写字母、数字和下划线，以字母开头，最长 40 个字符。
                  - 值：长度为 1–500 的字符串。
                  - user_id：终端用户的不透明 ID，不得使用邮箱或姓名。
            required:
              - id
              - run_url
              - provider
              - endpoint
              - endpoint_version
              - status
              - failure
              - input
              - output
              - provider_response
              - charge_usd
              - charge_basis
              - stoppable
              - stop_requested_at
              - created_at
              - started_at
              - completed_at
              - task_id
              - metadata
            additionalProperties: false
        request_charge:
          type: object
          properties:
            charge_usd:
              anyOf:
                - type: string
                  pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
                  description: >-
                    精确的美元十进制字符串，小数位数为 2–6，采用唯一规范格式。求和时使用十进制运算或乘以 10^6
                    转为整数，不使用浮点数。
                - type: 'null'
              description: >-
                仅计算当前请求新建 Run 的费用。重放 Run 与免费读取不增加费用。新建 Run 未结算或受理来源未知时为 null。这不是
                charge_usd 或 runs[].charge_usd 中的历史总费用。
            created_run_ids:
              type: array
              items:
                type: string
                pattern: >-
                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
                format: uuid
            replayed_run_ids:
              type: array
              items:
                type: string
                pattern: >-
                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
                format: uuid
            unknown_run_ids:
              type: array
              items:
                type: string
                pattern: >-
                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
                format: uuid
          required:
            - charge_usd
            - created_run_ids
            - replayed_run_ids
            - unknown_run_ids
          additionalProperties: false
          description: >-
            当前请求的受理与费用证据。在同一件用户工作中保存 created_run_ids，每个已结算 Run 只计一次费用。更换 task_id
            不会把幂等重放变成新 Run。读取结果的费用为零，受理列表为空。
        result_url:
          type: string
          description: >-
            通过认证读取规范化结果和总费用的只读 URL 路径，配合 API 服务地址使用。不创建 Run，也不恢复切换。GET
            /v1/runs/:id 仍返回原生单个 Run。
      required:
        - id
        - run_url
        - provider
        - endpoint
        - endpoint_version
        - status
        - failure
        - input
        - output
        - provider_response
        - charge_usd
        - charge_basis
        - stoppable
        - stop_requested_at
        - created_at
        - started_at
        - completed_at
        - task_id
        - metadata
        - action
        - result_status
        - error
        - runs
        - result_url
      additionalProperties: false
      description: 已归一的申报与所有权证据。缺失字段为 null。数量和金额沿用报告口径。源 Run 保留原生数据。读取结果不会创建 Run。
    ValidationFailedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - validation_failed
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    IdempotencyKeyRequiredEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - idempotency_key_required
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    UnauthorizedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    InsufficientBalanceEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - insufficient_balance
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    EndpointNotPermittedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - endpoint_not_permitted
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    ForbiddenEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - forbidden
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    IdempotencyConflictEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - idempotency_conflict
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    RateLimitedEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - rate_limited
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
    ServiceUnavailableEncoded:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - service_unavailable
            message:
              type: string
            reason:
              anyOf:
                - type: string
                - type: 'null'
            control:
              anyOf:
                - type: string
                - type: 'null'
            retry_after_ms:
              anyOf:
                - anyOf:
                    - type: integer
                    - type: 'null'
                - type: 'null'
            details:
              anyOf:
                - type: object
                - type: 'null'
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - error
        - request_id
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.