ATH SOL

Returns 6 DEX trades by token and balance updates on Solana, where currency mint address is 2SdUaK…Pump, side currency mint address is 111111…1111, So1111…1112 or 4 more and block time after 2025-05-06, sorted by balance, highest first: block time, quantile of trade price in USD, sum of balance update amount and account owner.

By LÂM QUANG VINH · saved 13 May 2025 · Bitquery API v2

What it returns

Filters

The query

query TradingView($token: String, $from: DateTime, $interval: Int) {
        Solana(dataset: realtime) {
          DEXTradeByTokens(
            orderBy: { ascendingByField: "Block_Time" }
            where: {
              Trade: {
                Currency: { MintAddress: { is: $token } }
                Side: {
                  Currency: {
                    MintAddress: {
                      in: [
                        "11111111111111111111111111111111"
                        "So11111111111111111111111111111111111111112"
                        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
                        "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
                        "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"
                        "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"
                      ]
                    }
                  }
                }
              }
              Block: { Time: { after: $from } }
              Transaction: { Result: { Success: true } }
            }
          ) {
            Block {
              Time(interval: { count: $interval, in: seconds })
            }
            min: quantile(of: Trade_PriceInUSD, level: 0.05)
            max: quantile(of: Trade_PriceInUSD, level: 0.9999)
          }
          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": "2SdUaKY4RdU4B8m5rJv7gojX7E65jEz4HhGAzswvPump",
  "interval": 300,
  "from": "2025-05-06T07:09:53.324Z",
  "to": "2025-05-14T17:20:40.000Z"
}

Similar queries