ETX dex historical data

Returns 10 DEX trades on Ethereum, where buy currency smart contract is 0xa35b…a15b and pair name is balancer_v2: protocol name, owner address, protocol version, smart contract, pair name, pair symbol, buy currency name and 3 more fields.

By Nitin Jakhar · saved 24 November 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query Myquery{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xa35b1b31ce002fbf2058d22f30f95d405200a15b"}}}, 
        Dex: {Pair: {Name: {is: "balancer_v2"}}}}}
      limit: {count: 10}
      limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          PairTokenAddress: SmartContract
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries