Latest Trades of NFT Token

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0xae7a…fe84, block date since 2023-05-02 and block date till 2023-05-09: chain ID, block time, transaction hash, protocol family, protocol name, protocol version, smart contract and 8 more fields.

By Nadia · saved 1 June 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, $token: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {offset: $offset, count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}
    ) {
      ChainId
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Price
          Buyer
          Seller
          Currency {
            Symbol
            SmartContract
          }
        }
        Sell {
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-05-02",
  "till": "2023-05-09",
  "token": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
}

Similar queries