Polymarket WS live trades one market
Streams the trades of a single Polymarket market selected by market ID.
Streams prediction trades on Polygon as they happen, where marketplace protocol name is polymarket and question market ID is 2772194: 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
Filters
- marketplace protocol name is polymarket
- question market ID is 2772194
The subscription
subscription {
EVM(network: matic) {
PredictionTrades(
where: {
TransactionStatus: { Success: true }
Trade: {
Prediction: {
Marketplace: { ProtocolName: { is: "polymarket" } }
Question: { MarketId: { is: "2772194" } }
}
}
}
) {
Block {
Time
}
Trade {
OutcomeTrade {
Buyer
Seller
Amount
CollateralAmountInUSD
Price
IsOutcomeBuy
}
Prediction {
Question {
Title
MarketId
}
Outcome {
Label
}
}
}
Transaction {
Hash
}
}
}
}