Polymarket WS live trades one wallet
Streams every Polymarket trade where one wallet is the buyer or the seller.
Streams prediction trades on Polygon as they happen: block time, buyer, seller, outcome trade amount, collateral amount in USD, outcome trade price, is outcome buy and 4 more fields.
What it returns
- block time
- buyer
- seller
- outcome trade amount
- collateral amount in USD
- outcome trade price
- is outcome buy
- title
- market ID
- label
- transaction hash
The subscription
subscription {
EVM(network: matic) {
PredictionTrades(
where: {
TransactionStatus: { Success: true }
any: [
{
Trade: {
Prediction: { Marketplace: { ProtocolName: { is: "polymarket" } } }
OutcomeTrade: {
Buyer: { is: "0x821dab0565ebf5b327f51db06223fdcfe01acf16" }
}
}
}
{
Trade: {
Prediction: { Marketplace: { ProtocolName: { is: "polymarket" } } }
OutcomeTrade: {
Seller: { is: "0x821dab0565ebf5b327f51db06223fdcfe01acf16" }
}
}
}
]
}
) {
Block {
Time
}
Trade {
OutcomeTrade {
Buyer
Seller
Amount
CollateralAmountInUSD
Price
IsOutcomeBuy
}
Prediction {
Question {
Title
MarketId
}
Outcome {
Label
}
}
}
Transaction {
Hash
}
}
}
}