trades of a wallet on base

Returns the latest 5 DEX trades by token on Base, where block date after 2024-02-01 and block date before 2024-03-01: smart contract, currency name, currency symbol, trade amount, buyer, side amount, side currency name and 5 more fields.

By Divyasshree · saved 9 January 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: base) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      where: {Block: {Date: {after: "2024-02-01", before: "2024-03-01"}}, TransactionStatus: {Success: true}, any: [{Trade: {Buyer: {is: "0x1E6CBF02ad6A344c0b82A648945CbB8628fD2d31"}}}, {Trade: {Seller: {is: "0x1E6CBF02ad6A344c0b82A648945CbB8628fD2d31"}}}]}
      limit: {count: 5}
    ) {
      Trade {
        Currency {
          SmartContract
          Name
          Symbol
        }
        Amount
        Buyer
        Side {
          Amount
          Currency {
            Name
          }
          Seller
          AmountInUSD
        }
        Price
      }
      Block {
        Time
        Number
      }
    }
  }
}

Similar queries