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
API de trades de pools de Solana V2
API de trades de pools de Solana V2 que devuelve los trades de un token en un pool, con firmas, cantidades exactas, comisiones y precios.
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"
}Los trades de un token en un pool. Cada trade trae su firma, su posición exacta en la cadena (
slot, txIndex, swapIndex), los precios en USD y en SOL, el market cap y el trader (wallet, con owner y feePayer). Las páginas completas añaden los dos lados del swap con cantidades raw exactas y el cambio de saldo del owner, las comisiones y propinas, el cómputo y la ruta. Cada mint de la página aparece una sola vez en tokens, cada pool una vez en pools y cada wallet conocida una vez en wallets.
Para una stablecoin (USDC, USDT, USD1 o CASH), esta ruta devuelve cada tramo de esa stablecoin en el pool.
Una página puede llegar incompleta o incluso vacía con hasNextPage: true. Sigue usando nextCursor hasta que hasNextPage sea 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.
});
Parámetros de ruta
Parámetros de consulta
Añade un array arbitrage junto a trades: las transacciones de arbitraje que pasan por este token (y por el pool o la wallet de la ruta) en los slots que cubren los trades de la página. Las páginas consecutivas cubren esos slots sin huecos ni solapamientos, salvo que arbitrageComplete sea false. El arbitraje nunca está en trades ni en el volumen.
Respuesta
Una página de trades.
¿Esta página le ayudó?