Leaderboard Page
LeaderboardPage ranks your app’s traders by realized P&L or volume over a preset period
(24h, 7d, 30d, all time). Identity fields (username, avatar, wallet) follow the app’s
leaderboardIdentity setting, which defaults to anonymous.
Rankings are GET /leaderboard. See Portfolio and Trader leaderboard.
Use Storybook as the source of truth for controls, layout states, and composition details.
Import
<AggProvider> from @agg-build/hooks.
Props
P&L is realized only (sells and settled markets, before fees) and refreshes every 5 minutes. Each row
carries
volume (buys and sells) and spent (buys only), so you can show either.