What this endpoint does
With this API, you can:- Retrieve all token positions in a wallet on a specific blockchain
- Get wallet balances and USD values per token
- Access enriched token metrics like liquidity, volume, trades, and holders
- Track realized, unrealized, and total PnL per token
- Analyze wallet trading stats per token (buys, sells, volume, average prices)
What you’ll need
- Basic knowledge of REST APIs
- A wallet address
- A Mobula API key
Get a free API key: Here Optional:
- DexScreener (to find active wallets to test)
When to use Get Wallet Positions with PnL
Use this endpoint when you want to:- Build a wallet portfolio view (token list, balances, USD value)
- Track token-level wallet profitability with PnL
- Analyze wallet trading behavior across all holdings
- Power dashboards, wallet explorers, or trader profiling tools
If you want all token positions for a wallet, use wallet/positions.
Walkthrough to Get Wallet Positions for a Wallet
1. Prepare your query
Thewallet/positions endpoint requires two parameters:
| Parameter | Description |
|---|---|
wallet | Wallet address to analyze |
blockchain | Blockchain name or ID |
2. Find a wallet address to test
To get a real wallet example:- Open DexScreener
- Search for any token on the chain you want (Solana or Ethereum)
- Open the Top Traders or Holders section
- Click a wallet and copy the wallet address
wallet parameter.
3. Identify the blockchain
On DexScreener, check the chain for the token you used to find wallets. This value is used as theblockchain parameter.
4. Fill the API form
Once the wallet address is filled (and optional filters are set), click Send to retrieve the wallet’s positions data.Reviewing the wallet positions response
What you get per token position
- Token metadata: name, symbol, decimals, logo, contract address
- Token market metrics: price, liquidity, volume, trades, holders, market cap
- Security and socials: buy/sell tax, blacklist flags, top holders, and social links
- Wallet position data: balance, rawBalance, USD value
- Trading stats: buys, sells, buy/sell volumes, average buy/sell prices
- PnL breakdown: realized, unrealized, total PnL
- Time bounds: first and last interaction timestamps
Try It Live with Mobula Wallet Positions Demo (UI)
You can also test this endpoint using our demo UI: Demo UI Homepage Wallet Positions Demo UI DocsSummary
The Get Wallet Positions with PnL endpoint provides a full portfolio view of a wallet on a specific chain, including:- Token balances and USD value
- Enriched token metrics (liquidity, trades, holders, security)
- Trading stats per token
- Realized and unrealized PnL per token
Try Mobula for Free
Try our free API today and start building in minutes.Get your free API key: Here