> ## 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.

# Seguir posiciones y trades de wallets Solana

> Consulta balances de tokens, swaps recientes y gráficos de valor de una wallet Solana. Añade análisis de PnL cuando lo necesites.

Los endpoints de wallet ofrecen posiciones, swaps y valor del portafolio. Usa PnL V2 para consultar coste de adquisición, rendimientos realizados y resultados por token.

<Info>
  PnL significa ganancias y pérdidas. Para PnL detallado con cost basis, win rate y beneficio realizado, usa los [endpoints de wallet de PnL V2](/es/guides/pnl-v2/wallet-analysis).
</Info>

## Tokens del wallet

El [endpoint de tokens del wallet](/es/data-api/wallet/get-wallet-tokens) devuelve todos los tokens que posee una wallet con sus valores actuales.

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://data.solanatracker.io/wallet/{walletAddress}" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const wallet = "YOUR_WALLET_ADDRESS";

  const res = await fetch(`https://data.solanatracker.io/wallet/${wallet}`, {
    headers: { "x-api-key": "YOUR_API_KEY" }
  });
  const { tokens } = await res.json();

  tokens.forEach(t => {
    console.log(`${t.token.name}: ${t.balance} ($${t.value?.toFixed(2)})`);
  });
  ```

  ```python Python theme={null}
  import requests

  wallet = "YOUR_WALLET_ADDRESS"
  res = requests.get(f"https://data.solanatracker.io/wallet/{wallet}",
      headers={"x-api-key": "YOUR_API_KEY"})

  for t in res.json()["tokens"]:
      print(f"{t['token']['name']}: {t['balance']} (${t.get('value', 0):.2f})")
  ```
</CodeGroup>

### Holdings paginados

Para wallets con muchos tokens, usa el [endpoint paginado](/es/data-api/wallet/get-wallet-tokens-with-pagination):

```bash theme={null}
# Page 1 (first page)
curl "https://data.solanatracker.io/wallet/{wallet}/page/1" \
  -H "x-api-key: YOUR_API_KEY"
```

## Información básica del wallet

El [endpoint básico de wallet](/es/data-api/wallet/get-basic-wallet-information) devuelve un resumen ligero — valor total y conteo de tokens sin la lista completa.

```bash theme={null}
curl "https://data.solanatracker.io/wallet/{wallet}/basic" \
  -H "x-api-key: YOUR_API_KEY"
```

## Operaciones del wallet

El [endpoint de operaciones del wallet](/es/data-api/wallet/get-wallet-trades) devuelve las operaciones recientes de un wallet en todos los tokens.

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://data.solanatracker.io/wallet/{wallet}/trades" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const wallet = "YOUR_WALLET_ADDRESS";

  const res = await fetch(`https://data.solanatracker.io/wallet/${wallet}/trades`, {
    headers: { "x-api-key": "YOUR_API_KEY" }
  });
  const { trades } = await res.json();

  trades.forEach(t => {
    console.log(`${t.from.token.symbol} → ${t.to.token.symbol}: $${t.volume.usd.toFixed(2)} at ${new Date(t.time).toISOString()}`);
  });
  ```
</CodeGroup>

## Gráfico de portfolio

El [endpoint de gráfico de wallet](/es/data-api/wallet/get-wallet-portfolio-chart) devuelve el valor histórico del portfolio a lo largo del tiempo para construir curvas de equity. Una curva de equity es un gráfico de líneas del valor del portfolio a lo largo del tiempo.

<img src="https://mintcdn.com/solanatracker/ZM5vWoSAJUJFeh6A/images/guides/wallet-tags.png?fit=max&auto=format&n=ZM5vWoSAJUJFeh6A&q=85&s=01ede7436f795c1f3e4887d29d4226e1" alt="Dashboard de wallet mostrando patrimonio neto, etiquetas de identidad y gráfico del portfolio" width="2542" height="832" data-path="images/guides/wallet-tags.png" />

```bash theme={null}
curl "https://data.solanatracker.io/wallet/{wallet}/chart" \
  -H "x-api-key: YOUR_API_KEY"
```

## PnL del wallet

Usa [PnL V2](/es/guides/pnl-v2/overview) para resúmenes de wallet, posiciones de tokens, etiquetas de identidad, modos de PnL y consultas por lotes.

```bash theme={null}
# Wallet-level PnL summary
curl "https://data.solanatracker.io/v2/pnl/wallets/{wallet}" \
  -H "x-api-key: YOUR_API_KEY"

# All token positions for a wallet
curl "https://data.solanatracker.io/v2/pnl/wallets/{wallet}/positions?sort=total&direction=desc" \
  -H "x-api-key: YOUR_API_KEY"

# Token-specific PnL
curl "https://data.solanatracker.io/v2/pnl/wallets/{wallet}/tokens/{token}" \
  -H "x-api-key: YOUR_API_KEY"
```

## Top traders

Usa el [Leaderboard de Traders de Solana](/es/guides/pnl-v2/leaderboards#solana-traders-leaderboard) para rankings de traders en toda Solana, e [Inteligencia de tokens](/es/guides/pnl-v2/token-intelligence) para rankings de traders específicos de un token.

### Leaderboard de Traders de Solana

```bash theme={null}
curl "https://data.solanatracker.io/v2/pnl/leaderboard/top?days=30&sort=realized&direction=desc&limit=50" \
  -H "x-api-key: YOUR_API_KEY"
```

### Top traders específicos de un token

```bash theme={null}
curl "https://data.solanatracker.io/v2/pnl/tokens/{token}/traders?sort=pnl&direction=desc&limit=50" \
  -H "x-api-key: YOUR_API_KEY"
```

## Ejemplo: dashboard de wallet

```javascript theme={null}
const wallet = "YOUR_WALLET_ADDRESS";
const headers = { "x-api-key": "YOUR_API_KEY" };

// 1. Basic info
const basic = await fetch(
  `https://data.solanatracker.io/wallet/${wallet}/basic`, { headers }
).then(r => r.json());

// 2. All holdings
const holdings = await fetch(
  `https://data.solanatracker.io/wallet/${wallet}`, { headers }
).then(r => r.json());

// 3. Recent trades
const trades = await fetch(
  `https://data.solanatracker.io/wallet/${wallet}/trades`, { headers }
).then(r => r.json());

// 4. Portfolio chart
const chart = await fetch(
  `https://data.solanatracker.io/wallet/${wallet}/chart`, { headers }
).then(r => r.json());

console.log(`Tokens held: ${holdings.tokens.length}`);
console.log(`Recent trades: ${trades.trades.length}`);
console.log(`Chart data points: ${chart.chartData.length}`);
```

<CardGroup cols={2}>
  <Card title="PnL de la wallet" href="/es/guides/pnl-v2/wallet-analysis">
    Cálculos completos de PnL con cost basis, win rate y seguimiento de posiciones.
  </Card>

  <Card title="Rendimiento KOL" href="/es/guides/kol-tracking">
    Sigue y compara el rendimiento de wallets de KOLs a lo largo del tiempo.
  </Card>

  <Card title="Riesgo en vivo" href="/es/guides/datastream-safety">
    Monitoriza transacciones y cambios de saldo del wallet en tiempo real.
  </Card>

  <Card title="Precios en vivo" href="/es/guides/datastream-prices">
    Transmite precios en tiempo real para tokens en el portfolio de un wallet.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.