Price of a token on Orca

You can use the following query to get the latest price of a token, we have used WSOL address here in the below example. We are getting realtime price of WSOL on Orca DEX on Solana in different pools. Trading cube - MEV-filtered trades with USD prices on every row.

By Akshat · saved 9 May 2024 · run 85 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Trading {
    Trades(
      where: {
        Pair: {
          Market: { Network: { is: "Solana" } }
          Token: { Address: { is: "So11111111111111111111111111111111111111112" } }
        }
      }
    ) {
      Block { Time }
      Pair { Market { Name Protocol Network } Token { Symbol Address } QuoteToken { Symbol } }
      Side
      Price
      PriceInUsd
      AmountsInUsd { Base Quote }
      Trader { Address }
      TransactionHeader { Hash }
    }
  }
}

Similar queries