All Pairs for a Token on any Arbitrum DEX Get all pairs of a token across different DEXs

Returns 10 DEX trades on Arbitrum, where buy currency smart contract is 0x912C…6548 and DEX protocol name is Uniswap: protocol name, owner address, protocol version, smart contract, pair name, pair symbol, buy currency name and 3 more fields.

By Kryp · saved 19 October 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {is: "Uniswap"}}, Buy: {Currency: {SmartContract: {is: "0x912CE59144191C1204E64559FE8253a0e49E6548"}}}}}
      limit: {count: 10}
      limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries