Positions
Snapshot of fungible holdings with notionals—the same conceptual shape as the active positions view in the app. Eligible wallets are described in Authentication.
Route
POST /api/v2/sdk/wallet/positions
Body
{
"walletAddress": "<solana address>"
}Response
walletBalance— total USDsolanaBalance,solanaValuetokens— name, symbol, image, address, amount, value in USD
Examples
walletPositions
import { SendyClient } from '@mvritz/sendy-sdk';
const client = new SendyClient({
apiKey: process.env.SENDY_API_KEY!,
});
const res = await client.walletPositions({
walletAddress: 'YOUR_WALLET',
});