Skip to main content
WSS
/
tokenSupply on each pool object is the total on-chain supply of the token mint (i.e. mint.supply adjusted for decimals), not a circulating supply estimate. It is what’s used together with price.usd to derive marketCap.usd, so marketCap.usd here is fully diluted market cap.

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.token('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN').on((data) => {
  console.log(data);
});

// sub.unsubscribe();
Messages
apiKey
type:httpApiKey

API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}

joinToken
type:object

Subscribe to token changes

leaveToken
type:object

Unsubscribe from token changes

tokenJoined
type:object

Token subscription confirmed

tokenMessage
type:object

Token update notification