Token PnL
Per-token fields where the pricing layer exposes a PnL percentage. Omit mint to return all qualifying rows; provide a mint to narrow to one token you hold or previously sized. Availability follows the Sendy indexer.
Route
POST /api/v2/sdk/wallet/token-pnl
Body
{
"walletAddress": "<solana address>",
"mint": "<optional token mint>"
}Response
tokens— array entries withaddress, amounts, USD / SOL notionals, and optionalpnl.profitPercentage
Examples
walletTokenPnl
import { SendyClient } from '@mvritz/sendy-sdk';
const client = new SendyClient({
apiKey: process.env.SENDY_API_KEY!,
});
const res = await client.walletTokenPnl({
walletAddress: 'YOUR_WALLET',
mint: 'TOKEN_MINT_OPTIONAL',
});