BETAThe Prediction Market API is currently in beta and subject to breaking changes as we continue to improve the product. If you have any feedback, please reach out in Discord.
Prerequisite
To query events and markets data, you need:- An API key from the Portal
List Events
UseGET /events to retrieve a paginated list of prediction market events. You can filter by category, provider, and status.
Example: List Trending Crypto Events
Search Events
UseGET /events/search to find events by keyword.
Get Event Details
UseGET /events/{eventId} to retrieve full details for a specific event, including all its markets.
Get Suggested Events
UseGET /events/suggested/{pubkey} to get personalized event recommendations based on a user’s trading history.
Get Market Details
UseGET /markets/{marketId} to retrieve detailed information about a specific market, including current pricing.
There can be multiple markets for the same event.
metadata object. resolveAt stays null while the market is open and becomes an ISO 8601 string once it resolves.
Understanding Prices
Prices are in JupUSD or USDC native token unitsAll prices in the API are denominated in native token units where 1,000,000 native token units for JupUSD or USDC = $1.00.For example:
650000= $0.65 (650000 / 1,000,000 = $0.65)380000= $0.38 (380000 / 1,000,000 = $0.38)10000= $0.01 (10000 / 1,000,000 = $0.01)
Market Status
Market Result
Get Orderbook Data
UseGET /orderbook/{marketId} to retrieve the current orderbook with bid/ask depth.
The response has four arrays. Each entry is a [price, quantity] pair:
Arrays are sorted by price ascending. Quantities are in base units and may be fractional.
Example: Get orderbook data for a specific market
Get Live Scores
For sports events, useGET /events/scores to fetch live scores for one or more events, or GET /events/{eventId}/score for a single event. Events without a score row are omitted from the list response.
Check Trading Status
UseGET /trading-status to verify if the exchange is actively trading. This is useful for conditional logic before placing orders.
What’s Next
Now that you know how to discover events and markets, you’re ready to open positions.Open Positions
Create buy orders for YES or NO contracts
