SENDY

Balance history

Time series of portfolio balance and SOL balance for an allowed wallet. Timeframe matches the in-app portfolio chart ranges. This route does not include live WebSocket transactions; use Trade stream for realtime fills (or Token stream for one mint ).

Route

POST /api/v2/sdk/wallet/balance-history

Body

{
  "walletAddress": "<solana address>",
  "timeframe": "day | week | month | year"
}

Response

  • purchasingPower — SOL available
  • solanaInUsd — reference SOL price used for framing
  • balances — points with balance, solanaBalance, timestamp

Examples

walletBalanceHistory
import { SendyClient } from '@mvritz/sendy-sdk';

const client = new SendyClient({
  apiKey: process.env.SENDY_API_KEY!,
});

const res = await client.walletBalanceHistory({
  walletAddress: 'YOUR_WALLET',
  timeframe: 'day',
});