Array includes example

Returns the latest 10 DEX trades, where transaction to is 0x39da…D541 and DEX protocol name is seaport_v1.4: protocol name, buy price, buy seller, buy buyer, buy currency symbol, buy has URI, buy currency name and 12 more fields.

By Aleksey · saved 21 September 2023 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM {
    DEXTrades(
      limit: {offset: 0, count: 10}
      orderBy: {descendingByField: "Block_Time"}
      where: {Trade: {
        Buy: {Ids: {includes: [{eq: "5559"}]}}
        Dex: {ProtocolName: {is: "seaport_v1.4"}}}, Transaction: {To: {is: "0x39da41747a83aeE658334415666f3EF92DD0D541"}}}
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Price
          Seller
          Buyer
          Currency {
            Symbol
            HasURI
            Name
            Fungible
            SmartContract
          }
          Ids
          OrderId
          URIs
        }
        Sell {
          Price
          Amount
          Currency {
            Name
          }
          Buyer
          Seller
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}

Similar queries