Skip to main content
Fetches all prediction markets that belong to a specific thread, with filtering, sorting, and pagination.

Endpoint

Path Parameters

string
required
The unique thread identifier (UUID format)

Query Parameters

string
Filter by market status. Options: active, resolved, cancelled, paused
number
default:"20"
Maximum number of results per page (max: 100)
number
default:"0"
Pagination offset for fetching subsequent pages
string
default:"created_at"
Field to sort by. Options: created_at, total_volume, current_probability, title
string
default:"desc"
Sort direction. Options: asc, desc

Response

array
Array of market objects in this thread
object
Pagination metadata

Rate Limit

100 requests per minute per IP address

Example Request

Example Response

200 - Success
404 - Thread Not Found
429 - Rate Limit Exceeded

Common Use Cases

Build a custom thread page

Fetch all markets to build a custom thread display:

Show top markets by volume

Display the most actively traded markets in a thread:

Paginate through all markets

Fetch all markets in batches:

Filter active markets only

Show only currently active markets for trading:

Build a probability leaderboard

Show markets ranked by probability:
React Component

GET /api/threads

List all available threads

GET /api/threads/:id

Get thread details