Latest Trades of NFT Tokens in Network

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is not 0x, sell currency smart contract is not 0x and sell seller is not 0x: block time, transaction hash, protocol family, protocol name, protocol version, smart contract, buy smart contract and 12 more fields.

By Nadia · saved 13 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $from: String, $till: String) {
  EVM(network: $network, dataset: combined) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Buy: {Currency: {Fungible: false, SmartContract: {not: "0x"}}}, Sell: {Currency: {SmartContract: {not: "0x"}}, Seller: {not: "0x"}}, Success: true}, Block: {Date: {till: $till, since: $from}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Currency {
            SmartContract
            Symbol
          }
          Price
          PriceInUSD
          Amount
          AmountInUSD
          Seller
          Buyer
          Ids
          URIs
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      ChainId
    }
  }
}

Variables

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

Similar queries