Skip to main content
GET
/
2
/
wallet
/
pm
/
pnl
Wallet P&L on prediction markets
curl --request GET \
  --url https://demo-api.mobula.io/api/2/wallet/pm/pnl
{
  "data": {
    "realizedPnlUSD": 123,
    "unrealizedPnlUSD": 123,
    "totalPnlUSD": 123,
    "totalInvestedUSD": 123,
    "totalRedeemedUSD": 123,
    "realizedPnlPercent": 123,
    "totalPnlPercent": 123
  },
  "hostname": "<string>",
  "took": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Query Parameters

wallet
string
required
The wallet address to get PnL for.
platforms
string
Comma-separated list of platforms to filter by.

Response

data
object
Aggregated PnL data.
hostname
string
Server node identifier.
took
number
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
}

Query Parameters

wallet
string
required
Minimum string length: 1

Response

200 - application/json

Prediction Markets response

data
object
required
hostname
string
required
took
number
required