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

# 分析师预估

> 华尔街对某个美国股票代码的一致预期——预计营收和预计每股收益，按财务期间（年度或季度）细分。



## OpenAPI

````yaml openapi/zh/analyst-estimates.json GET /analyst-estimates
openapi: 3.0.3
info:
  title: Financial Datasets API — Analyst Estimates
  version: 1.0.0
  description: >-
    华尔街分析师对美国股票代码的一致预期（预期营收 + 预期每股收益），按财务期间（年度或季度）细分。由 AIsa 代理访问 Financial
    Datasets API。
servers:
  - url: https://api.aisa.one/apis/v1/financial
    description: Production API
security:
  - bearerAuth: []
paths:
  /analyst-estimates:
    get:
      summary: 分析师预估
      operationId: getAnalystEstimates
      parameters:
        - name: ticker
          in: query
          description: 要获取分析师预估的股票代码。
          required: true
          schema:
            type: string
        - name: period
          in: query
          description: 获取分析师预估数据的周期。使用 /analyst-estimates/periods 端点获取可用周期列表。默认为 'annual'。
          required: false
          schema:
            type: string
            enum:
              - annual
              - quarterly
        - name: limit
          in: query
          description: 返回的预估值数量上限（年度数据最多 3 个，季度数据最多 12 个）。
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: 分析师预期响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalystEstimatesResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/PaymentRequiredError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    AnalystEstimatesResponse:
      type: object
      properties:
        analyst_estimates:
          type: array
          items:
            $ref: '#/components/schemas/AnalystEstimate'
    AnalystEstimate:
      type: object
      properties:
        fiscal_period:
          type: string
          format: date
          description: 分析师预估的财务期间。
        period:
          type: string
          enum:
            - annual
            - quarterly
          description: 分析师预估的周期。
        revenue:
          type: integer
          description: 预估收入。
        earnings_per_share:
          type: number
          description: 预估每股收益。
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: 简短的错误消息。
        message:
          type: string
          description: 更详细的错误消息。
  responses:
    BadRequestError:
      description: 错误请求
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Bad Request
            message: Invalid request parameters
    UnauthorizedError:
      description: 未授权
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Unauthorized
            message: Invalid API key provided
    PaymentRequiredError:
      description: 该请求需要付费订阅
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Payment Required
            message: >-
              This endpoint requires a paid subscription. Please upgrade your
              plan.
    NotFoundError:
      description: 未找到指定的资源
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Not Found
            message: Ticker XXXX not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````