Top Buy / Sell on Pumpfun

Returns 5 DEX trades by token on Solana, where DEX protocol family is Pumpfun, sorted by USD, highest first: currency symbol, currency name, currency mint address, sum of trade side amount in USD and sum of trade amount.

By Nadia · saved 21 August 2024 · run 5 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "usd"}
      where: {Trade: {Dex: {ProtocolFamily: {is: "Pumpfun"}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 5}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
        }
      }
      usd: sum(of: Trade_Side_AmountInUSD)
      sell: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      buy: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries