Balances API
PnL card
Profit and loss for wallets on a token
POST
Returns a PnL summary for a non-empty list of payment key hashes (wallets) and a single asset. The response may be
null when the service has no PnL data to return.
Auth: Public
POST requests must send Content-Type: application/json. The first input in the Tapir definition is that content type; the route handler only uses the asset id and JSON body.
Query parameters
Cardano asset ID (
policyId.hexAssetName).Request body
JSON array of 56-character hex payment key hashes (at least one element).Response
200 with a JSON object or null.
Serialized asset ID (
policyId.assetName).PnL as a percent (e.g.
15.50 for 15.50%), scaled to 2 decimal places.Total ADA invested (decimal string, 6 fractional digits).
Current total ADA gain (realized + unrealized), decimal string (6 fractional digits).