Messages
{
"type": "join",
"room": "transaction:whale:1000"
}{
"type": "<string>",
"room": "<string>"
}巨鲸与 KOL 交易
Solana 巨鲸交易实时流
通过 Datastream WebSocket 按美元档位订阅 Solana 大额现货交易。一笔交易会发送到它达到的每个档位房间,起始档位为 $1,000。
WSS
/
累积式大额现货交易房间。一笔交易会发布到它达到档位的每个房间。例如,一笔 $12,000 的交易会发送到 `transaction:whale:1000`、`:2500`、`:5000` 和 `:10000`。低于 $1,000 的成交量不包含在内。
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 密钥。将 Datastream 密钥放在连接 URL 中:wss://datastream.solanatracker.io/{DATASTREAM_KEY}
Join room
type:object
Leave room
type:object
此页面对您有帮助吗?