Top Traded NFT in Network

Returns 10 DEX trades on Ethereum, where block date since 2025-02-04 and block date till 2025-02-11, sorted by count, highest first: buy currency symbol, buy smart contract, buy price, sell currency symbol, sell smart contract, sum of trade buy amount, sum of trade sell amount and 4 more fields.

By Nadia · saved 11 February 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {offset: $offset, count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Buy: {Currency: {Fungible: false}}, Sell: {Currency: {Fungible: true}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          min_price: Price(minimum: Trade_Buy_Price)
          max_price: Price(maximum: Trade_Buy_Price)
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      buy_amount: sum(of: Trade_Buy_Amount)
      sell_amount: sum(of: Trade_Sell_Amount)
      buy_amount_usd: sum(of: Trade_Buy_AmountInUSD)
      sell_amount_usd: sum(of: Trade_Sell_AmountInUSD)
      count
      ChainId
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2025-02-04",
  "till": "2025-02-11",
  "mempool": false,
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2025-02-07"
}

Similar queries