Skip to main content
GET
/
2
/
wallet
/
pm
/
closed
Wallet closed prediction-market positions
curl --request GET \
  --url https://demo-api.mobula.io/api/2/wallet/pm/closed
{
  "data": [
    {
      "conditionId": "<string>",
      "question": "<string>",
      "lastDateMs": 123,
      "investedUSD": 123,
      "proceedsUSD": 123,
      "realizedPnlUSD": 123,
      "redeemed": true,
      "won": true,
      "outcomes": [
        {
          "label": "<string>",
          "boughtShares": 123,
          "exitedShares": 123,
          "investedUSD": 123,
          "proceedsUSD": 123
        }
      ],
      "logo": "<string>",
      "slug": "<string>",
      "realizedPnlPercent": 123
    }
  ],
  "hostname": "<string>",
  "took": 123
}
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 closed positions for.
platforms
string
Comma-separated list of platforms to filter by.

Response

data
array
Array of closed positions (markets the wallet traded but no longer holds), newest first. Redeem payouts are valued from market resolution (net shares held × winning outcome price), since Polymarket’s redeem events carry no USD amount.
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/closed?wallet=0xYourWalletAddress"

Example Response

{
  "data": [
    {
      "conditionId": "0xadfc0dfb...",
      "question": "Bitcoin Up or Down — 12PM ET?",
      "logo": "https://...",
      "slug": "bitcoin-up-or-down",
      "lastDateMs": 1709913600000,
      "investedUSD": 4.43,
      "proceedsUSD": 5.27,
      "realizedPnlUSD": 0.84,
      "realizedPnlPercent": 18.96,
      "redeemed": true,
      "won": true,
      "outcomes": [
        {
          "label": "Up",
          "boughtShares": 5.27,
          "exitedShares": 0,
          "investedUSD": 4.43,
          "proceedsUSD": 5.27
        }
      ]
    }
  ],
  "hostname": "node-xyz",
  "took": 42
}

Query Parameters

wallet
string
required
Minimum string length: 1
platforms
string

Response

200 - application/json

Prediction Markets response

data
object[]
required
hostname
string
required
took
number
required