EVM Dex historical transaction records

Historical transaction records

Returns the latest 100000 DEX trades by token on BNB Chain, where currency smart contract is 0x6952…e320, transaction from is 0x04da…78dc and trade price is above 0: block time, block number, from, to, transaction hash, owner address, protocol family and 14 more fields.

By ss · saved 16 May 2025 · run 15 times · Bitquery API v2

What it returns

Filters

The query

query TokenTradesAfterDate($network: evm_network, $token: String) {
  EVM(network: $network, dataset: archive) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 100000}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, Price: {gt: 0}}, Block: {Time: {}}, Transaction: {From: {is: "0x04dae4287e235488344f741886324e9afae078dc"}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Dex {
          OwnerAddress
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD
        Buyer
        Seller
        Side {
          Type
          Buyer
          Seller
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x6952c5408b9822295ba4a7e694d0c5ffdb8fe320",
  "from_date_since": "2025-04-03T00:00:00Z",
  "from_date_till": "2025-04-03T00:00:00Z"
}

Similar queries