daily trades count and monthly trades count
Returns prediction trades on Polygon, where marketplace protocol name is polymarket: count and block time.
What it returns
- count
- block time
Filters
- marketplace protocol name is polymarket
The query
query MyQuery($trader: String) {
EVM(network: matic) {
# Daily trade count (grouped by date)
DailyTrades: PredictionTrades(
where: {
TransactionStatus: { Success: true }
any: [
{ Trade: { OutcomeTrade: { Buyer: { is: $trader } } } }
{ Trade: { OutcomeTrade: { Seller: { is: $trader } } } }
]
Trade: { Prediction: { Marketplace: { ProtocolName: { is: "polymarket" } } } }
}
) {
average_daily_trades: count
Block {
Date: Time(interval: { in: days, count: 1 })
}
}
# Monthly trade count (grouped by month)
MonthlyTrades: PredictionTrades(
where: {
TransactionStatus: { Success: true }
any: [
{ Trade: { OutcomeTrade: { Buyer: { is: $trader } } } }
{ Trade: { OutcomeTrade: { Seller: { is: $trader } } } }
]
Trade: { Prediction: { Marketplace: { ProtocolName: { is: "polymarket" } } } }
}
) {
average_monthly_trades: count
Block {
Month: Time(interval: { in: months, count: 1 })
}
}
}
}
Variables
{
"trader": "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