Messages
{
"type": "join",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "leave",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "joined",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "message",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump",
"data": {
"1m": {
"buyers": 5,
"sellers": 3,
"volume": {
"buys": 729.54,
"sells": 1710.84,
"total": 2440.38
},
"transactions": 15,
"buys": 10,
"sells": 5,
"wallets": 8,
"price": 3.3549,
"priceChangePercentage": 1.67
}
}
}Websockets
Pool statistics
Subscribe to pool statistics (multi-timeframe statistics)
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.stats.pool('9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2').on((data) => {
console.log(data);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "leave",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "joined",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump"
}{
"type": "message",
"room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump",
"data": {
"1m": {
"buyers": 5,
"sellers": 3,
"volume": {
"buys": 729.54,
"sells": 1710.84,
"total": 2440.38
},
"transactions": 15,
"buys": 10,
"sells": 5,
"wallets": 8,
"price": 3.3549,
"priceChangePercentage": 1.67
}
}
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
joinPoolStats
type:object
Subscribe to pool statistics
leavePoolStats
type:object
Unsubscribe from pool statistics
poolStatsJoined
type:object
Pool stats subscription confirmed
poolStatsMessage
type:object
Pool statistics notification
Was this page helpful?
⌘I