real time candles for all token

Streams DEX trades by token on Solana as they happen, sorted by block time: block time, price in USD, currency name, currency symbol, currency mint address, market address, quantile of trade price in USD and sum of trade side amount in USD.

By gaurav · saved 7 January 2025 · run 1 time · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    DEXTradeByTokens(orderBy: {ascendingByField: "Block_Time"}) {
      Block {
        Time
      }
      Trade {
        close: PriceInUSD(maximum: Transaction_Index)
        Currency {
          Name
          Symbol
          MintAddress
        }
        Market {
          MarketAddress
        }
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries