Solana ATH

Returns 6 DEX trades by token and balance updates on Solana, where currency mint address is 9noTjn…cawr, 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 11 May 2025 · run 13 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(of: Trade_PriceInUSD, level: 1)
    }
    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": "9noTjn2gtKTxcY2USgjKacTEDLLvR7d91saZhhvScawr"
}

Similar queries