Get Latest Price of SOL in USD Real-time

Get Latest Price of SOL in USD Real-time. Uses the Trading cube. Change the token address in the `where` clause to use it. Trading cube - MEV-filtered trades with USD prices on every row.

By Akshat · saved 24 April 2024 · run 172 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Trading {
    Pairs(
      where: {
        Token: {
          Network: { is: "Solana" }
          Address: { is: "So11111111111111111111111111111111111111112" }
        },
        Price: { IsQuotedInUsd: true },
        Ranking: { Position: { eq: 1 } }
      }
    ) {
      Block { Time }
      Token { Symbol Name Address }
      QuoteToken { Symbol }
      Market { Name Protocol }
      Ranking { Position }
      Price { Ohlc { Open High Low Close } IsQuotedInUsd }
      Volume { Usd }
    }
  }
}

Similar queries