top sellers of a token

Returns 10 DEX trades by token on Solana, where currency mint address is 4k3Dyj…kX6R, sorted by sell, highest first: account address, token owner, currency symbol, currency name, currency mint address and sum of trade side amount in USD.

By Akshat · saved 12 February 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "sell"}
      where: {Trade: {Currency: {MintAddress: {is: "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R"}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 10}
    ) {
      Trade {
        Account{
          Address
          Token{
            Owner
          }
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
      }
      buy: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Versions

Similar queries