Top Traded NFT in Network

Returns 10 DEX trades on BNB Chain, where block date since 2024-09-10 and block date till 2024-09-17, 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 2 more fields.

By lukas · saved 17 September 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: archive, 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
      ChainId
    }
  }
}

Variables

{
  "network": "bsc",
  "limit": 10,
  "offset": 0,
  "from": "2024-09-10",
  "till": "2024-09-17",
  "mempool": false,
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2024-09-13"
}

Similar queries