Get Latest Price of SOL in USD Real-time

Returns the latest DEX trade by token on Solana, where currency mint address is So1111…1112 and side currency mint address is EPjFWd…Dt1v: amount in USD, trade amount, currency mint address, currency name, program address, protocol name, trade price and 6 more fields.

By Akshat · saved 6 February 2025 · run 7 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}}
      orderBy:{descending:Block_Time}
      limit: {count: 1}
    ) {
      Trade {
        AmountInUSD
        Amount
        Currency {
          MintAddress
          Name
        }
        Dex {
          ProgramAddress
          ProtocolName
        }
        Price
        PriceInUSD
        Side {
          Account {
            Address
          }
          AmountInUSD
          Amount
          Currency {
            Name
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries