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

# 查询事件窗口目标价与最终价

> 查询事件窗口的目标价与最终价。

查询事件窗口的目标价与最终价。该接口为公开行情接口，无需 Broker API Key。


## OpenAPI

````yaml openapi/event-markets.yaml GET /api/v4/prediction/events/price_to_beat_final_price/{slug}
openapi: 3.0.3
info:
  title: DexBuilder Prediction Market API
  version: 1.0.0
  description: DexBuilder 事件市场 REST API
servers:
  - url: https://api.dexbuilder.com
security: []
paths:
  /api/v4/prediction/events/price_to_beat_final_price/{slug}:
    get:
      summary: 查询事件窗口目标价与最终价
      description: 查询事件窗口的目标价与最终价。
      operationId: query_event_reference_price
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventReferencePrice'
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 事件不存在或参考价格不可用
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 服务暂时不可用
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EventReferencePrice:
      type: object
      properties:
        final_price:
          type: string
        price_to_beat:
          type: string
        slug:
          type: string
        status:
          type: string
          enum:
            - not_ready
            - unsupported
      description: 响应对象。
    Error:
      type: object
      description: 错误响应。
      properties:
        label:
          type: string
          example: INVALID_ARGUMENT
        message:
          type: string
          example: invalid request

````

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