Solana ATH

Returns 10 DEX trades by token and balance updates on Solana, where currency mint address is BYvk9F…vcoD and side currency mint address is So1111…1112, 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 10 May 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query TradingView($token: String) {
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {in: ["So11111111111111111111111111111111111111112"]}}}}, Transaction: {Result: {Success: true}}}
    ) {
      max: quantile(of: Trade_PriceInUSD, level: 1)
    }
    BalanceUpdates(
      limit: {count: 10}
      orderBy: {descendingByField: "balance"}
      where: {BalanceUpdate: {Currency: {MintAddress: {is: $token}}}}
    ) {
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Account {
          Owner
        }
      }
    }
  }
}

Variables

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

Similar queries