token-pool-evm

Returns 10 DEX trades by token on BNB Chain, where currency smart contract is 0xe6df…5528 and block time after 2025-07-27, sorted by USD, highest first: currency symbol, currency name, smart contract, side currency symbol, side currency name, side smart contract, price in USD and 3 more fields.

By Sean · saved 1 August 2025 · Bitquery API v2

What it returns

Filters

The query

query tokenTrades($network: evm_network, $token: String,  $time_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "usd"}
      where: {TransactionStatus: {Success: true}, Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Time: {after: $time_ago}}}
      limit: {count: 10}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
          }
        }
        price_usd: PriceInUSD(maximum: Block_Number)
        Dex {
          ProtocolFamily
          ProtocolName
          SmartContract
        }
      }
      usd: sum(of: Trade_AmountInUSD)
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0xe6df05ce8c8301223373cf5b969afcb1498c5528",
  "time_10min_ago": "2025-07-30T08:41:31Z",
  "time_1h_ago": "2025-07-30T07:51:31Z",
  "time_3h_ago": "2025-07-30T05:51:31Z",
  "time_ago": "2025-07-27T08:51:31Z"
}

Similar queries