get balance change

latest trades for a token - both buy and sell

Returns 2000 balance updates on Ethereum, where currency smart contract is 0x7523…a86c 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: ["0x75231f58b43240c9718dd58b4967c5114342a86c", "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