expression

Returns the latest 100 DEX trades on BNB Chain, where transaction hash is 0x0b8d…854c, block time since 2026-01-10 and block time till 2026-01-10: transaction hash, buy amount, buy smart contract, buy currency symbol, sell amount, sell smart contract, sell currency symbol and 3 more fields.

By Akshat · saved 22 January 2026 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query ($from: DateTime, $till: DateTime, $limit: Int!, $offset: Int!) {
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      orderBy: {descending: Block_Time}
      where: {Transaction: {Hash: {is: "0x0b8ddb3b65bdc90c61eec73cd4bd1a067e723ae8bf2f019a0b06064d8f74854c"}}, TransactionStatus: {Success: true}, Block: {Time: {since: $from, till: $till}}}
    ) {
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
        Sell {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
        Dex {
          SmartContract
          ProtocolName
        }
      }
      calculate(expression: "$Trade_Buy_Amount - $Trade_Sell_Amount")
    }
  }
}

Variables

{
  "from": "2026-01-10T17:00:00Z",
  "till": "2026-01-10T20:00:00Z",
  "limit": "100",
  "offset": "0"
}

Similar queries