Messages
{
"type": "join",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "leave",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "joined",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "message",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump",
"data": {
"pool": "HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump",
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"volume": 15000.36,
"txCount": 2,
"timestamp": 1739318753652
}
}Websockets
Pool volume
Subscribe to pool volume updates
WSS
Documentation Index
Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
Use this file to discover all available pages before exploring further.
SDK Example
import { Datastream } from '@solana-tracker/data-api';
const dataStream = new Datastream({
wsUrl: 'wss://datastream.solanatracker.io/YOUR_API_KEY',
});
await dataStream.connect();
const sub = dataStream.subscribe.volume.pool('9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2').on((data) => {
console.log(data);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "leave",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "joined",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "message",
"room": "volume:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump",
"data": {
"pool": "HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump",
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"volume": 15000.36,
"txCount": 2,
"timestamp": 1739318753652
}
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
joinPoolVolume
type:object
Subscribe to pool volume
leavePoolVolume
type:object
Unsubscribe from pool volume
poolVolumeJoined
type:object
Pool volume subscription confirmed
poolVolumeMessage
type:object
Pool volume notification
Was this page helpful?
⌘I