token trade

Returns the latest DEX trades on Ethereum, where transaction from is 0x9dda…2c42, transaction hash is 0x4ecd…ca52 and buy currency smart contract is 0xc02a…6cc2: block time, sender fee, buy amount, buy currency symbol, buy smart contract, buy price, sell amount and 6 more fields.

By gaurav · saved 29 April 2024 · run 10 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    buyside: DEXTrades(
      where: {Transaction: {From: {is: "0x9dda370f43567b9c757a3f946705567bce482c42"}, Hash: {is: "0x4ecd3bdd43c48cdda45a5e4bfe33694849ed4f0f35fe0b6cb66c4470b158ca52"}}, Trade: {Buy: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}, Success: true}}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Fee {
        SenderFee
      }
      Trade {
        Buy {
          Amount
          Currency {
            Symbol
            SmartContract
          }
          Price
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            Symbol
            SmartContract
          }
          Price
        }
        Dex {
          ProtocolName
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries