Skip to content
Use cases · Portfolio tracker

Build a portfolio tracker.

In short

A portfolio tracker shows a user's positions and how they are doing, kept current without refreshing. Chainmetric provides the data as documents you fetch over HTTP and follow live, on EVM chains and Solana.

How the pieces fit

Each screen of the app reads one Chainmetric document: a snapshot first, then the live stream.

ChainmetricWallet positionsWallet statsPricesToken statsYour portfolio trackerPositionsRealized and unrealized PnLPrice updatesToken detailsHTTP snapshot, then live stream

The data it needs

ScreenDocumentWhy
PositionsWallet positionsFetched once, then followed live.
Realized and unrealized PnLWallet statsFetched once, then followed live.
Price updatesPricesFetched once, then followed live.
Token detailsToken statsFetched once, then followed live.

Build it in four steps

  1. Pick your chains

    The same documents work on EVM chains and Solana.

  2. Load snapshots

    Fetch each document over HTTP to render the first screen.

  3. Subscribe

    Follow each document from its sequence number.

  4. Show finality

    Use each record's commitment level to mark what is still settling.

Questions people ask

What data do I need to build a portfolio tracker?

The documents shown above: wallet positions, wallet stats, prices, token stats.

Can I build a portfolio tracker without an SDK?

Yes. Chainmetric is plain HTTP, Server-Sent Events and WebSocket.

Does it work on Solana?

Yes. The same documents work on EVM chains and Solana.

Build on Chainmetric.

Live blockchain data and wallet intelligence on EVM chains and Solana, with one schema.