cURL
curl --request GET \ --url https://api.kamino.finance/kvaults/users/{userPubkey}/vaults/{vaultPubkey}/pnl
{ "totalPnl": { "usd": "1234.56789", "sol": "1234.56789", "token": "1234.56789" }, "totalCostBasis": { "usd": "1234.56789", "sol": "1234.56789", "token": "1234.56789" } }
Get current PnL and cost basis of user vault position
Valid base58-encoded address of the vault
"HDsayqAsDWy3QvANGqh2yNraqcD8Fnjgh73Mhb3WRS5E"
Valid base58-encoded address of the user wallet
"AxqtG9SHDkZTLSWg81Sp7VqAzQpRqXtR9ziJ3VQAS8As"
OK
Show child attributes