Messages
{
"type": "join",
"room": "transaction:whale:1000"
}{
"type": "<string>",
"room": "<string>"
}Whale & KOL Trades
Stream Solana Whale Trades
deprecated
Deprecated. Stream high-volume Solana trades with the Trades V2 whale trades rooms instead.
WSS
/
Deprecated. Switch to
v2:transaction:whale:{tier} instead. With the SDK, use dataStream.subscribe.tradesV2.whale(minVolume).
Cumulative high-volume spot trade rooms. A trade is published to every room whose tier it meets. Example: a $12,000 trade is sent to `transaction:whale:1000`, `:2500`, `:5000`, and `:10000`. Volumes below $1,000 are excluded.
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.tx.whale(5000, { enriched: true }).on((data) => {
console.log(data);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "transaction:whale:1000"
}{
"type": "<string>",
"room": "<string>"
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
Join room
type:object
Leave room
type:object
Was this page helpful?