Minmimal Trade stats

Returns DEX trades by token on Solana, where currency mint address is HuBXmQ…WGff and account owner is 2ycFeu…uMAv: account owner, count and sum of trade amount.

By lukas · saved 24 June 2025 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query TopTraders($token: String) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Account: {Owner: {is: "2ycFeuM3o516BtWhckPhMdfXpLrW6ewGqkkTEMxquMAv"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Account {
          Owner
        }
      }
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      bought: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "network": "solana",
  "token": "HuBXmQEXd9PqNbjT8PfLaL11p6qrCBMr4pBKmTHdWGff",
  "time_ago": "2025-06-21T16:03:38Z"
}

Similar queries