Live Trades of NFT Token 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, buy currency symbol, buy smart contract, buy price, buy buyer and 6 more fields.

By Nadia · saved 12 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: true}
          }
        }
      }
    ){
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          SmartContract
        }
        Buy {
          Currency {
            Symbol
            SmartContract
          }     
					Price
          Buyer
          Seller
          Ids
          URIs
        }
        Sell {
        
          Amount
          Currency {
            Symbol
            SmartContract
          }        
        }
      }
    }
  }
}

Variables

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

Similar queries