Messages
{
"type": "join",
"room": "transaction:whale:1000"
}{
"type": "<string>",
"room": "<string>"
}巨鲸与 KOL 交易
Solana KOL 交易实时流
通过 Datastream WebSocket 订阅 KOL 名单内钱包的全部现货交易,不限美元成交量,有身份信息时一并返回。
WSS
/
共享 KOL 名单内钱包的全部现货交易,不限美元成交量。每次兑换对应一个交易对象。有身份信息时包含
identity。
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.kol(undefined, { enriched: true }).on((data) => {
console.log(data);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "transaction:whale:1000"
}{
"type": "<string>",
"room": "<string>"
}apiKey
type:httpApiKey
用于身份验证的 API 密钥。将 Datastream 密钥放在连接 URL 中:wss://datastream.solanatracker.io/{DATASTREAM_KEY}
Join room
type:object
Leave room
type:object
此页面对您有帮助吗?