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

# Optimistic-oracle challenges for a market

> Read-only feed indexed from on-chain `challengeOutcome` events on the `Oracle` contract. Public — challenges are submitted as on-chain transactions; this endpoint only surfaces the indexed records.



## OpenAPI

````yaml /api-reference/openapi.json get /api/markets/{symbol}/challenges
openapi: 3.1.0
info:
  title: PredictStreet API
  description: >-
    Client-facing HTTP API for the PredictStreet prediction-market platform.
    **Partner kinds.** Every authenticated endpoint resolves a request's
    *effective wallet* from the partner row. `single_wallet` partners bind to
    one `associatedWallet` set at creation. `multi_wallet` partners declare the
    actor on every request via an `X-User-Wallet: 0x<40-hex>` header. See the
    [Partner kinds](/auth/api-keys#partner-kinds) doc for the full contract.
  version: '2026-06-16'
  contact:
    name: PredictStreet partners
    email: partners@predictstreet.com
servers:
  - url: https://core.api.dev.predictstreet.sde.adifoundation.ai
    description: Testnet (partner integrator API — final domain TBD)
security: []
tags:
  - name: Deposits
    description: >-
      Gasless USDC deposit relay - submit a signed EIP-2612 permit and the
      platform broadcasts the on-chain deposit for you (no gas).
  - name: Events
    description: >-
      Polymarket-style event grouping with football metadata (group, stage,
      teams, tags).
  - name: Tags
    description: Curated tag taxonomy used to filter events.
  - name: Markets
    description: 'Public market data: list, detail, orderbook, trades, OHLC.'
  - name: Crypto
    description: >-
      Crypto price markets: the underlying-asset price curve and Up/Down series
      navigation. The markets themselves are ordinary binary markets — list them
      through /api/markets and /api/events.
  - name: Orders
    description: >-
      Signed-order place / cancel / read. Requires `X-Api-Key` with
      `orders:read` / `orders:write` scope; every write additionally requires an
      EIP-712 signature over the order.
  - name: Portfolio
    description: >-
      Balances, positions, trades, fees, vault info for the key's
      `associatedWallet`. Requires `X-Api-Key` with `portfolio:read` scope.
  - name: Matches
    description: >-
      A match groups several events into one fixture/card (1X2 + first-scorer +
      over-under under one matchup).
  - name: Vault
    description: >-
      Backend co-signatures for ERC-1155 split / merge, and recovery for
      off-chain locks when the corresponding chain tx never confirmed. Requires
      `X-Api-Key` with `vault:write` scope plus an EIP-712 signature over the
      operation.
  - name: Leaderboard
    description: Public ranked leaderboard across PnL / volume buckets.
  - name: Search
    description: Global search across users, events, and matches.
  - name: Withdrawal Security
    description: >-
      Self-service withdrawal 2FA (TOTP) and withdrawal-address whitelist. Same
      endpoints serve the web app (user sessions) and API-key integrators.
      Mutations need `vault:write`, reads `portfolio:read`. Both are opt-in per
      wallet and only gate withdrawals once the platform enables
      withdrawal-security enforcement.
  - name: Platform
    description: >-
      Public platform state: the contract registry, the platform fee
      configuration, the platform freeze flag and active notices. No
      authentication.
paths:
  /api/markets/{symbol}/challenges:
    get:
      tags:
        - Challenges
      summary: Optimistic-oracle challenges for a market
      description: >-
        Read-only feed indexed from on-chain `challengeOutcome` events on the
        `Oracle` contract. Public — challenges are submitted as on-chain
        transactions; this endpoint only surfaces the indexed records.
      operationId: ChallengesController_listForMarket
      parameters:
        - name: symbol
          required: true
          in: path
          description: Public market symbol.
          schema:
            type: string
        - name: limit
          required: false
          in: query
          schema:
            type: integer
            minimum: 1
            default: 50
        - name: cursor
          required: false
          in: query
          description: Opaque cursor from a previous dispute-feed page.
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketChallengesRespDto'
      security:
        - {}
components:
  schemas:
    MarketChallengesRespDto:
      type: object
      properties:
        symbol:
          type: string
        challenges:
          type: array
          items:
            $ref: '#/components/schemas/ChallengeDto'
        page:
          $ref: '#/components/schemas/ChallengesPageDto'
      required:
        - symbol
        - challenges
        - page
    ChallengeDto:
      type: object
      properties:
        id:
          type: string
          description: Challenge id (UUID).
        marketSymbol:
          type: string
          description: Market symbol the challenge targets.
        conditionId:
          type: string
          description: CTF conditionId being challenged (0x-bytes32).
        oracleProposedOutcome:
          type: string
          description: >-
            Outcome label the oracle had proposed when the challenge was filed
            (e.g. `YES`, `NO`, a team name).
        challengerWallet:
          type: string
          description: EOA that posted the challenge bond.
        bondAmount:
          type: string
          description: Bond amount staked on the challenge (decimal string, USDC).
        opensAt:
          type: string
          description: ISO-8601 — challenge window opens.
        closesAt:
          type: string
          description: ISO-8601 — challenge window closes (counter-evidence deadline).
        status:
          type: string
          enum:
            - PENDING
            - UPHELD
            - REJECTED
            - RESOLVED
          description: >-
            PENDING while undecided, then UPHELD, REJECTED or RESOLVED from the
            on-chain outcome.
        outcome:
          type: string
          nullable: true
          description: Final outcome after resolution; null while PENDING.
        rewardAmount:
          type: string
          nullable: true
          description: Reward paid to the challenger when overturning (decimal string).
        txHash:
          type: string
          nullable: true
          description: On-chain tx hash.
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - marketSymbol
        - conditionId
        - oracleProposedOutcome
        - challengerWallet
        - bondAmount
        - opensAt
        - closesAt
        - status
        - outcome
        - rewardAmount
        - txHash
        - createdAt
        - updatedAt
    ChallengesPageDto:
      type: object
      properties:
        limit:
          type: number
        hasMore:
          type: boolean
        nextCursor:
          type: string
          nullable: true
          description: >-
            Opaque cursor for the next page; pass it back as `cursor`. Null on
            the last page.
      required:
        - limit
        - hasMore
        - nextCursor

````

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