get balance change 2

latest trades for a token - both buy and sell

Returns 2000 balance updates on Ethereum, where currency smart contract is 0xdAC1…1ec7 or 0xA0b8…eB48, block time after 2023-05-16 and block time before 2023-05-17, sorted by balance changed, highest first: balance update address, sum of balance update amount and currency name.

By Ivan · saved 28 June 2023 · run 8 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: archive) {
    BalanceUpdates(
      limit: {count: 2000}
      orderBy: {descendingByField: "balanceChanged"}
      where: {Currency: {SmartContract: {in: ["0xdAC17F958D2ee523a2206206994597C13D831ec7", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]}}, Block: {Time: {after: "2023-05-16T06:51:24Z", before: "2023-05-17T06:51:24Z"}}}
    ) {
      BalanceUpdate {
        Address
      }
      balanceChanged: sum(of: BalanceUpdate_Amount)
      Currency {
        Name
      }
    }
  }
}

Similar queries