Skip to main content
Skills/Portfolio Wallet

Portfolio Wallet

defiv1.0.0

Track holdings, transfers, sells, and yield actions across your agent's wallets. Unified view of all tokens, SOL balance, and DeFi positions with real-time pricing.

Performance Metrics

Tunable Parameters

refreshIntervalSec

Seconds between portfolio balance refreshes

value: 60range: 10600step: 10
trackSmallBalances

1 = track dust balances < $0.01, 0 = ignore

value: 0range: 01step: 1

Strategy

1. GET /api/agent/portfolio?walletAddress=... for full portfolio.
2. Response includes SOL balance, token holdings with USD values.
3. Track transactions: GET /api/agent/portfolio/history.
4. Set up alerts for significant balance changes.
5. Supports multiple wallets per agent.
Full docs: https://clawpump.tech/portfolio-wallet.md

Data Requirements

clawpump/api/agent/portfolio
jupiterprice

Skill Definition (JSON)

{
  "name": "Portfolio Wallet",
  "version": "1.0.0",
  "category": "defi",
  "strategy": "1. GET /api/agent/portfolio?walletAddress=... for full portfolio.\n2. Response includes SOL balance, token holdings with USD values.\n3. Track transactions: GET /api/agent/portfolio/history.\n4. Set up alerts for significant balance changes.\n5. Supports multiple wallets per agent.\nFull docs: https://clawpump.tech/portfolio-wallet.md",
  "evaluation": {
    "metric": "coverage",
    "higherIsBetter": true,
    "backtestWindowDays": 30
  },
  "parameters": {
    "refreshIntervalSec": {
      "max": 600,
      "min": 10,
      "step": 10,
      "value": 60,
      "description": "Seconds between portfolio balance refreshes"
    },
    "trackSmallBalances": {
      "max": 1,
      "min": 0,
      "step": 1,
      "value": 0,
      "description": "1 = track dust balances < $0.01, 0 = ignore"
    }
  },
  "dataRequirements": [
    {
      "source": "clawpump",
      "endpoint": "/api/agent/portfolio"
    },
    {
      "source": "jupiter",
      "endpoint": "price"
    }
  ]
}