real time price

Streams the latest 50 DEX trades by token on Solana as they happen, where side currency mint address is So1111…1112 and side amount is above 0: quantile of trade price in USD, price in USD, currency name, currency symbol, currency mint address, side currency symbol and side currency mint address.

By gaurav · saved 14 July 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription LatestTrades($token: String) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Transaction: {Result: {Success: true}}, Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}}}
    ) {
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      Trade {
        PriceInUSD
        Currency{
          Name
          Symbol
          MintAddress
        }
        Side{
        	Currency{
            Symbol
            MintAddress
          }
        }
      }
    }
  }
}

Variables

{
  "network": "solana",
  "base": "pumpeALaQHVP7mCdjmhFkAnesZj3vXMJhD4rFffYDfn",
  "token": "So11111111111111111111111111111111111111112",
  "time_ago": "2025-07-11T09:25:16Z",
  "dataset": "realtime",
  "interval": 900,
  "from": "2025-06-30T23:11:23.000Z",
  "to": "2025-07-14T09:26:23.000Z"
}

Similar queries