360 Secure SkillHub
360 安全技能中心

wallet-pnl

调用付费 API 或自托管脚本分析 Solana 钱包的 Swap 历史,返回胜率、已实现 PnL(SOL)、交易者类型和跟单评级,并列出高频交易代币与近期交易,用于判断该钱包是否值得跟单。

ultranumblol
ultranumblol
热度 54.66
最近更新 2026-05-11 17:28:50
分类:数据依赖:第三方 API / 代码执行应用场景:财务 / 市场分析 / 报告撰写 / 推荐

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wallet-pnl
Metadata
name
wallet-pnl
description
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 worth copying, analyze smart money performance, check a trader's win rate, evaluate a wallet's PnL, or decide whether to follow a wallet's trades. Keywords: copy trade, wallet analysis, win rate, PnL, smart money, trader stats.
metadata
{"openclaw":{"requires":{"bins":["python3"]},"env":["HELIUS_API_KEY"],"primaryEnv":"HELIUS_API_KEY"}}

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

Rating Meaning
✅ FOLLOW Win rate ≥ 60% and positive PnL — worth copying
⚠️ NEUTRAL Mixed results — monitor before copying
🚨 AVOID Low win rate or negative PnL — do not copy

Trader Types

Type Meaning
WHALE Avg trade > 10 SOL
DEGEN 50+ trades, high frequency
TRADER Balanced buy/sell activity
HOLDER Mostly buying, holding
INACTIVE Fewer 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).