evm trades

Ethereum dextrades

Returns 100 DEX trades on Ethereum, where block time after 1970-01-01, sorted by transaction time: buy amount, buy price, buy buyer, buy seller, buy smart contract, buy currency symbol, sell amount and 11 more fields.

By hk · saved 22 May 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $account: String,
    $fromTime: DateTime, $offset: Int, $limit: Int) {
        
  EVM(dataset: combined, network: $network) {
    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}
      orderBy: {ascending: Transaction_Time}
    ) {
      Trade {
        Buy {
          Amount
          Price
          Buyer
          Seller
          Currency {
            SmartContract
            Symbol
          }
        }
        Sell {
          Amount
          Price
          Seller
          Buyer
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      Transaction {
        From
        Hash
        Index
        Time
        To
      }
      TransactionStatus {
        Success
      }
    }
  }
}

Variables

{
    "network": "eth",
    "account": "0x6189Ae884C3f5583e9334a68d92B7856e09453CB",
    "fromTime": "1970-01-01T00:00:00.000Z",
    "offset": 0,
    "limit": 100
}

Similar queries