Top Buy / Sell on Pumpfun

Returns 100 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 Aleksey · saved 15 August 2024 · run 12 times · Bitquery API v2

What it returns

Filters

The query

query {
  Solana {
    DEXTradeByTokens(
      
      orderBy: {descendingByField: "usd"}
      where: {
        Trade: {
          Dex: {
            ProtocolFamily: {
              is: "Pumpfun"
            }
          }
        }
        Transaction: {Result: {Success: true}}}
    limit: {count: 100}) {
      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