Token Trade Pairs

Returns 10 DEX trades on Arbitrum, sorted by count, highest first: block time, block date, chain ID, unique of block date, count, sum of trade buy amount, sum of trade buy amount in USD and 10 more fields.

By Nadia · saved 25 April 2025 · Bitquery API v2

What it returns

The query

query ($network: evm_network, $limit: Int!) {
  EVM(dataset: realtime, network: $network) {
    DEXTrades(
      limit: {count: $limit}
      where: {Trade: {Success: true}}
      orderBy: {descendingByField: "count"}
    ) {
      Block {
        Time
        Date(minimum: Block_Date)
      }
      ChainId
      uniq(of: Block_Date)
      count
      Buy_Amount: sum(of: Trade_Buy_Amount)
      Buy_Amount_usd: sum(of: Trade_Buy_AmountInUSD)
      Sell_Amount: sum(of: Trade_Sell_Amount)
      Sell_Amount_usd: sum(of: Trade_Sell_AmountInUSD)
      Trade {
        Buy {
          last_price: Price(maximum: Block_Number)
          last_price_usd: PriceInUSD(maximum: Block_Number)
          Currency {
            Symbol
            SmartContract
          }
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      median_price: median(of: Trade_Buy_Price)
      median_price_usd: median(of: Trade_Buy_PriceInUSD)
    }
  }
}

Variables

{
  "network": "arbitrum",
  "limit": 10
}

Similar queries