Messages
{
"type": "join",
"room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
}{
"type": "leave",
"room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
}{
"type": "message",
"room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2",
"data": {
"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"
]
}
}
}
}Trades V2
Stream Solana Pool Trades V2
Stream a Solana token’s trades in one pool over Datastream WebSocket in the v2 format.
WSS
/
A token’s trades in one pool. Room:
Each message is a page of new trades in the
v2:transaction:{mint}:{pool}. The live side of GET /v2/trades/{token}/{pool}. For a stablecoin (USDC, USDT, USD1 or CASH), the room carries every leg of that stablecoin in the pool.
WebSocket example
const token = "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN";
const pool = "9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2";
const room = `v2:transaction:${token}:${pool}`;
const ws = new WebSocket("wss://datastream.solanatracker.io/YOUR_API_KEY");
ws.addEventListener("open", () => {
ws.send(JSON.stringify({ type: "join", room }));
});
ws.addEventListener("message", (event) => {
const msg = JSON.parse(event.data);
if (msg.type === "ping") return ws.send(JSON.stringify({ type: "pong" }));
if (msg.type !== "message") return;
const { trades, tokens, wallets } = msg.data;
for (const t of trades) {
const symbol = tokens[t.token]?.symbol ?? t.token;
console.log(t.tx, t.type, t.amount, symbol, `$${t.volumeUsd.toFixed(2)}`, wallets[t.wallet]?.name ?? t.wallet);
}
});
/v2 format, without the cursor fields. Trades always include full detail, with wallet identities when known. Load history from the REST route.
SDK Example
import { Datastream } from '@solana-tracker/data-api';
const dataStream = new Datastream({
wsUrl: 'wss://datastream.solanatracker.io/YOUR_API_KEY',
});
dataStream.on('error', console.error);
await dataStream.connect();
const sub = dataStream.subscribe.tradesV2.pool('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2').on((data) => {
console.log(data.trades);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
}{
"type": "leave",
"room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
}{
"type": "message",
"room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2",
"data": {
"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"
]
}
}
}
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
Subscribe to pool trades
type:object
Unsubscribe from pool trades
type:object
New pool trades
type:object
Was this page helpful?