Token trading pair information

Returns 200 DEX trades by token on BNB Chain, where currency smart contract is 0x14bb…fade and block time after 2024-09-22, sorted by USD, highest first: currency symbol, currency name, smart contract, fungible, side currency symbol, side currency name, side smart contract and 9 more fields.

By ss · saved 5 June 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query tokenTrades($network: evm_network, $token: String, $time_10min_ago: DateTime, $time_1h_ago: DateTime, $time_3h_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "usd"}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Time: {after: $time_3h_ago}}}
      limit: {count: 200}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
          Fungible
        }
        Side {
          Currency {
            Symbol
            Name
            SmartContract
          }
        }
        price_usd: PriceInUSD(maximum: Block_Number)
        price_last: Price(maximum: Block_Number)
        price_10min_ago: Price(
          maximum: Block_Number
          if: {Block: {Time: {before: $time_10min_ago}}}
        )
        price_1h_ago: Price(
          maximum: Block_Number
          if: {Block: {Time: {before: $time_1h_ago}}}
        )
        price_3h_ago: PriceInUSD(minimum: Block_Number)
        Dex {
          Pair {
            Decimals
            Name
            SmartContract
            Symbol
          }
          SmartContract
          ProtocolFamily
          ProtocolName
        }
      }
      usd: sum(of: Trade_AmountInUSD)
      count
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x14bb51b0a2a628be6a0bf48a01eadfe2be4dfade",
  "time_10min_ago": "2024-09-22T14:36:55Z",
  "time_1h_ago": "2024-09-22T13:46:55Z",
  "time_3h_ago": "2024-09-22T11:46:55Z"
}

Similar queries