evm trades

Ethereum dextrades

Returns 10 DEX trades on BNB Chain, where transaction time after 2025-03-01, sorted by transaction time: buy amount, buy price, buy buyer, buy seller, buy smart contract, buy currency symbol, sell amount and 10 more fields.

By hk · saved 23 May 2025 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $wallet: String,
    $fromTime: DateTime, $offset: Int, $limit: Int) {

  EVM(dataset: combined, network: $network) {
    DEXTrades(
      where: {
        any: [
          {Trade: {Buy: {Buyer: {is: $wallet}}}}
          {Trade: {Buy: {Seller: {is: $wallet}}}}
          {Trade: {Sell: {Buyer: {is: $wallet}}}}
          {Trade: {Sell: {Seller: {is: $wallet}}}}
        ]
        Transaction: {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
          }
        }
        Success
        Index
      }
      Transaction {
        Hash
        Index
        Time
      }
    }
  }
}

Variables

{
    "network": "bsc",
    "wallet": "0xFaD0Ad375dE77f020a42426D41DE64498d690dA3",
    "fromTime": "2025-03-01T00:00:00.000Z",
    "offset": 0,
    "limit": 10
}

Similar queries