24 hours trades for a wallet
Returns prediction trades on Polygon, where outcome trade buyer is 0x101f…8e1a and marketplace protocol name is polymarket: collateral amount in USD and condition ID.
What it returns
- collateral amount in USD
- condition ID
Filters
- outcome trade buyer is 0x101f…8e1a
- marketplace protocol name is polymarket
The query
query WalletTrades($hoursAgo: Int!, $buyer: String!) {
EVM(network: matic) {
buys: PredictionTrades(
where: {
Trade: {
Prediction: {
Marketplace: {ProtocolName: {is: "polymarket"}},
},
OutcomeTrade: {IsOutcomeBuy: true, Buyer: {is: $buyer}}
},
Block: {Time: {since_relative: {hours_ago: $hoursAgo}}}
}
) {
Trade {
OutcomeTrade { CollateralAmountInUSD }
Prediction { ConditionId }
}
}
sells: PredictionTrades(
where: {
Trade: {
Prediction: {
Marketplace: {ProtocolName: {is: "polymarket"}},
},
OutcomeTrade: {IsOutcomeBuy: false, Buyer: {is: $buyer}}
},
Block: {Time: {since_relative: {hours_ago: $hoursAgo}}}
}
) {
Trade {
OutcomeTrade { CollateralAmountInUSD }
Prediction { ConditionId }
}
}
}
}
Variables
{
"hoursAgo": 24,
"buyer": "0x101f2f96db1e39a9f36a1fa067751d541fd38e1a"
}
Similar queries
- Polymarket Volume by Exchange Contract and Collateral · Polygon · PredictionTrades
- latest prediction market trades · Polygon · PredictionTrades
- activity of user · Polygon · PredictionTrades
- Polymarket Notional Volume, Taker Volume,Maker Volume · Polygon · PredictionTrades
- buys and sells of a wallet on polymarket · Polygon · PredictionTrades