Latest Trades of NFT Tokens in Network

Streams the latest 10 DEX trades on Ethereum as they happen: block time, block number, transaction hash, protocol family, protocol name, protocol version, smart contract and 12 more fields.

By Nadia · saved 2 June 2023 · Bitquery API v2

What it returns

The subscription

subscription ($network: evm_network, $limit: Int!) {
  EVM(network: $network) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Buy: {Currency: {Fungible: false}}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Currency {
            SmartContract
            Symbol
          }
          Price
          Amount
          Seller
          Buyer
          Ids
          URIs
        }
        Sell {
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      ChainId
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0
}

Similar queries