top tokens by price change/ volume/ buys/ sells

Returns 100 DEX trades by token on BNB Chain, where DEX protocol name is fourmeme_v1 and side currency smart contract is 0x, sorted by buys 1 hr, highest first: currency name, currency symbol, smart contract, trade price, side currency name, side currency symbol, side smart contract and 3 more fields.

By Akshat · saved 28 October 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: bsc dataset:combined) {
    DEXTradeByTokens(
      limit:{count:100}
      orderBy:{descendingByField:"buys_1hr"}
      where: {Block: {Time: {since_relative: {hours_ago: 24}}}, TransactionStatus: {Success: true}, Trade: {Dex: {ProtocolName: {is: "fourmeme_v1"}}, Side: { Currency: {SmartContract: {in: ["0x"]}}}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          SmartContract
        }
        price_24hr: Price(minimum: Block_Time)
        price_1hr: Price(maximum: Block_Time if: {Block: {Time: {till_relative: {hours_ago: 1}}}} )
        price_5min: Price(maximum: Block_Time if: {Block: {Time: {till_relative: {minutes_ago: 5}}}})
        current: Price(maximum:Block_Time)
        Side{
          Currency{
            Name
            Symbol
            SmartContract
          }
        }
      }
      buys_1hr: count(if:{Trade:{Side:{Type:{is:buy}}}, Block: {Time: {till_relative: {hours_ago: 1}}}})
      buys_24hr: count(if:{Trade:{Side:{Type:{is:buy}}}})
      sells_1hr: count(if:{Trade:{Side:{Type:{is:sell}}}, Block: {Time: {till_relative: {hours_ago: 1}}}})
      sells_24hr: count(if:{Trade:{Side:{Type:{is:sell}}}})
      volume_1hr:sum(of:Trade_Side_AmountInUSD if: {Block: {Time: {till_relative: {hours_ago: 1}}}})
      volume_24hr:sum(of:Trade_Side_AmountInUSD)
      change_24hr: calculate(
        expression: "( $Trade_current - $Trade_price_24hr ) / $Trade_price_24hr * 100"
      )
      change_1hr: calculate(
        expression: "( $Trade_current - $Trade_price_1hr ) / $Trade_price_1hr * 100"
      )
      change_5min: calculate(
        expression: "( $Trade_current - $Trade_price_5min ) / $Trade_price_5min * 100"
      )
    }
  }
}

Similar queries