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.

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

Wallet address in a chain

string
enum
required

chain of the token

Allowed:
Body Params

Request model for the swaps PNL endpoint.

integer

The start timestamp in milliseconds

  • Default: now - 30 days
integer

The end timestamp in milliseconds

  • Default: now
array | null

List of protocol names to filter by
Available options:

  • sushi-v2 → SushiSwap V2
  • sushi-v3 → SushiSwap V3
  • sushi-swap-aggregator → SushiSwap Route Processors (v3, v3.1, v3.2, v4, v5, v6, v7)

Default: All protocols

array | null

List of token addresses to filter by

  • Default: All tokens
integer
2 to 100
Defaults to 100

The maximum number of points to return

  • Default: 100
  • Max: 100
Responses

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