Get the latest trades of an address

Returns the latest 10 DEX trades, where trade sender is 0x47f9…9f89 and DEX protocol name is seaport_v1.4: protocol name, buy price, buy seller, buy buyer, buy has URI, buy currency name, buy fungible and 8 more fields.

By Nikhil · saved 22 August 2023 · run 9 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: {Dex: {ProtocolName: {is: "seaport_v1.4"}}, Buy: {}, Sender: {is: "0x47f98fa3a3f8d8a62d99d112ce74e68b8de79f89"}}}
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Price
          Seller
          Buyer
          Currency {
            HasURI
            Name
            Fungible
            SmartContract
          }
        }
        Sell {
          Price
          Amount
          Currency {
            Name
          }
          Buyer
          Seller
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}

Similar queries