Messages
{
"type": "join",
"room": "pm:crypto:btc"
}{
"type": "leave",
"room": "pm:crypto:btc"
}{
"type": "message",
"room": "pm:crypto:btc",
"data": {
"type": "crypto_price",
"channel": "prices",
"exchange": "polymarket",
"marketId": "btc/usd",
"category": "crypto",
"sourceId": "chainlink:btc/usd:1782753357213",
"timestamp": 1782753357213,
"symbol": "BTC",
"pair": "btc/usd",
"asset": "btc",
"value": 64822.23,
"source": "chainlink"
}
}Websockets
Crypto underlying
Live Chainlink underlying USD ticks for crypto up/down charts (btc, eth, …). Isolated from probability price rooms.
WSS
/
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.crypto('btc').all().on((data) => {
console.log(data);
});
// sub.unsubscribe();
Messages
{
"type": "join",
"room": "pm:crypto:btc"
}{
"type": "leave",
"room": "pm:crypto:btc"
}{
"type": "message",
"room": "pm:crypto:btc",
"data": {
"type": "crypto_price",
"channel": "prices",
"exchange": "polymarket",
"marketId": "btc/usd",
"category": "crypto",
"sourceId": "chainlink:btc/usd:1782753357213",
"timestamp": 1782753357213,
"symbol": "BTC",
"pair": "btc/usd",
"asset": "btc",
"value": 64822.23,
"source": "chainlink"
}
}apiKey
type:httpApiKey
API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
joinCryptoUnderlying
type:object
Subscribe to Chainlink underlying price ticks
leaveCryptoUnderlying
type:object
Unsubscribe from Crypto Underlying
cryptoUnderlyingMessage
type:object
Crypto Underlying update
Was this page helpful?