buy currency is wrong

Returns DEX trades on BNB Chain, where transaction hash is 0x0dcd…0662, sell currency smart contract is 0xbbb7…4444 and block time is 2025-10-28: block time, transaction hash, buy amount, buy amount in USD, buy buyer, buy seller, buy price and 15 more fields.

By Akshat · saved 28 October 2025 · run 12 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: bsc, dataset:combined) {
    DEXTrades(
      where: {Block:{Time:{is:"2025-10-28T13:04:12Z"}} Transaction: {Hash: {in: ["0x0dcdba83a8316e3bb71c1f8fa5814e0034f70daaee696bcd8964a050369c0662"]}}, Trade: {Sell: {Currency: {SmartContract: {is: "0xbbb7ce5ec23af39d0cf86882bb4b87ee09114444"}}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          AmountInUSD
          Buyer
          Seller
          Price
          PriceInUSD
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
        Dex {
          ProtocolName
          SmartContract
        }
        Sell {
          Amount
          AmountInUSD
          Buyer
          Seller
          Price
          PriceInUSD
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Similar queries