Vike Io Vike Wallet Positions
ASecurityShow what one wallet made or lost on each token it traded on Ethereum, BSC, Base or HyperEVM - per token the amount and USD bought and sold, average buy and sell price, realized profit, the balance held now with its value and unrealized profit - plus its total realized and unrealized PnL and how many tokens were profitable. Use when the user asks "what did this wallet make on each token" / "is 0x... in profit" / "what is it holding and at what cost" / "its biggest wins and losses" / "what is ...
- 81 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Works with
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add jiayaoqijia/cryptoskill --skill vike-io-vike-wallet-positions --agent claude-codeAre you the author of Vike Io Vike Wallet Positions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jiayaoqijia-vike-io-vike-wallet-positions)---
name: vike-wallet-positions
description: Show what one wallet made or lost on each token it traded on Ethereum, BSC, Base or HyperEVM - per token the amount and USD bought and sold, average buy and sell price, realized profit, the balance held now with its value and unrealized profit - plus its total realized and unrealized PnL and how many tokens were profitable. Use when the user asks "what did this wallet make on each token" / "is 0x... in profit" / "what is it holding and at what cost" / "its biggest wins and losses" / "what is its average entry on PEPE".
allowed-tools: Bash(vike-data:*)
---
# vike-wallet-positions
Per-token positions with average-cost PnL for one wallet on one chain. 1 request per call. The `totals` cover every token the wallet traded; `positions` are the top `limit` rows by the chosen sort.
## Example questions
- "Is 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 in profit on Ethereum?"
- "What are this wallet's five biggest losses on BSC?"
- "What does it hold right now and at what average entry?"
## Call it
Use the first of these that is available:
1. **MCP:** the `wallet_positions` tool with `address`, `chain` (`ethereum`, `bsc`, `base`, `hyperevm`; default `ethereum`), `sort` (`realized`, `unrealized`, `value`; default `realized`), `order` (`desc` biggest first, `asc` biggest losses first) and `limit` (1-100, default 20).
2. **CLI:** there is no command of its own; `call` prints the tool's raw JSON:
```bash
vike-data call wallet_positions --args '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"ethereum","sort":"value","limit":10}'
vike-data call wallet_positions --args '{"address":"0x...","chain":"bsc","sort":"realized","order":"asc","limit":5}' # biggest losses
```
3. **curl:** the credential is `VIKE_API_KEY`, else `api_key` or `anon_token` from `~/.vike/config.json` (Windows `%USERPROFILE%\.vike\config.json`); with none, get a free anonymous token with `curl -s -X POST https://data.vike.io/v1/anon -H 'Content-Type: application/json' -d '{"source":"skill-curl"}'` and save its `token` there as `"anon_token"` (see `vike-core`).
```bash
curl -s "https://data.vike.io/v1/onchain/wallets/$A/positions?chain=ethereum&sort=unrealized&limit=20" -H "X-API-KEY: $TOKEN"
```
`limit` above 100: the tool (MCP and `call`) silently returns 100; the REST route refuses it with HTTP 422.
## Reading the answer
- `totals`: `realized_pnl_usd`, `unrealized_pnl_usd` (over the tokens where it is known), `tokens_traded`, `tokens_profitable`, `as_of` (when the wallet's lifetime PnL in the rankings was last recomputed, nightly; positions already count trades since then; `null` for a wallet the rankings leave out, such as a routing hub or a dust wallet). Quote these for "is it in profit".
- `positions[]`: `token_address`, `symbol`, `name`, `bought_qty`, `bought_usd`, `sold_qty`, `sold_usd`, `avg_buy_price`, `avg_sell_price` (USD per token), `realized_pnl_usd`, `balance` (read from the chain now), `price_usd` (latest daily price), `value_usd`, `unrealized_pnl_usd` = balance x (price_usd - avg_buy_price). `null` = not known (no price, or nothing bought).
- The chain's coin and its wrapped token (WETH, WBNB, WHYPE) are ONE row under `0x0000000000000000000000000000000000000000`.
- `found: false`: no priced trade on that chain; try the chain the wallet is active on.
## How the PnL is counted (say it when it matters)
- **Bought = every priced inbound transfer, sold = every priced outbound one**: a swap, a gift, a payment, an exchange withdrawal or deposit and a move between the owner's own wallets all count. A transfer with no USD price (a mint, a pre-listing airdrop) is neither.
- **Average cost over the whole history, order ignored**: in effect realized = the units both bought and sold x (avg sell - avg buy). Only bought units are realized. A wallet that sold coins it got for free early and later received coins at a higher price shows a large realized LOSS: on Ethereum `0xd8dA6BF2...6045` reads about -$34M on ETH (88,137 ETH sold at an average $934, 14,030 ETH "bought" at $3,389). Treat a huge realized figure on a wallet that receives payments, grants or own-wallet moves as an artefact, not trading.
- Ethereum stablecoins and disabled tokens are left out.
## Answer template
> On `<chain>`, `<address>` traded `<tokens_traded>` tokens, `<tokens_profitable>` profitable: realized `$<realized>`, unrealized `$<unrealized>` (as of `<as_of>`). Biggest: `<symbol>` bought `<qty>` at `$<avg_buy>`, sold at `$<avg_sell>`, realized `$<r>`, holds `<balance>` worth `$<value>` (`$<unrealized>`). Average-cost on transfers, not a trade ledger.
## Errors
- `sort must be one of realized, unrealized, value and order desc or asc`, exit 1: fix the value.
- `{"error":"address is required"}`: the `address` key is missing from `--args`.
- Exit code 3: the anonymous token's limit; tell the user to run `vike-data login` (400 a day), do not retry.
## See also
- `vike-wallet-balances` (every holding on four chains, no cost basis), `vike-wallet-pnl-history` (a daily net-flow series, not this PnL)
- `vike-wallet-discover` (wallets ranked by PnL), `vike-hl-trader-profile` for Hyperliquid perp PnL
Files in this skill
- LICENSE
- SKILL.md
- SOURCE.md
- TRUST.auto.yaml
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.