Raydium pool trading stats

Returns 5000 DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is bioJ9J…SvUJ and block time since 2025-04-30, sorted by block time: count, sum of trade side amount, sum of trade side amount in USD, block time, side currency mint address, side currency name, side currency symbol and 5 more fields.

By Artem · saved 30 April 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query archivetrades($token: String, $base: String, $after: DateTime!) {
  Solana(network: solana, dataset: archive) {
    DEXTradeByTokens(
      orderBy: {ascending: Block_Time}
      limit: {count: 5000}
      where: {Transaction: {Result: {Success: true}}, Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $base}}}, Currency: {MintAddress: {is: $token}}}, Block: {Time: {since: $after}}}
    ) {
      trades: count
      volume: sum(of: Trade_Side_Amount)
      usd_volume: sum(of: Trade_Side_AmountInUSD)
      buy_volume: sum(
        of: Trade_Side_Amount
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sell_volume: sum(
        of: Trade_Side_Amount
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      Block {
        Time
      }
      Trade {
        Side {
          Currency {
            MintAddress
            Name
            Symbol
          }
        }
        Currency {
          Symbol
          MintAddress
          Name
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
    }
  }
}

Variables

{
  "after": "2025-04-30T00:00:00Z",
  "base": "So11111111111111111111111111111111111111112",
  "token": "bioJ9JTqW62MLz7UKHU69gtKhPpGi1BQhccj2kmSvUJ"
}

Similar queries