Latest Trades of NFT Token on DEX Protocol

Returns the latest 10 DEX trades on Ethereum, where DEX protocol name is seaport_v1.4, block date since 2023-05-02 and block date till 2023-05-09: 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 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query($network: evm_network, $limit: Int!, $offset: Int!, 
  $from: String, $till: String, , $protocol: String) {
  EVM(dataset: combined network: $network){
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {offset: $offset count: $limit}
      where: {
        Block: {Date: {since: $from till: $till }}
        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",
  "limit": 10,
  "offset": 0,
  "from": "2023-05-02",
  "till": "2023-05-09",
  "protocol": "seaport_v1.4"
}

Similar queries