yerTaxes query

Returns the latest 10 DEX trades by token on BNB Chain, where currency smart contract is 0x003d…33d1, block time is 2025-10-16 and trade price in USD is above 0: block time, block number, transaction hash, from, to, currency name, currency symbol and 7 more fields.

By Kshitij Mahajan · saved 16 October 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query TokenOHLCPrice($network: evm_network, $token: String, $timestamp: DateTime) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {
        Trade: {
          Currency: {SmartContract: {is: $token}}
          PriceInUSD: {gt: 0}
          AmountInUSD: {gt: "0"}
        }
        Block: {
          Time: {is: $timestamp}
        }
      }
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        From
        To
      }
      Trade {
        Currency {
          Name
          Symbol
          SmartContract
        }
        Amount
        AmountInUSD
        PriceInUSD
        Buyer
        Seller
        Dex {
          ProtocolName
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x003d87d02a2a01e9e8a20f507c83e15dd83a33d1",
  "timestamp": "2025-10-16T04:47:53Z"
}

Similar queries