跳转到主要内容
GET
/
v2
/
pnl
/
wallets
/
{wallet}
/
history
SDK
import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getPnlV2WalletHistory('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF', { period: '30d' });
{
  "wallet": "CyaE1VxvBrahnPWkqm5VsdCvyS2QmNht2UFrKJHga54o",
  "identity": {
    "name": "Cented",
    "twitter": "@Cented7",
    "avatar": "https://kol-avatar.solanatracker.io/CyaE1VxvBrahnPWkqm5VsdCvyS2QmNht2UFrKJHga54o",
    "platforms": [
      "axiom",
      "bloom"
    ],
    "type": "kol",
    "tags": [
      "kol",
      "axiom",
      "bloom"
    ]
  },
  "days": [
    {
      "date": "2026-04-17",
      "cumulative": {
        "pnl": {
          "realized": 10634698.24,
          "unrealized": -1834.93,
          "total": 10632863.31
        },
        "cost": 49449916.77,
        "proceeds": 60084615.01,
        "openPositions": {
          "cost": 4125.18,
          "value": 3802.94
        },
        "counts": {
          "buys": 193365,
          "sells": 137486,
          "tokensTraded": 78007
        }
      },
      "activity": {
        "pnl": {
          "realized": 19119.76
        },
        "counts": {
          "buys": 680,
          "sells": 274
        },
        "volume": {
          "costUsd": 85101.2,
          "total": 188145.69
        },
        "averages": {
          "buy": 125.15,
          "sell": 376.07,
          "realizedPnl": 69.78,
          "holdTimeSecs": 0.06884671532846717
        }
      }
    },
    {
      "date": "2026-04-18",
      "cumulative": {
        "pnl": {
          "realized": 10649442.15,
          "unrealized": -1762.31,
          "total": 10647679.83
        },
        "cost": 49503916.09,
        "proceeds": 60153358.24,
        "openPositions": {
          "cost": 4172.59,
          "value": 4252.19
        },
        "counts": {
          "buys": 193834,
          "sells": 137680,
          "tokensTraded": 78125
        }
      },
      "activity": {
        "pnl": {
          "realized": 14625.1
        },
        "counts": {
          "buys": 470,
          "sells": 194
        },
        "volume": {
          "costUsd": 53226.11,
          "total": 121969.34
        },
        "averages": {
          "buy": 113.25,
          "sell": 354.35,
          "realizedPnl": 75.39,
          "holdTimeSecs": 0.008350515463917524
        }
      }
    }
  ],
  "summary": {
    "days": {
      "trading": 3,
      "positive": 3,
      "negative": 0,
      "breakEven": 0
    },
    "totals": {
      "realizedPnl": 40077.97,
      "volume": 378627.53
    },
    "winRate": 100,
    "totalDays": 8,
    "deltas": {
      "realized": 21077.02,
      "total": 21628.76
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt

Use this file to discover all available pages before exploring further.

SDK Example

import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getPnlV2WalletHistory('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF', { period: '30d' });

授权

x-api-key
string
header
必填

用于鉴权的 API Key

路径参数

wallet
string
必填

Solana 钱包地址(Base58,约 32–44 字符)

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$

查询参数

period
enum<string>

日期范围简写;若设置 start/end 则忽略

可用选项:
1d,
7d,
14d,
30d,
90d,
all
start
string<date>

开始日期(YYYY-MM-DD),默认 30 天前

end
string<date>

结束日期(YYYY-MM-DD),默认今天

limit
integer
默认值:365

最多返回天数;超出时仅返回最近的一段

必填范围: x <= 1000

响应

Successful response.

wallet
string
identity
object

Unified wallet identity. Only fields with known values are returned; a wallet can carry multiple tags at once.

days
object[]
summary
object