Pnl
Last updated
Returns the materialized cost basis position for chart overlay.
source: amm | sodax
avgCostBasis: USD per display token unit
totalQty: remaining display token quantity
Returns zeroed fields when no position exists.
No content
No content
Returns all non-zero positions with live unrealized PnL for the Balances tab.
AMM and SODAX positions are returned as separate items (source field).
unrealizedPnl = (currentPrice − avgCostBasis) × totalQty (USD)
Fully closed positions (totalQty = 0) are excluded.
No content
No content
Last updated
GET /api/pnl/position?source=amm&tokenId=text HTTP/1.1
Host: api.radfi.co
Accept: */*
GET /api/pnl/balances HTTP/1.1
Host: api.radfi.co
Accept: */*