Token pairs

Returns 10 DEX trades by token on Ethereum, where currency smart contract is 0xf61f…d6dc, side currency smart contract is not 0x and block date since 2025-04-17, sorted by count, highest first: chain ID, count, currency symbol, smart contract, currency name, side currency name, side smart contract and side currency symbol.

By Nadia · saved 24 April 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $from: String, $token: String, $till: String) {
  EVM(dataset: realtime, network: $network) {
    DEXTradeByTokens(
      limit: {count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Currency: {SmartContract: {is: $token}}, Side: {Currency: {SmartContract: {not: "0x"}}}}}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      count
      Trade {
        Currency {
          Symbol
          SmartContract
          Name
        }
        Side {
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "from": "2025-04-17",
  "till": "2025-04-24",
  "token": "0xf61f24c2d93bf2de187546b14425bf631f28d6dc",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2025-04-20"
}

Similar queries