Volatility of a Pair on Meteora Dynamic

Standard deviation of the WSOL/USDC price on Meteora over the last five days. The previous version asked `Solana.DEXTrades` for a two-hour window more than a year old and reported a volatility of 0, which meant no data rather than no movement. `trades` is returned alongside so an empty window is visible.

By gaurav · saved 23 May 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
}

Similar queries