Documentation Index
Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
Use this file to discover all available pages before exploring further.
The Data API provides wallet endpoints for tracking holdings, recent trades, and portfolio value. These are separate from the PnL V2 system. Use them when you want a quick portfolio snapshot without full profit-and-loss calculations.
PnL means profit and loss. For detailed PnL with cost basis, win rate, and realized profit, use the PnL V2 wallet endpoints instead.
Wallet Tokens
The wallet tokens endpoint returns all tokens held by a wallet with current values.
curl "https://data.solanatracker.io/wallet/{walletAddress}" \
-H "x-api-key: YOUR_API_KEY"
Paginated Holdings
For wallets with many tokens, use the paginated endpoint:
# Page 1 (first page)
curl "https://data.solanatracker.io/wallet/{wallet}/page/1" \
-H "x-api-key: YOUR_API_KEY"
Basic Wallet Info
The basic wallet endpoint returns a lightweight summary — total value and token count without the full token list.
curl "https://data.solanatracker.io/wallet/{wallet}/basic" \
-H "x-api-key: YOUR_API_KEY"
Wallet Trades
The wallet trades endpoint returns recent trades across all tokens for a wallet.
curl "https://data.solanatracker.io/wallet/{wallet}/trades" \
-H "x-api-key: YOUR_API_KEY"
Portfolio Chart
The wallet chart endpoint returns historical portfolio value over time for building equity curves. An equity curve is a line chart of portfolio value over time.
curl "https://data.solanatracker.io/wallet/{wallet}/chart" \
-H "x-api-key: YOUR_API_KEY"
Wallet PnL
Use PnL V2 for wallet summaries, token positions, identity tags, PnL modes, and batch lookups.
# Wallet-level PnL summary
curl "https://data.solanatracker.io/v2/pnl/wallets/{wallet}" \
-H "x-api-key: YOUR_API_KEY"
# All token positions for a wallet
curl "https://data.solanatracker.io/v2/pnl/wallets/{wallet}/positions?sort=total&direction=desc" \
-H "x-api-key: YOUR_API_KEY"
# Token-specific PnL
curl "https://data.solanatracker.io/v2/pnl/wallets/{wallet}/tokens/{token}" \
-H "x-api-key: YOUR_API_KEY"
Top Traders
Use the Solana Traders Leaderboard for Solana-wide trader rankings, and Token Intelligence for token-specific trader rankings.
Solana Traders Leaderboard
curl "https://data.solanatracker.io/v2/pnl/leaderboard/top?days=30&sort=realized&direction=desc&limit=50" \
-H "x-api-key: YOUR_API_KEY"
Token-Specific Top Traders
curl "https://data.solanatracker.io/v2/pnl/tokens/{token}/traders?sort=pnl&direction=desc&limit=50" \
-H "x-api-key: YOUR_API_KEY"
Example: Wallet Dashboard
const wallet = "YOUR_WALLET_ADDRESS";
const headers = { "x-api-key": "YOUR_API_KEY" };
// 1. Basic info
const basic = await fetch(
`https://data.solanatracker.io/wallet/${wallet}/basic`, { headers }
).then(r => r.json());
// 2. All holdings
const holdings = await fetch(
`https://data.solanatracker.io/wallet/${wallet}`, { headers }
).then(r => r.json());
// 3. Recent trades
const trades = await fetch(
`https://data.solanatracker.io/wallet/${wallet}/trades`, { headers }
).then(r => r.json());
// 4. Portfolio chart
const chart = await fetch(
`https://data.solanatracker.io/wallet/${wallet}/chart`, { headers }
).then(r => r.json());
console.log(`Tokens held: ${holdings.length}`);
console.log(`Recent trades: ${trades.length}`);
console.log(`Chart data points: ${chart.length}`);
PnL V2 Wallet Analysis
Full PnL calculations with cost basis, win rate, and position tracking.
KOL Tracking
Track and compare KOL wallet performance over time.
Safety Streams
Monitor wallet transactions and balance changes in real time.
Live Prices
Stream real-time prices for tokens in a wallet’s portfolio.