For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

PnL By Address

Data Freshness & Historical Coverage

For data freshness and historical coverage, see Data Coverage by Chain; this endpoint follows it except where noted below.

  • Returns current, cumulative PnL across an address's prediction-market positions — there is no date-range parameter or historical look-back, and values reflect within the standard live latency.

Deprecated

Get Prediction Market PnL by Address

post

Get profit and loss across all prediction markets for a specific wallet address. Each row covers one market and one outcome, such as Yes or No, including past positions. A wallet that traded both outcomes has two rows for that market. Rows sort independently, so the outcomes can appear on different pages.

To compare with PnL by Market, collect all available pages and sum the monetary fields for all outcomes of the same market. PnL by Market combines outcomes into one wallet row. If you have only some pages, label the comparison or wallet total as incomplete.

What it helps to answer:

  1. What is a trader's total PnL across all prediction markets?

  2. Which markets has this address traded, and what were the results?

  3. Does this trader have unrealized positions?

Authorizations
apikeystringRequired

API key for authentication

Body

Request for PnL by address endpoint.

addressstring · min: 1 · max: 100Required

Wallet address (hex, with or without 0x prefix)

Example: 0x1234567890abcdef1234567890abcdef12345678
order_byany ofOptional

Sort order

Example: [{"direction":"DESC","field":"total_pnl_usd"}]
Responses
200

PnL by address data

application/json
post/api/v1/prediction-market/pnl-by-address
POST /api/v1/prediction-market/pnl-by-address HTTP/1.1
Host: api.nansen.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 152

{
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "pagination": {
    "page": 1,
    "per_page": 10
  },
  "order_by": [
    {
      "direction": "DESC",
      "field": "total_pnl_usd"
    }
  ]
}
{
  "pagination": {
    "page": 1,
    "per_page": 10,
    "is_last_page": true
  },
  "data": [
    {
      "address": "text",
      "market_id": "text",
      "question": "text",
      "event_id": "text",
      "event_title": "text",
      "side_held": "Yes",
      "net_buy_cost_usd": 1,
      "net_sell_proceeds_usd": 1,
      "redemption_value_usd": 1,
      "unrealized_value_usd": 1,
      "total_pnl_usd": 1,
      "market_resolved": true
    }
  ]
}

Last updated

Was this helpful?