SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getPoolTradesV2('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2', {
limit: 100,
fields: 'basic', // Lighter trades without legs, fees, compute or route.
});curl --request GET \
--url https://data.solanatracker.io/v2/trades/{token}/{pool} \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/v2/trades/{token}/{pool}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://data.solanatracker.io/v2/trades/{token}/{pool}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.solanatracker.io/v2/trades/{token}/{pool}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.solanatracker.io/v2/trades/{token}/{pool}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.solanatracker.io/v2/trades/{token}/{pool}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/v2/trades/{token}/{pool}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"trades": [
{
"tx": "5V4apVkgHf49J5acYPiuh5rB89EGsF8ocSysgnD9vFfZsTtDamhN3MFDKJSq7Dn7Z6Y5XhjghuVYuvvYWnSFpnvW",
"slot": 470027315,
"txIndex": 312,
"swapIndex": 0,
"time": 1794733462000,
"type": "sell",
"wallet": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
"owner": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
"feePayer": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"amount": 90,
"priceUsd": 6.002467911111111,
"priceSol": 0.03285243233052986,
"marketCapUsd": 6002464620.378128,
"quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"quoteAmount": 540.222112,
"quotePriceUsd": 1,
"volumeUsd": 540.222112,
"volumeSol": 2.956718909747688,
"solPriceUsd": 182.71,
"program": "meteora-dlmm",
"platform": "axiom",
"pools": [
"9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
],
"roundTrip": false,
"relayed": false,
"priceEstimated": false,
"noPool": false,
"transferFee": false,
"from": {
"mint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"decimals": 6,
"amount": 90,
"amountRaw": "90000000",
"priceUsd": 6.002467911111111,
"residualRaw": "0",
"walletChangeRaw": "-90000000"
},
"to": {
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"decimals": 6,
"amount": 540.222112,
"amountRaw": "540222112",
"priceUsd": 1,
"residualRaw": "0",
"walletChangeRaw": "540222112"
},
"fees": {
"txLamports": 105000,
"priorityLamports": 100000,
"signatures": 1,
"tipLamports": 1000000,
"tipService": "jito",
"platformFeeRaw": "2956624",
"platformFeeMint": "So11111111111111111111111111111111111111112",
"platformFeeApp": "axiom",
"totalUsd": 0.742099
},
"compute": {
"unitsConsumed": 148213,
"unitLimit": 200000,
"unitPriceMicroLamports": 500000
},
"route": {
"programId": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
"router": null,
"priceMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"instructionIndex": 3,
"txPrograms": [
"ComputeBudget111111111111111111111111111111",
"LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"11111111111111111111111111111111"
]
}
}
],
"tokens": {
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN": {
"name": "OFFICIAL TRUMP",
"symbol": "TRUMP",
"decimals": 6,
"image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Farweave.net%2FVQrPjACwnQRmxdKBTqNwPiyo65x7LAT773t8Kd7YBzw",
"supply": 999999451.77,
"uri": "https://arweave.net/cSCP0h2n1crjeSWE9KF-XtLciJalDNFs7Vf-Sm0NNY0",
"description": null,
"creator": null,
"createdOn": null,
"twitter": null,
"telegram": null,
"website": "https://gettrumpmemes.com"
},
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v": {
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2Flogo.png",
"supply": 8873651024.53,
"uri": null,
"description": null,
"creator": null,
"createdOn": null,
"twitter": null,
"telegram": null,
"website": null
}
},
"pools": {
"9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2": {
"market": "meteora-dlmm",
"tokenAddress": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"liquidityUsd": 41872931.44,
"lpBurn": 0,
"createdAt": 1737165082000
}
},
"wallets": {
"F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi": {
"type": "axiom",
"tags": [
"axiom"
],
"platforms": [
"axiom"
]
}
},
"nextCursor": "eyJzbG90Ijo0NzAwMjczMTUsInR4SW5kZXgiOjMxMiwic3dhcEluZGV4IjowLCJzaWRlIjoic2VsbCJ9",
"hasNextPage": true,
"sortDirection": "DESC"
}{
"error": "Invalid time range. time_from is after time_to"
}{
"error": "<string>"
}{
"error": "Trades are temporarily unavailable, please retry"
}Token
Solana Pool Trades API V2
Get a Solana token’s trades in one pool, with signatures, exact amounts, fees and prices.
GET
/
v2
/
trades
/
{token}
/
{pool}
SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getPoolTradesV2('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2', {
limit: 100,
fields: 'basic', // Lighter trades without legs, fees, compute or route.
});curl --request GET \
--url https://data.solanatracker.io/v2/trades/{token}/{pool} \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/v2/trades/{token}/{pool}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://data.solanatracker.io/v2/trades/{token}/{pool}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.solanatracker.io/v2/trades/{token}/{pool}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.solanatracker.io/v2/trades/{token}/{pool}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.solanatracker.io/v2/trades/{token}/{pool}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/v2/trades/{token}/{pool}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"trades": [
{
"tx": "5V4apVkgHf49J5acYPiuh5rB89EGsF8ocSysgnD9vFfZsTtDamhN3MFDKJSq7Dn7Z6Y5XhjghuVYuvvYWnSFpnvW",
"slot": 470027315,
"txIndex": 312,
"swapIndex": 0,
"time": 1794733462000,
"type": "sell",
"wallet": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
"owner": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
"feePayer": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"amount": 90,
"priceUsd": 6.002467911111111,
"priceSol": 0.03285243233052986,
"marketCapUsd": 6002464620.378128,
"quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"quoteAmount": 540.222112,
"quotePriceUsd": 1,
"volumeUsd": 540.222112,
"volumeSol": 2.956718909747688,
"solPriceUsd": 182.71,
"program": "meteora-dlmm",
"platform": "axiom",
"pools": [
"9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
],
"roundTrip": false,
"relayed": false,
"priceEstimated": false,
"noPool": false,
"transferFee": false,
"from": {
"mint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"decimals": 6,
"amount": 90,
"amountRaw": "90000000",
"priceUsd": 6.002467911111111,
"residualRaw": "0",
"walletChangeRaw": "-90000000"
},
"to": {
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"decimals": 6,
"amount": 540.222112,
"amountRaw": "540222112",
"priceUsd": 1,
"residualRaw": "0",
"walletChangeRaw": "540222112"
},
"fees": {
"txLamports": 105000,
"priorityLamports": 100000,
"signatures": 1,
"tipLamports": 1000000,
"tipService": "jito",
"platformFeeRaw": "2956624",
"platformFeeMint": "So11111111111111111111111111111111111111112",
"platformFeeApp": "axiom",
"totalUsd": 0.742099
},
"compute": {
"unitsConsumed": 148213,
"unitLimit": 200000,
"unitPriceMicroLamports": 500000
},
"route": {
"programId": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
"router": null,
"priceMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"instructionIndex": 3,
"txPrograms": [
"ComputeBudget111111111111111111111111111111",
"LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"11111111111111111111111111111111"
]
}
}
],
"tokens": {
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN": {
"name": "OFFICIAL TRUMP",
"symbol": "TRUMP",
"decimals": 6,
"image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Farweave.net%2FVQrPjACwnQRmxdKBTqNwPiyo65x7LAT773t8Kd7YBzw",
"supply": 999999451.77,
"uri": "https://arweave.net/cSCP0h2n1crjeSWE9KF-XtLciJalDNFs7Vf-Sm0NNY0",
"description": null,
"creator": null,
"createdOn": null,
"twitter": null,
"telegram": null,
"website": "https://gettrumpmemes.com"
},
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v": {
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2Flogo.png",
"supply": 8873651024.53,
"uri": null,
"description": null,
"creator": null,
"createdOn": null,
"twitter": null,
"telegram": null,
"website": null
}
},
"pools": {
"9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2": {
"market": "meteora-dlmm",
"tokenAddress": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"liquidityUsd": 41872931.44,
"lpBurn": 0,
"createdAt": 1737165082000
}
},
"wallets": {
"F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi": {
"type": "axiom",
"tags": [
"axiom"
],
"platforms": [
"axiom"
]
}
},
"nextCursor": "eyJzbG90Ijo0NzAwMjczMTUsInR4SW5kZXgiOjMxMiwic3dhcEluZGV4IjowLCJzaWRlIjoic2VsbCJ9",
"hasNextPage": true,
"sortDirection": "DESC"
}{
"error": "Invalid time range. time_from is after time_to"
}{
"error": "<string>"
}{
"error": "Trades are temporarily unavailable, please retry"
}A token’s trades in one pool. Each trade has its signature, its exact position on chain (
slot, txIndex, swapIndex), USD and SOL prices, market cap and the trader (wallet, with owner and feePayer). Full pages add both legs with exact raw amounts and the owner’s balance change, fees and tips, compute and route. Each mint on the page is listed once in tokens, each pool once in pools and each known wallet once in wallets.
For a stablecoin (USDC, USDT, USD1 or CASH) this route returns every leg of that stablecoin in the pool.
A page can come back short or even empty with hasNextPage: true. Keep following nextCursor until hasNextPage is false.
SDK Example
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getPoolTradesV2('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2', {
limit: 100,
fields: 'basic', // Lighter trades without legs, fees, compute or route.
});
Path Parameters
Query Parameters
Adds an arbitrage array next to trades: arbitrage transactions through this token (and the pool or wallet of the route) in the slots the page's trades span. Consecutive pages cover those slots with no gap or overlap unless arbitrageComplete is false. Arbitrage is never in trades or in volume.
Response
A page of trades.
Was this page helpful?