Live Trades of NFT on DEX Protocol

Streams the latest DEX trades on Ethereum as they happen, where DEX protocol name is seaport_v1.4: block time, transaction hash, smart contract, protocol family, protocol name, protocol version, buy currency symbol and 10 more fields.

By Nadia · saved 16 May 2023 · Bitquery API v2

What it returns

Filters

The subscription

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

Variables

{
  "network": "eth",
  "protocol": "seaport_v1.4"
}

Similar queries