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 PnL for.
Comma-separated list of platforms to filter by.
Response
Aggregated PnL data.
Total amount invested in USD.
Total amount redeemed from resolved markets in USD.
Realized profit/loss in USD.
Unrealized profit/loss on open positions in USD.
Total PnL (realized + unrealized) in USD.
Total number of markets traded.
Number of markets with active positions.
Request processing time in milliseconds.
Usage Example
curl -X GET "https://api.mobula.io/api/2/wallet/pm/pnl?wallet=0xYourWalletAddress"
Example Response
{
"data": {
"totalInvestedUSD": 1500,
"totalRedeemedUSD": 800,
"realizedPnlUSD": 300,
"unrealizedPnlUSD": 150,
"totalPnlUSD": 450,
"marketsTradedCount": 12,
"marketsActiveCount": 5
},
"hostname": "node-xyz",
"took": 42
}