Volatility of WSOL USDC Pair on Lifinity Dex on Solana

Standard deviation of the WSOL/USDC price on Lifinity over the last five days. This pair is currently inactive on Lifinity, so the query returns 0 trades - change the `ProtocolFamily` to a busier venue such as Raydium or Meteora to see a live figure. Uses `DEXTradeByTokens` rather than `Solana.DEXTrades`, which keeps about 12 hours and has no archive.

By Akshat · saved 18 March 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query Volatility {
  Solana {
    DEXTradeByTokens(
      where: {
        Trade: {
          Dex: { ProtocolFamily: { is: "Lifinity" } }
          Currency: { MintAddress: { is: "So11111111111111111111111111111111111111112" } }
          Side: { Currency: { MintAddress: { is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } } }
        }
        Block: { Time: { since_relative: { days_ago: 5 } } }
      }
    ) {
      volatility: standard_deviation(of: Trade_Price)
      trades: count
    }
  }
}

Similar queries