> ## 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.

# Get Prediction Closed Positions

> Get a wallet's closed prediction market positions with resolution-aware realized PnL.

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


## OpenAPI

````yaml GET /2/wallet/pm/closed
openapi: 3.0.0
info:
  version: 1.0.0
  title: Mobula API
  description: >-
    Documentation of the Mobula API


    **Demo API**: The default server (demo-api.mobula.io) is a demo API with
    rate limits.

    For production use, please use api.mobula.io with an API key from
    https://admin.mobula.io
servers:
  - url: https://demo-api.mobula.io/api/
    description: Demo API (rate limited, for testing only)
  - url: https://api.mobula.io/api/
    description: Production API (requires API key)
security: []
tags:
  - name: V2 - Token
    description: Token details, price, security, ATH, and holder data
  - name: V2 - Market Data
    description: Market details, OHLCV history, and lighthouse metrics
  - name: V2 - Trades
    description: Token trades, enriched trades, and trade filters
  - name: V2 - Wallet
    description: Wallet positions, activity, trades, analysis, and labels
  - name: V2 - Assets
    description: Cross-chain asset details and price history
  - name: V2 - Swap
    description: Swap quoting and execution
  - name: V2 - Perps
    description: Perpetual futures quoting, execution, and positions
  - name: V2 - Bridge
    description: Cross-chain bridge quoting and intent status (Alpha Preview)
  - name: V2 - DeFi
    description: Bonding pools and pulse data
  - name: V2 - Search
    description: Universal fast search
  - name: V2 - Blockchains
    description: System metadata and chain listings
  - name: V1 - Market Data
    description: Market prices, history, sparklines, pairs, and multi-data
  - name: V1 - Wallet
    description: Wallet portfolio, transactions, history, and NFTs
  - name: V1 - Token
    description: First buyers
  - name: V1 - Trades
    description: Market trades by pair
  - name: V1 - Metadata
    description: Token metadata, categories, trendings, and news
  - name: V1 - Assets
    description: List all assets
  - name: V1 - Search
    description: Search for assets, tokens, and pairs
  - name: V1 - DeFi
    description: Bonding pool pulse data
  - name: V1 - Blockchains
    description: Blockchain listings, pairs, and stats
  - name: V1 - Webhooks
    description: Webhook management
  - name: V1 - Feed
    description: Custom feed creation
paths:
  /2/wallet/pm/closed:
    get:
      tags:
        - BUY
        - SELL
      summary: Wallet closed prediction-market positions
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: wallet
          in: query
        - schema:
            type: string
          required: false
          name: platforms
          in: query
      responses:
        '200':
          description: Prediction Markets response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        conditionId:
                          type: string
                        question:
                          type: string
                        logo:
                          type: string
                          nullable: true
                        slug:
                          type: string
                          nullable: true
                        lastDateMs:
                          type: number
                        investedUSD:
                          type: number
                        proceedsUSD:
                          type: number
                        realizedPnlUSD:
                          type: number
                        realizedPnlPercent:
                          type: number
                          nullable: true
                        redeemed:
                          type: boolean
                        won:
                          type: boolean
                        outcomes:
                          type: array
                          items:
                            type: object
                            properties:
                              label:
                                type: string
                              boughtShares:
                                type: number
                              exitedShares:
                                type: number
                              investedUSD:
                                type: number
                              proceedsUSD:
                                type: number
                            required:
                              - label
                              - boughtShares
                              - exitedShares
                              - investedUSD
                              - proceedsUSD
                      required:
                        - conditionId
                        - question
                        - lastDateMs
                        - investedUSD
                        - proceedsUSD
                        - realizedPnlUSD
                        - redeemed
                        - won
                        - outcomes
                  hostname:
                    type: string
                  took:
                    type: number
                required:
                  - data
                  - hostname
                  - took

````