pools in solana with stats

Returns 1000 DEX trades on Solana, sorted by sell vol, highest first: count, sum of trade buy amount, sum of trade sell amount, program address, market address, buy currency mint address, buy currency name and 4 more fields.

By gaurav · saved 16 July 2024 · run 9 times · Bitquery API v2

What it returns

The query

{
  Solana {
    DEXTrades(
      limit: {count: 1000}
      limitBy: {by: Trade_Market_MarketAddress, count: 1}
      orderBy: {descendingByField: "sell_vol"}
    ) {
      trade: count
      buy_vol: sum(of: Trade_Buy_Amount)
      sell_vol: sum(of: Trade_Sell_Amount)
      Trade {
        Dex {
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Buy {
          Currency {
            MintAddress
            Name
            Symbol
          }
        }
        Sell {
          Currency {
            MintAddress
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries