sdfsdfsdf

Returns 10 DEX trades by token on Ethereum, where currency smart contract is 0x2d8e…e91d, side currency smart contract is not 0x and block date since 2025-02-24, 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 Aleksey · saved 3 March 2025 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $from: String, $token: String, $till: String) {
  EVM(dataset: combined, 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-02-24","till":"2025-03-03","token":"0x2d8ea194902bc55431420bd26be92b0782dce91d","dateFormat":"%Y-%m-%d","date_middle":"2025-02-27","mempool":false}

Similar queries