Markets
The Markets API provides access to prediction market data, including market listings with filtering and pagination options.
Get Markets List
Retrieve a paginated list of markets with filtering options.
Get list of markets (paginated, status=live, sorted by createdAt, supports partial name search via ?search=)
Filter by contract address
0x1, 0x2Page number
1Example: 1Pattern: ^\d+$Page size
20Example: 20Pattern: ^\d+$Sort by createdAt
descExample: descPossible values: Comma-separated list of statuses (e.g. live,approved,closed)
live,approvedExample: live,approvedPartial name search for market (case-insensitive, matches any part of the name)
List of markets
Bad request
Internal server error
Get Market Detail
Retrieve detailed information about a specific market by its ID.
Market ID
market-uuidFilter by contract address
0x1, 0x2Market detail
Bad request
Market not found
Internal server error
Market Status
Markets can have the following statuses:
live
Market is open for trading
active
Market is active but may have trading restrictions
closed
Market is closed for trading
disputing
Market resolution is being disputed
resolved
Market has been resolved
resolution_proposed
Resolution has been proposed, awaiting confirmation
Code Examples
Fetch Active Markets
Get Market Detail
Filter Markets by Status
Best Practices
Caching: Cache market data appropriately as metadata doesn't change frequently
Pagination: Use pagination for large result sets to improve performance
Error Handling: Implement retry logic for transient network errors
Rate Limiting: Respect API rate limits (100 req/min, 20 req/sec burst)
Data Validation: Always validate market and outcome IDs before using them
Related Documentation
Quick Start - Get started with the API
Orderbook API - Get orderbook data for markets
Orders API - Create and manage orders
Positions API - Track your trading positions
Last updated
Was this helpful?