Messages
{
"type": "join",
"room": "pm:trades:significant"
}{
"type": "leave",
"room": "pm:trades:significant"
}{
"type": "message",
"room": "pm:trades:significant",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}Prediction Markets — Trades
Trades grandes de mercados de predicción por WebSocket
Trades ejecutados de Kalshi y Polymarket con nocional en USD (precio por cantidad) de 25 o más, por WebSocket de Datastream, para feeds de trades grandes.
WSS
/
Trades ejecutados con notionalUsd (price × quantity) ≥ 25. Para barras laterales de hubs y feeds de trades grandes.
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.pm.significantTrades().on((data) => {
console.log(data);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "pm:trades:significant"
}{
"type": "leave",
"room": "pm:trades:significant"
}{
"type": "message",
"room": "pm:trades:significant",
"data": {
"type": "trade",
"channel": "trades",
"exchange": "polymarket",
"marketId": "1234567890",
"timestamp": 1785347120123
}
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
joinSignificantTrades
type:object
Subscribe to trades with notional ≥ $25
leaveSignificantTrades
type:object
Unsubscribe from Significant Trades
significantTradesMessage
type:object
Significant Trades update
¿Esta página le ayudó?