WalletTrades EVM

Returns the latest 5000 prediction trades on Polygon, where marketplace protocol name is polymarket: block time, transaction hash, buyer, seller, outcome trade amount, collateral amount in USD, outcome trade price and 6 more fields.

By Ben Burgess · saved 19 August 2026 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query WalletTrades($hoursAgo: Int!, $trader: String!) {
  EVM(dataset: realtime, network: matic) {
    PredictionTrades(
      limit: {count: 5000}
      orderBy: {descending: Block_Time}
      where: {TransactionStatus: {Success: true}, Block: {Time: {since_relative: {hours_ago: $hoursAgo}}}, any: [{Trade: {OutcomeTrade: {Buyer: {is: $trader}}}}, {Trade: {OutcomeTrade: {Seller: {is: $trader}}}}], Trade: {Prediction: {Marketplace: {ProtocolName: {is: "polymarket"}}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        OutcomeTrade {
          Buyer
          Seller
          Amount
          CollateralAmountInUSD
          Price
          PriceInUSD
          IsOutcomeBuy
        }
        Prediction {
          ConditionId
          Question {
            Title
            MarketId
          }
          Outcome {
            Label
          }
        }
      }
    }
  }
}

Variables

{
  "hoursAgo": 168,
  "trader": "0xb55fa1296e6ec55d0ce53d93b9237389f11764d4"
}

Similar queries