gel_all_token_transactions

Returns DEX trades on Ethereum: sell amount, sell amount in USD, sell smart contract, buy amount, buy amount in USD, buy smart contract, sender fee in USD and from.

By Et · saved 18 May 2024 · run 14 times · Bitquery API v2

What it returns

The query

query ($address: String!) {
  EVM(network: eth) {
    DEXTrades(
      where: {TransactionStatus: {Success: true}, any: [{Trade: {Buy: {Currency: {SmartContract: {is: $address}}}}}, {Trade: {Sell: {Currency: {SmartContract: {is: $address}}}}}]}
    ) {
      Trade {
        Sell {
          Amount
          AmountInUSD
          Currency {
            SmartContract
          }
        }
        Buy {
          Amount
          AmountInUSD
          Currency {
            SmartContract
          }
        }
      }
      Fee {
        SenderFeeInUSD
      }
      Transaction {
        From
      }
    }
  }
}

Variables

{"address": "0x6d551bd441fb65513c0d815747b3409c1eb56886"}

Similar queries