Wallet - PnL Summary

Retrieve PnL of the entire wallet across all tokens


  • Notes on data: trade data per protocol aren't backfilled and might affect the calculation of PnL.
  • Insights in the responses
  • counts:
    • total_buy: Total number of buy trades.
    • total_sell: Total number of sell trades.
    • total_trade: Combined total of buys and sells.
    • total_win: Total trades have profit.
    • total_loss: Total trades in loss.
    • win_rate: Winning rate
  • cashflow_usd:
    • total_invested: USD spent on all buys.
    • total_sold: USD received from sales.
    • current_value: Current position value in USD.
  • pnl:
    • realized_profit_usd: Profit/loss from completed trades.
    • realized_profit_percent: % gain/loss relative to sold cost basis.
    • unrealized_usd: Profit/loss of current holdings (mark-to-market).
    • total_usd: Sum of realized + unrealized profit in USD.
    • avg_profit_per_trade_usd: Average profit/loss per trade.
Language
Credentials
Header
Click Try It! to start a request and see the response here!