DEX Top traders

Returns 100 DEX trades by token on Solana, where DEX protocol family is Raydium, sorted by volume USD, highest first: account owner, program address, protocol family, protocol name, currency mint address, currency symbol, currency name and 4 more fields.

By Aleksey · saved 2 September 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query TopTraders($market: String!) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {Trade: {Dex: {ProtocolFamily: {is: $market}}}}
    ) {
      Trade {
        Account {
          Owner
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        
      	Currency {
          MintAddress
          Symbol
          Name
        }
        
        Side {
          Currency {
            MintAddress
            Symbol
            Name
          }
        }
        
      }
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "market": "Raydium"
}

Similar queries