Query base huge amt trades

Returns 20 DEX trades by token on Base, where block time since 2026-02-17, sorted by USD, highest first: block time, currency symbol, currency name, smart contract, protocol name, decimals, side currency symbol and 7 more fields.

By Aleksey · saved 18 February 2026 · Bitquery API v2

What it returns

Filters

The query

query pairs($min_count: String, $network: evm_network, $time_1h_ago: DateTime, $time_ago: DateTime, $eth: String!, $weth: String!, $usdc: String!, $usdt: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: $time_ago}}, any: [{Trade: {Side: {Currency: {SmartContract: {is: $eth}}}}}, {Trade: {Side: {Currency: {SmartContract: {is: $usdt}}}, Currency: {SmartContract: {notIn: [$eth]}}}}, {Trade: {Side: {Currency: {SmartContract: {is: $usdc}}}, Currency: {SmartContract: {notIn: [$eth, $usdt]}}}}, {Trade: {Side: {Currency: {SmartContract: {is: $weth}}}, Currency: {SmartContract: {notIn: [$eth, $usdc, $usdt]}}}}, {Trade: {Side: {Currency: {SmartContract: {notIn: [$usdc, $usdt, $weth, $eth]}}}, Currency: {SmartContract: {notIn: [$usdc, $usdt, $weth, $eth]}}}}], TransactionStatus: {Success: true}}
      orderBy: {descendingByField: "usd"}
      limit: {count: 20}
    ) {
      Block {
        Time(maximum: Block_Time, selectWhere: {after: $time_1h_ago})
      }
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
          ProtocolName
          Decimals
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
            ProtocolName
            Decimals
          }
        }
        price_last: PriceInUSD(maximum: Block_Number)
        price_1h_ago: PriceInUSD(
          minimum: Block_Number
          if: {Block: {Time: {after: $time_1h_ago}}}
        )
      }
      usd: sum(of: Trade_Side_AmountInUSD)
      count(selectWhere: {ge: $min_count})
    }
  }
}

Variables

{
  "min_count": "100",
  "time_1h_ago": "2026-02-18T10:31:17Z",
  "time_ago": "2026-02-17T11:31:17Z",
  "eth": "0x",
  "usdc": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "usdt": "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",
  "weth": "0x4200000000000000000000000000000000000006",
  "network": "base"
}

Similar queries