Top traded NFT tokens in network

Returns 10 DEX trades on Ethereum, where block date since 2023-05-02 and block date till 2023-05-09, 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 count.

By Aleksey · saved 9 May 2023 · run 6 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_rice: Price(maximum: Trade_Buy_Price)
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }        
        }
      }
      buy_amount: sum(of: Trade_Buy_Amount)
      sell_amount: sum(of: Trade_Sell_Amount)
      count
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-05-02",
  "till": "2023-05-09"
}

Similar queries