NFT Marketplace Data

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: protocol name, protocol family, protocol version, unique of trade buy currency smart contract, unique of trade sell currency smart contract, unique of trade buy buyer, count and chain ID.

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: 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 {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
      nfts: uniq(of: Trade_Buy_Currency_SmartContract, method: approximate)
      currencies: uniq(of: Trade_Sell_Currency_SmartContract, method: approximate)
      buyers: uniq(of: Trade_Buy_Buyer, method: approximate)
      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