Profitable wallets

{ "network": "bsc", "time_24h_ago": "2024-10-12T16:43:32Z" }

Returns 500 DEX trades by token on BNB Chain, where block time since 2024-10-12, sorted by net profit USD, highest first: buyer, sum of trade side amount in USD, count, unique of trade currency smart contract, unique of trade buyer and unique of trade seller.

By Keanu · saved 13 October 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query ProfitableActiveWallets($network: evm_network, $time_24h_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "net_profit_usd"}
      limit: {count: 500}
      where: {
        Block: {Time: {since: $time_24h_ago}}
        TransactionStatus: {Success: true}
      }
    ) {
      Trade {
        Buyer
      }
      buy_volume_usd: sum(
        of: Trade_Side_AmountInUSD, 
        if: {Trade: {Side: {Type: {is: buy}}}}
        selectWhere: {gt: "0"}
      )
      sell_volume_usd: sum(
        of: Trade_Side_AmountInUSD, 
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      net_profit_usd: sum(
        of: Trade_Side_AmountInUSD, 
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      buy_trades: count(
        if: {Trade: {Side: {Type: {is: buy}}}}
        selectWhere: {gt: "0"}
      )
      sell_trades: count(if: {Trade: {Side: {Type: {is: sell}}}})
      total_trades: count(selectWhere: {lt: "100"})
      unique_tokens_bought: uniq(
        of: Trade_Currency_SmartContract
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      unique_tokens_sold: uniq(
        of: Trade_Currency_SmartContract
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      total_unique_tokens: uniq(of: Trade_Currency_SmartContract)
      total_volume_usd: sum(of: Trade_Side_AmountInUSD)
      buyers: uniq(of: Trade_Buyer)
      sellers: uniq(of: Trade_Seller)
    }
  }
}

Variables

{
  "network": "bsc",
  "time_24h_ago": "2024-10-12T16:43:32Z"
}

Similar queries