trading pairs

Returns 200 DEX trades by token on Ethereum, where currency smart contract is 0x30c4…1c44 and block time after 2026-03-10, sorted by USD, highest first: currency symbol, currency name, smart contract, fungible, side currency symbol, side currency name, side smart contract and 6 more fields.

By Akshat · saved 11 March 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query tokenTrades($network: evm_network!, $token: String!, $time_10min_ago: DateTime!, $time_1h_ago: DateTime!, $time_3h_ago: DateTime!, $time_ago: DateTime!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "usd"}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Time: {after: $time_ago}}}
      limit: {count: 200}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
          Fungible
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
          }
        }
        price_usd: PriceInUSD(maximum: Block_Number)
        price_last: Price(maximum: Block_Number)
        price_10min_ago: Price(
          minimum: Block_Number
          if: {Block: {Time: {after: $time_10min_ago}}}
        )
        price_1h_ago: Price(
          minimum: Block_Number
          if: {Block: {Time: {after: $time_1h_ago}}}
        )
        price_3h_ago: Price(
          minimum: Block_Number
          if: {Block: {Time: {after: $time_3h_ago}}}
        )
      }
      usd: sum(of: Trade_AmountInUSD)
      vol: sum(of: Trade_Amount)
      count
      price_change_10min: calculate(
        expression: "(($Trade_price_last - $Trade_price_10min_ago) / $Trade_price_10min_ago) * 100"
      )
      price_change_1h: calculate(
        expression: "(($Trade_price_last - $Trade_price_1h_ago) / $Trade_price_1h_ago) * 100"
      )
      price_change_3h: calculate(
        expression: "(($Trade_price_last - $Trade_price_3h_ago) / $Trade_price_3h_ago) * 100"
      )
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0x30c488baf577763bf5f978d29ec9e7fe6fc61c44",
  "time_1h_ago": "2026-03-11T10:25:13Z",
  "time_3h_ago": "2026-03-11T08:25:13Z",
  "time_10min_ago": "2026-03-11T11:15:13Z",
  "time_ago": "2026-03-10T11:25:13Z"
}

Similar queries