Skip to content

[Backend] — Feature: Add GET /predictions/market/:marketId public predictions list #1165

Description

@Olowodarey

Background

There is no public endpoint to list all predictions for a given market. Clients
wishing to show "who predicted what" on a market detail page must scrape private
user endpoints or go on-chain. A public, paginated endpoint is needed.

Goal

Add GET /predictions/market/:marketId returning paginated, anonymized
predictions for a market.

Requirements

  1. In PredictionsService, add:

  2. Add the route to PredictionsController:

Acceptance criteria

  • Returns paginated results without exposing user IDs.
  • Non-existent market returns empty list (not 404).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions