optimism liq pools

Returns DEX trades on Optimism, where buy currency smart contract is 0x9560…88db, sorted by count, highest first: count, owner address, smart contract, buy currency name, buy currency symbol, buy protocol name, buy smart contract and 4 more fields.

By Qadir · saved 11 January 2025 · run 15 times · Bitquery API v2

What it returns

Filters

The query

query ($token: String!) {
  EVM(network: optimism) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}
      limitBy: {count: 10, by: Trade_Buy_Currency_Symbol}
      orderBy: {descendingByField: "count"}
    ) {
      count
      Trade {
        Dex {
          OwnerAddress
          SmartContract
          Pair {
            SmartContract
          }
        }
        Buy {
          Currency {
            Name
            Symbol
            ProtocolName
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            ProtocolName
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "token": "0x9560e827af36c94d2ac33a39bce1fe78631088db"
}

Similar queries