Skip to main content
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.
This doc covers the data endpoints for querying positions, orders, and transaction history. Use these endpoints to build dashboards, track P&L, and maintain audit trails.

Prerequisite

To query position data, you need:
API REFERENCEFor complete endpoint specifications, see the Prediction API Reference.

Querying Positions

Use GET /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

Get a Specific Position


Querying Orders

Use GET /orders to retrieve order history and fill details.

Order Fill Details

Get All Orders

Get Order Status

Use GET /orders/status/{orderPubkey} for detailed status and event history.

Transaction History

Use GET /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