Solana ATH

Returns 6 DEX trades by token and balance updates on Solana, where currency mint address is CDBdbN…bonk, sorted by balance, highest first: quantile of trade price in USD, sum of balance update amount and account owner.

By LÂM QUANG VINH · saved 12 May 2025 · run 37 times · Bitquery API v2

What it returns

Filters

The query

query TradingView($token: String) {
  Solana(dataset: realtime) {
    DEXTradeByTokens(where: {Trade: {Currency: {MintAddress: {is: $token}}}}) {
      max: quantile(level: 1, of: Trade_PriceInUSD)
    }
    BalanceUpdates(
      limit: {count: 6}
      orderBy: {descendingByField: "balance"}
      where: {BalanceUpdate: {Currency: {MintAddress: {is: $token}}}}
    ) {
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Account {
          Owner
        }
      }
    }
  }
}

Variables

{
  "network": "solana",
  "token": "CDBdbNqmrLu1PcgjrFG52yxg71QnFhBZcUE6PSFdbonk"
}

Similar queries