Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Query Parameters
The wallet address to get positions for.
Comma-separated list of platforms to filter by.
Position status filter: active, resolved, or all.
sortBy
string
default:"amountUSD"
Sort order: amountUSD, totalPnlUSD, or createdAt.
Number of positions to return (1 to 100).
Response
Array of wallet positions.
Market information.
Market end date (ISO 8601).
Number of outcome tokens held.
Average buy price in USD.
Average sell price in USD.
Current position value in USD.
Unrealized profit/loss in USD.
Unrealized PnL as percentage.
Realized profit/loss in USD.
Total PnL in USD (realized + unrealized).
Total sell volume in USD.
Timestamp of first trade (ISO 8601).
Timestamp of last trade (ISO 8601).
Position-specific labels.
Wallet metadata (fundingInfo, entity, labels). Null when unavailable.
Pagination metadata.
Number of entries in this page.
Request processing time in milliseconds.
Usage Example
curl -X GET "https://api.mobula.io/api/2/wallet/pm/positions?wallet=0xYourWalletAddress&status=active"
Example Response
{
"data": [
{
"platform": "polymarket",
"market": {
"marketId": "0x1234...",
"question": "Will ETH reach $10,000 by end of 2026?",
"category": "crypto",
"status": "active",
"logo": "https://polymarket.com/images/market.png",
"endDate": "2026-12-31T23:59:59.000Z"
},
"outcomeId": "71321...",
"label": "Yes",
"balance": 100,
"costBasisUSD": 35,
"avgBuyPriceUSD": 0.35,
"avgSellPriceUSD": null,
"priceUSD": 0.42,
"amountUSD": 42,
"unrealizedPnlUSD": 7,
"unrealizedPnlPercent": 20,
"realizedPnlUSD": 0,
"totalPnlUSD": 7,
"totalFeesPaidUSD": 0.12,
"buys": 2,
"sells": 0,
"volumeBuyUSD": 35,
"volumeSellUSD": 0,
"firstDate": "2026-02-01T10:00:00.000Z",
"lastDate": "2026-02-15T14:30:00.000Z",
"labels": []
}
],
"wallet": null,
"pagination": {
"page": 1,
"offset": 0,
"limit": 50,
"pageEntries": 1
},
"hostname": "node-xyz",
"took": 42
}