Loading...
Loading...
Comprehensive Polymarket skill covering prediction markets, API, trading, market data, and real-time WebSocket data streaming. Build applications with Polymarket services, monitor live trades, and integrate market predictions.
npx skill4agent add tukuaiai/vibe-coding-cn polymarketnpm install @polymarket/real-time-data-clientimport { RealTimeDataClient } from "@polymarket/real-time-data-client";
const onMessage = (message: Message): void => {
console.log(message.topic, message.type, message.payload);
};
const onConnect = (client: RealTimeDataClient): void => {
client.subscribe({
subscriptions: [{
topic: "activity",
type: "trades"
}]
});
};
new RealTimeDataClient({ onMessage, onConnect }).connect();activitytradesorders_matched{"event_slug":"string"}{"market_slug":"string"}commentscomment_createdcomment_removedreaction_createdreaction_removed{"parentEntityID":number,"parentEntityType":"Event"}rfqcrypto_pricescrypto_prices_chainlinkupdate{"symbol":"BTC"}clob_userordertradeclob_marketprice_changeagg_orderbooklast_trade_pricemarket_createdmarket_resolvedclient.subscribe({
subscriptions: [{
topic: "clob_user",
type: "*",
clob_auth: {
key: "your-api-key",
secret: "your-api-secret",
passphrase: "your-passphrase"
}
}]
});client.subscribe({
subscriptions: [{
topic: "activity",
type: "trades",
filters: `{"market_slug":"btc-above-100k-2024"}`
}]
});client.subscribe({
subscriptions: [{
topic: "clob_market",
type: "price_change",
filters: `["100","101","102"]`
}]
});client.subscribe({
subscriptions: [{
topic: "comments",
type: "*",
filters: `{"parentEntityID":12345,"parentEntityType":"Event"}`
}]
});references/viewonConnectdisconnect()"*"getting_started.mdapi.mdtrading.mdREADME.mdllms.mdllms-full.md