wallet-pnl

v1.0.0

Analyze any Solana wallet's trading history: win rate, realized PnL, trader type, and copy-trade rating. Use when the user wants to check if a wallet is wort...

0· 316· 1 versions· 0 current· 0 all-time· Updated 12h ago· MIT-0
byLougseus@ultranumblol

Install

openclaw skills install wallet-pnl

Solana Wallet PnL Analyzer

Analyze any Solana wallet's swap history to determine if it's worth copy-trading. Returns win rate, realized PnL in SOL, trader classification, and top traded tokens.

Paid API

$0.03 USDC per request via x402 on Base chain:

npx awal@latest x402 pay "https://wallet-pnl-production.up.railway.app/pnl?wallet=WALLET_ADDRESS"

API Response

{
  "wallet": "AbCd...XyZw",
  "summary": {
    "trader_type": "TRADER",
    "copy_rating": "FOLLOW",
    "total_trades": 87,
    "win_rate_pct": 64.3,
    "win_trades": 36,
    "loss_trades": 20,
    "realized_pnl_sol": 12.45,
    "avg_trade_size_sol": 0.85
  },
  "most_traded_tokens": [...],
  "recent_trades": [...]
}

Copy Rating Guide

RatingMeaning
✅ FOLLOWWin rate ≥ 60% and positive PnL — worth copying
⚠️ NEUTRALMixed results — monitor before copying
🚨 AVOIDLow win rate or negative PnL — do not copy

Trader Types

TypeMeaning
WHALEAvg trade > 10 SOL
DEGEN50+ trades, high frequency
TRADERBalanced buy/sell activity
HOLDERMostly buying, holding
INACTIVEFewer than 5 trades found

Self-Hosted

pip install -r {baseDir}/api/requirements.txt
python3 {baseDir}/scripts/pnl.py <WALLET_ADDRESS>

Requires HELIUS_API_KEY for transaction history (free at helius.xyz).

Version tags

copy-tradevk97fhn86ykvpg4t8k4fe6hc2fd82bemacryptovk97fhn86ykvpg4t8k4fe6hc2fd82bemadefivk97fhn86ykvpg4t8k4fe6hc2fd82bemalatestvk97fhn86ykvpg4t8k4fe6hc2fd82bemapnlvk97fhn86ykvpg4t8k4fe6hc2fd82bemasmart-moneyvk97fhn86ykvpg4t8k4fe6hc2fd82bemasolanavk97fhn86ykvpg4t8k4fe6hc2fd82bematradingvk97fhn86ykvpg4t8k4fe6hc2fd82bemawallet-analysisvk97fhn86ykvpg4t8k4fe6hc2fd82bemawin-ratevk97fhn86ykvpg4t8k4fe6hc2fd82bema

Runtime requirements

Binspython3
Primary envHELIUS_API_KEY
Environment variables
HELIUS_API_KEYrequired