bsc combined dataset

Returns the latest 50 DEX trades by token on BNB Chain, where currency smart contract is 0x74da…8318, block time since 2025-06-01 and block time till 2025-06-03: block time, block date, owner address, protocol family, protocol name, amount in USD, buyer and 11 more fields.

By gaurav · saved 6 June 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($network: evm_network, $token: String, $dateFrom: DateTime, $dateTo: DateTime) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, Price: {gt: 0}},
        Block: {Time: {since: $dateFrom, till: $dateTo}}}
    ) {
      Block {
        allTime: Time
        Date
      }
      Trade {
        Dex {
          OwnerAddress
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD
        Buyer
        Seller
        Side {
          Type
          Buyer
          Seller
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x74da4c5f8c254dd4fb39f9804c0924f52a808318",
  "dateFrom": "2025-06-01T00:00:00Z",
  "dateTo": "2025-06-03T00:00:00Z"
}

Similar queries