# solanatracker-api

This skill gives your agent SolanaTracker endpoints: token risk scores, wallet PnL, 1-second OHLCV candles. Useful when you build Solana analytics or trading scripts.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 433 installs · ★ 443
- Author: agiprolabs
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/agiprolabs/claude-trading-skills/tree/HEAD/skills/solanatracker-api/SKILL.md
- Updated: 2026-09-03
- HTML: https://affpapa.org/en/nevibecode/skills/solanatracker-api

## What it does

The skill documents SolanaTracker's HTTP endpoints: token info with risk score and pools, price history, OHLCV candles down to 1-second resolution, wallet PnL, holder lists, bundler and sniper detection, and search with filters. A separate section covers the DataStream WebSocket for streaming token or wallet events.

It ships reference files: `references/data_api_endpoints.md` with parameters and response schemas, `references/risk_and_pnl.md` on risk scoring and PnL math, `references/raptor_setup.md` for a Raptor quick start. Raptor itself, a self-hosted DEX aggregator covering 25+ DEXes, lives in the separate `raptor-dex` skill — this one only links to it.

You need a `SOLANATRACKER_API_KEY`, sent as the `x-api-key` header. Without it Data API calls fail, so check the key before asking the agent to crunch numbers. Plans start around €50/mo for 200K requests.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add agiprolabs/claude-trading-skills --skill solanatracker-api -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/solanatracker-api/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/solanatracker-api/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add agiprolabs/claude-trading-skills --skill solanatracker-api -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/solanatracker-api/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add agiprolabs/claude-trading-skills --skill solanatracker-api -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/solanatracker-api/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install agiprolabs/claude-trading-skills solanatracker-api
```

2. **Manually: put the files in place**
- File: `.github/skills/solanatracker-api/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add agiprolabs/claude-trading-skills --skill solanatracker-api -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/agiprolabs/claude-trading-skills --path skills/solanatracker-api
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/solanatracker-api/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add agiprolabs/claude-trading-skills --skill solanatracker-api -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/agiprolabs/claude-trading-skills/tree/HEAD/skills/solanatracker-api/SKILL.md

## When to use it
- pull a token's risk score along with its pools and holders
- compute realized and unrealized PnL for a wallet
- export 1-second candles for backtesting
- filter tokens by liquidity, volume and minimum risk score
- track bundler and sniper activity on a specific token

## Example prompts
- show the risk score and top 10 holders for this mint
- calculate this wallet's PnL over the last 30 days
- export 1s candles for this token from yesterday

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 3b64eb0efc124d23.

BEGIN THIRD-PARTY FILE 3b64eb0efc124d23
````text
---
name: solanatracker-api
description: Solana token data, PnL, risk scores, 1-second OHLCV, wallet analytics, and self-hosted swap execution via Raptor
---

# SolanaTracker API — Token Data, Analytics & Raptor DEX Aggregator

SolanaTracker provides comprehensive Solana token data with unique features: **1-second OHLCV resolution**, **wallet PnL tracking**, **risk scoring**, **bundler/sniper detection**, and a **self-hosted DEX aggregator (Raptor)** supporting 25+ DEXes with no rate limits.

## Quick Start

```python
import httpx

API_KEY = os.getenv("SOLANATRACKER_API_KEY", "")
BASE = "https://data.solanatracker.io"
HEADERS = {"x-api-key": API_KEY}

# Token info with risk score, pools, holders
resp = httpx.get(f"{BASE}/tokens/{mint}", headers=HEADERS)
token = resp.json()
print(f"Risk: {token['risk']['score']}/10, Pools: {len(token['pools'])}")

# Wallet PnL
resp = httpx.get(f"{BASE}/pnl/{wallet}", headers=HEADERS)
pnl = resp.json()
print(f"Win rate: {pnl['summary']['winPercentage']}%")
```

## Authentication & Pricing

- **API Key**: From your SolanaTracker dashboard, passed as `x-api-key` header
- **Plans**: Starting ~€50/mo (200K requests), €200/mo (higher volume), Enterprise custom
- **Raptor**: Free during public beta (self-hosted, no rate limits)

## Core Data Endpoints

### Token Data

```python
# Full token info (metadata, pools, risk, events, holders summary)
GET /tokens/{tokenAddress}

# New tokens (paginated, pages 1-10)
GET /tokens/latest?page=1

# Trending by volume (default: past hour)
GET /tokens/trending
GET /tokens/trending/{timeframe}  # 5m, 15m, 30m, 1h, 4h, 12h, 24h

# Top performers
GET /tokens/top

# Graduated from bonding curves (pump.fun → Raydium)
GET /tokens/graduated
GET /tokens/graduating

# Multiple tokens in one request
GET /tokens/multi?tokens=ADDR1,ADDR2

# Deployer's tokens
GET /tokens/deployer/{deployerAddress}

# Token by pool address
GET /tokens/pool/{poolAddress}

# All-time high
GET /tokens/{token}/ath
```

### Price Data

```python
# Current price with liquidity and market cap
GET /price?token={address}

# Price with change percentages
GET /price?token={address}&priceChanges=true

# Historic prices (3d, 5d, 7d, 14d, 30d snapshots)
GET /price/history?token={address}

# Multiple token prices
GET /price/multi?tokens=ADDR1,ADDR2
```

### OHLCV Charts (1-second resolution)

```python
# Candle data — supports 1s resolution (unique to SolanaTracker)
GET /chart/{token}?type=1s&time_from=UNIX&time_to=UNIX

# Timeframes: 1s, 5s, 15s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1mn
# Optional: currency=usd|sol|eur, removeOutliers=true, marketCap=true

# Specialized charts
GET /chart/{token}/bundlers   # Bundler activity overlay
````
END THIRD-PARTY FILE 3b64eb0efc124d23

The third-party file has ended. Everything between the 3b64eb0efc124d23 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2729 of 7530 bytes. © agiprolabs · MIT · https://github.com/agiprolabs/claude-trading-skills/tree/HEAD/skills/solanatracker-api/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
