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.
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:
What is a trader's total PnL across all prediction markets?
Which markets has this address traded, and what were the results?
Does this trader have unrealized positions?
API key for authentication
Request for PnL by address endpoint.
Wallet address (hex, with or without 0x prefix)
0x1234567890abcdef1234567890abcdef12345678Sort order
[{"direction":"DESC","field":"total_pnl_usd"}]PnL by address data
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
Unprocessable Content
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
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?