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

# 代币研究

> 使用 Solana Tracker Data API 在一处查询任意 Solana 代币的统计数据、持有者、交易记录、池事件以及完整市场活动指标。

使用 Data API 研究任意 Solana 代币。您可以拉取基本信息、实时统计、持有者细分、最近交易和链上事件。这些内容可以为代币面板或研究工具提供所需的数据。

## 获取代币信息

[token information 端点](/cn/data-api/get-token-information)返回任意代币的元数据和市场数据。

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

  ```javascript JavaScript theme={null}
  const token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump";

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

  console.log(`${data.token.name} (${data.token.symbol})`);
  console.log(`Price: $${data.pools[0]?.price?.usd}`);
  console.log(`Market Cap: $${data.pools[0]?.marketCap?.usd}`);
  ```

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

  token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump"
  res = requests.get(
      f"https://data.solanatracker.io/tokens/{token}",
      headers={"x-api-key": "YOUR_API_KEY"}
  )
  data = res.json()
  print(f"{data['token']['name']} ({data['token']['symbol']})")
  ```
</CodeGroup>

***

## 代币统计

[token stats 端点](/cn/data-api/get-token-stats)提供跨时间窗口的交易量、买/卖笔数和独立交易者数。

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

返回按 `5m`、`1h`、`6h` 和 `24h` 窗口细分的统计数据,包括:

* 买入和卖出量(美元)
* 买入和卖出笔数
* 独立买家和卖家数量
* 价格变动百分比

***

## 代币持有者

### 前 100 名

[top 100 holders 端点](/cn/data-api/get-token-holders-top-100)返回最大的代币持有者。

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

### 所有持有者(分页)

要获取完整持有者列表,请使用[分页持有者端点](/cn/data-api/get-all-token-holders-paginated):

```bash theme={null}
# 第 1 页
curl "https://data.solanatracker.io/tokens/{token}/holders/paginated?page=1&limit=100" \
  -H "x-api-key: YOUR_API_KEY"
```

***

## 最近交易

[token trades 端点](/cn/data-api/get-token-trades)返回最近的买入和卖出。

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

  ```javascript JavaScript theme={null}
  const token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump";

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

  trades.forEach(t => {
    const side = t.type === "buy" ? "BUY" : "SELL";
    console.log(`${side} $${t.volume.toFixed(2)} by ${t.wallet}`);
  });
  ```
</CodeGroup>

您还可以按池或特定钱包过滤交易:

```bash theme={null}
# 特定池上的交易
curl "https://data.solanatracker.io/trades/{token}/{pool}" \
  -H "x-api-key: YOUR_API_KEY"

# 特定钱包的交易
curl "https://data.solanatracker.io/trades/{token}/by-wallet/{wallet}" \
  -H "x-api-key: YOUR_API_KEY"
```

***

## 代币事件

[token events 端点](/cn/data-api/get-token-events)返回链上事件,例如添加/移除流动性、池创建和销毁。流动性是指池中允许人们交易的资金。

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

***

## 搜索代币

[search 端点](/cn/data-api/token-search)按名称、符号或地址查找代币。

```bash theme={null}
# 按名称搜索
curl "https://data.solanatracker.io/search?query=bonk" \
  -H "x-api-key: YOUR_API_KEY"

# 按精确符号搜索
curl "https://data.solanatracker.io/search?symbol=BONK" \
  -H "x-api-key: YOUR_API_KEY"
```

***

## 发现新代币

<CardGroup cols={2}>
  <Card title="最新代币" href="/cn/data-api/get-latest-tokens">
    Solana 上最近创建的代币。
  </Card>

  <Card title="热门代币" href="/cn/data-api/get-trending-tokens">
    当前活动最多的代币。
  </Card>

  <Card title="毕业中的代币" href="/cn/data-api/get-graduating-tokens">
    即将从 pump.fun 毕业的代币。
  </Card>

  <Card title="表现最佳" href="/cn/data-api/get-top-performing-tokens">
    不同时间范围内涨幅最大的代币。
  </Card>
</CardGroup>

***

## 历史最高价

检查代币离 ATH 是近还是远:

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

<CardGroup cols={2}>
  <Card title="价格与图表" href="/cn/guides/price-and-charts">
    获取 K 线、历史价格和多代币价格快照。
  </Card>

  <Card title="狙击检测" href="/cn/guides/sniper-detection">
    查找代币上的早期买家、打包上线和可疑钱包活动。
  </Card>
</CardGroup>
