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 position data, you need:- An API key from the Portal
Querying Positions
UseGET /positions to retrieve position data with comprehensive P&L information.
List endpoints (
/positions, /orders, /history) return a pagination object alongside data:
Position Fields
Each position includes identity, state, and P&L fields. All USD values are in micro USD (1,000,000 = $1.00).Identity and State
Pricing and P&L
Metadata
Get All Positions
Aggregating Portfolio P&L
Aggregating Portfolio P&L
Get a Specific Position
Querying Orders
UseGET /orders to retrieve order history and fill details.
Order Fill Details
Get All Orders
Get Order Status
UseGET /orders/status/{orderPubkey} for detailed status and event history.
Transaction History
UseGET /history to retrieve a complete audit trail of all prediction market activity.
Event Types
History Event Fields
Each history event includes these fields. All USD values are in micro USD (1,000,000 = $1.00).Get Transaction History
What’s Next
Explore social features to view profiles, follow traders, and track leaderboards.Social Features
Profiles, leaderboards, and trade feeds
