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: chain ID, block time, block number, transaction hash, smart contract, protocol family, protocol name and 12 more fields.

By Nadia · saved 18 September 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}}}}
    ) {
      ChainId
      Block {
        Time
        Number
      }
      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