liquidity and supply of a pair

Returns transfers, where currency smart contract is 0xc02a…6cc2 or 0xa0b8…eb48: currency name, smart contract, currency symbol, sum of transfer amount in USD and sum of transfer amount.

By Kshitij Mahajan · saved 9 January 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive) {
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
      liquidityAdded: sum(
        of: Transfer_AmountInUSD
        if: {Transfer: {Receiver: {is: "0xe0554a476a092703abdb3ef35c80e0d76d32939f"}}}
      )
      liquidityRemoved: sum(
        of: Transfer_AmountInUSD
        if: {Transfer: {Sender: {is: "0xe0554a476a092703abdb3ef35c80e0d76d32939f"}}}
      )
      mint: sum(
        of: Transfer_Amount
        if: {Transfer: {Sender: {is: "0x0000000000000000000000000000000000000000"}}}
      )
      burn: sum(
        of: Transfer_Amount
        if: {Transfer: {Receiver: {is: "0x0000000000000000000000000000000000000000"}}}
      )
    }
  }
}

Similar queries