Get Swaps PnL

The Swaps PnL (Profit and Loss) data is provided for your swap transactions, analyzing the performance of your swap decisions over time.


Calculation logic

  1. Realized vs Unrealized PnL: We track both realized gains/losses from completed swaps and unrealized PnL based on current token prices.

  2. Swap Performance Analysis: Each swap is evaluated by comparing the tokens you received versus holding the original tokens.

  3. Protocol Coverage: Currently supports major DEX protocols including:

    • SushiSwap V2
    • SushiSwap V3
    • SushiSwap Route Processors (v3, v3.1, v3.2, v4, v5, v6, v7)

    We are continuously expanding this list.

  4. Time-based Analysis: Shows how your swap decisions performed over different time periods.


Use Cases

  • Analyze your swap performance across different DEX protocols
  • Identify profitable vs unprofitable swap strategies
  • Track realized and unrealized gains from your DeFi swap activity
  • Compare performance across different tokens and time periods

This endpoint allows you to retrieve the historical PnL for your swap transactions, helping you understand the performance impact of your swap decisions in DeFi protocols.

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