0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8

My address wallet

Returns the latest 50 DEX trades by token on BNB Chain, where side currency smart contract is 0x8ac7…580d, 0x55d3…7955 or 2 more and currency smart contract is 0x7789…4444: block time, transaction hash, smart contract, protocol family, protocol name, amount in USD, buyer and 11 more fields.

By Ali · saved 27 April 2025 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($network: evm_network, $token: String, $usdc: String!, $usdt: String!, $wbnb: String!, $bnb: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {TransactionStatus: {Success: true}, Trade: {Side: {Currency: {SmartContract: {in: [$usdc, $usdt, $wbnb, $bnb]}}}, Currency: {SmartContract: {is: $token}}, Success: true}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          SmartContract
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD
        Buyer
        Seller
        Side {
          Type
          Buyer
          Seller
        }
        PriceInUSD
        Amount
        Side {
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x77899749be61b20df8bbc554df0272c4e1c34444",
  "usdt": "0x55d398326f99059ff775485246999027b3197955",
  "usdc": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
  "wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "bnb": "0x",
  "dataset": "realtime",
  "time_ago": "2025-04-24T22:27:35Z"
}

Similar queries