curl --request GET \
--url https://demo-api.mobula.io/api/2/wallet/pm/positions{
"data": [
{
"platform": "<string>",
"market": {
"marketId": "<string>",
"question": "<string>",
"category": "<string>",
"status": "<string>",
"logo": "<string>",
"endDate": "<string>"
},
"outcomeId": "<string>",
"label": "<string>",
"balance": 123,
"costBasisUSD": 123,
"avgBuyPriceUSD": 123,
"avgSellPriceUSD": 123,
"priceUSD": 123,
"amountUSD": 123,
"unrealizedPnlUSD": 123,
"unrealizedPnlPercent": 123,
"realizedPnlUSD": 123,
"totalPnlUSD": 123,
"totalFeesPaidUSD": 123,
"buys": 123,
"sells": 123,
"volumeBuyUSD": 123,
"volumeSellUSD": 123,
"firstDate": "<string>",
"lastDate": "<string>",
"labels": [
"<string>"
]
}
],
"wallet": {
"fundingInfo": {},
"entity": "<string>",
"labels": [
"<string>"
]
},
"pagination": {
"page": 123,
"offset": 123,
"limit": 123,
"pageEntries": 123
},
"hostname": "<string>",
"took": 123
}Get a wallet’s prediction market positions with current value and PnL.
curl --request GET \
--url https://demo-api.mobula.io/api/2/wallet/pm/positions{
"data": [
{
"platform": "<string>",
"market": {
"marketId": "<string>",
"question": "<string>",
"category": "<string>",
"status": "<string>",
"logo": "<string>",
"endDate": "<string>"
},
"outcomeId": "<string>",
"label": "<string>",
"balance": 123,
"costBasisUSD": 123,
"avgBuyPriceUSD": 123,
"avgSellPriceUSD": 123,
"priceUSD": 123,
"amountUSD": 123,
"unrealizedPnlUSD": 123,
"unrealizedPnlPercent": 123,
"realizedPnlUSD": 123,
"totalPnlUSD": 123,
"totalFeesPaidUSD": 123,
"buys": 123,
"sells": 123,
"volumeBuyUSD": 123,
"volumeSellUSD": 123,
"firstDate": "<string>",
"lastDate": "<string>",
"labels": [
"<string>"
]
}
],
"wallet": {
"fundingInfo": {},
"entity": "<string>",
"labels": [
"<string>"
]
},
"pagination": {
"page": 123,
"offset": 123,
"limit": 123,
"pageEntries": 123
},
"hostname": "<string>",
"took": 123
}Comma-separated list of platforms
active, resolved, all amountUSD, totalPnlUSD, createdAt 1 <= x <= 100x >= 0