Get Aggregated PnL for multiple positions

The Aggregated PnL (Profit and Loss) data is provided for multiple specific positions across different wallets and DeFi protocols in a single consolidated calculation.


Calculation logic

  1. The current version is limited to open DeFi positions, while the next update will support historical closed positions as well.
  2. We separate the user's own funds from rewards. This allows us to account for both Profit & Loss movements and rewards, while incoming transfers, top-ups, and withdrawals are not considered as sources of income or loss.

    For example, if you staked 1 ETH with Lido and later received 1 stETH, only rewards generated by Lido are counted, not the income transfer or your initial balance.

  3. We support blue chip tokens and DeFi positions across major EVM chains.

More details in the article

This endpoint allows you to retrieve the historical PnL for multiple specific positions by providing a list of wallet addresses, categories, and position IDs - tokens on the balance or DeFi positions (you can get them using the Portfolio endpoint).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
enum
required

chain of the token

Body Params
integer
≥ 0

The end timestamp in milliseconds

  • Default: now - 30 days
integer
≥ 0

The start timestamp in milliseconds

  • Default: now
string
enum
Defaults to day

Granularity

  • Default: 1 day
Allowed:
integer
2 to 100
Defaults to 100

The maximum number of points to return

  • Default: 100
  • Max: 100
positions
array of objects
required

List of specific positions (wallet address + category + position ID) to calculate aggregated PnL for. Each position represents a unique token or DeFi position.

Positions*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json