transactionHistorical

Historical transaction records

Returns the latest 50 DEX trades by token on BNB Chain, where currency smart contract is 0x6952…e320 and trade price is above 0: block time, block number, transaction hash, protocol name, trade price, price in USD, side type and 2 more fields.

By ss · saved 16 May 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query TokenTradesAfterDate($network: evm_network, $token: String, $from_date: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, Price: {gt: 0}}, Block: {Time: {since: $from_date, till: ""}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolName
        }
        Price
        PriceInUSD
        Side {
          Type
          Currency {
            Symbol
          }
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x6952c5408b9822295ba4a7e694d0c5ffdb8fe320",
  "from_date_since": "2025-04-03T00:00:00Z",
  "from_date_till": "2025-04-03T00:00:00Z"
}

Similar queries