evm trades

Ethereum dextrades

Returns 10 DEX trades on Ethereum, where block time after 1970-01-01: buy amount, buy price, buy buyer, buy seller, buy currency name, buy currency symbol, buy decimals and 25 more fields.

By hk · saved 22 May 2025 · Bitquery API v2

What it returns

Filters

The query

query ($account: String, $fromTime: DateTime, $offset: Int, $limit: Int) {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {any: [{Trade: {Buy: {Buyer: {is: $account}}}}, {Trade: {Buy: {Seller: {is: $account}}}}, {Trade: {Sell: {Buyer: {is: $account}}}}, {Trade: {Sell: {Seller: {is: $account}}}}], Block: {Time: {after: $fromTime}}}
      limit: {offset: $offset, count: $limit}
    ) {
      Trade {
        Buy {
          Amount
          Price
          Buyer
          Seller
          Currency {
            Name
            Symbol
            Decimals
            SmartContract
            HasURI
            Fungible
            ProtocolName
          }
        }
        Sell {
          Amount
          Price
          Seller
          Buyer
          Currency {
            Decimals
            Name
            Symbol
            HasURI
            SmartContract
            Fungible
            ProtocolName
          }
        }
      }
      Transaction {
        From
        Hash
        Index
        Nonce
        Time
        To
        ValueInUSD
        Type
        CostInUSD
      }
      TransactionStatus {
        Success
      }
    }
  }
}

Variables

{
  "account": "0xD270014849d550d280135e2DC57B0cF8Ec63FF2f",
  "fromTime": "1970-01-01T00:00:00.000Z",
  "offset": 0,
  "limit": 10
}

Similar queries