Indexer
warning
Indexer APIs are continuously evolving and may break.
The Indexer is responsible for synchronizing on-chain Solana state with our fast off-chain database. It provides a lightweight Hono.js REST API for querying historical and aggregated data.
API Reference
The Indexer API is available at: https://indexer.api.test.winnr.trade/api/v1
Markets
GET /markets- List all markets with optional status filtering.
- Query Params:
status(active,halted,resolution_pending,resolved),limit(default 50).
GET /markets/:id- Get detailed information for a specific market by ID.
GET /markets/:id/chart- Get historical price/probability data points for charting.
- Query Params:
startTime,endTime,limit.
GET /markets/:id/trades- Get the most recent trade history for a specific market.
Trades & Activity
GET /trades- Get trade activity for a specific user address across all markets.
- Query Params:
userAddress(Required),page,limit.
Portfolio & Positions
GET /positions- Get active share balances, costs, and current market value for a specific user.
- Query Params:
user_address(Required),page,limit.