daily trades count and monthly trades count

Returns prediction trades on Polygon, where marketplace protocol name is polymarket: count and block time.

By Kshitij Mahajan · saved 24 March 2026 · Bitquery API v2

What it returns

Filters

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