bsc token price

Returns one DEX trade by token on BNB Chain, where side currency smart contract is 0x8ac7…580d, 0x55d3…7955 or 2 more, currency smart contract is 0x7130…ad9c and block time since 2025-10-13, sorted by block time: block time, quantile of trade price in USD, average of trade price in USD and sum of trade side amount in USD.

By gaurav · saved 16 October 2025 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query tradingView($network: evm_network, $dataset: dataset_arg_enum, $interval: Int, $token: String, $usdc: String!, $usdt: String!, $wbnb: String!, $bnb: String!, $from: DateTime, $to: DateTime) {
  EVM(network: $network, dataset: $dataset) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {ascendingByField: "Block_Time"}
      where: {TransactionStatus: {Success: true}, Trade: {Side: {Currency: {SmartContract: {in: [$usdc, $usdt, $wbnb, $bnb]}}}, Currency: {SmartContract: {is: $token}}, Success: true}, Block: {Time: {since: $from, till: $to}}}
    ) {
      Block {
        Time(interval: {count: $interval, in: seconds})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      close: average(of: Trade_PriceInUSD)
      open: average(of: Trade_PriceInUSD)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c",
  "bnb": "0x",
  "usdc": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
  "usdt": "0x55d398326f99059ff775485246999027b3197955",
  "wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "dataset": "combined",
  "local": "EVM",
  "interval": 60,
  "from": "2025-10-13T12:29:00Z",
  "to": "2025-10-13T12:30:00Z"
}

Similar queries