Solana: Liquidity Change of a USDC/WSOL Liquidity Pool, Last 30 Days

Change in token and WSOL liquidity for the USDC/WSOL Orca Whirlpool liquidity pool on Solana over the last 30 days, from buy and sell amounts by month.

By Divyasshree · saved 20 November 2026 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: archive) {
    DEXTradeByTokens(
      where: {
        Block: { Date: { since_relative: { days_ago: 30 } } }
        Trade: {
          Currency: { MintAddress: { is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } }
          Side: {
            Currency: {
              MintAddress: { is: "So11111111111111111111111111111111111111112" }
            }
          }
          Market: {
            MarketAddress: {
              is: "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE"
            }
          }
        }
      }
      orderBy: { descendingByField: "Block_Timefield" }
      limit: { count: 1 }
    ) {
      tokenLiquidity: sum(
        of: Trade_Amount
        if: { Trade: { Side: { Type: { is: buy } } } }
      )
      wsolLiquidity: sum(
        of: Trade_Side_Amount
        if: { Trade: { Side: { Type: { is: sell } } } }
      )
      Block {
        Timefield: Time(interval: { in: months, count: 1 })
      }
      Trade {
        Market {
          MarketAddress
        }
      }
    }
  }
}

Similar queries