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
string
required
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.
string
Serialized asset ID (
policyId.assetName).string
PnL as a percent (e.g.
15.50 for 15.50%), scaled to 2 decimal places.string
Total ADA invested (decimal string, 6 fractional digits).
string
Current total ADA gain (realized + unrealized), decimal string (6 fractional digits).