Get PnL

The PnL (Profit and Loss) data is provided for a token or DeFi position (asset locked in the protocol).


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. The current release supports only Ethereum network and the following protocols and tokens:
    • Aave V3
    • SushiSwap V2
    • SushiSwap V3
    • UniSwap V2
    • UniSwap V3
    • Renzo
    • Lido
    • Venus
    • ERC20 tokens
    • Native tokens
    • Balancer V2
    • Aura Finance
    We are continuously expanding this list.

More details in the article

This endpoint allows you to retrieve the historical PnL for a given wallet address and position ID - token on the balance or DeFi position (you can get it using the Portfolio endpoint).

Language
Credentials
Header
Click Try It! to start a request and see the response here!