Realtime OHLC historical solana

Streams one DEX trade by token on Solana as they happen, sorted by block time: currency name, currency mint address, currency symbol, price in USD, trade price, side currency name, side currency mint address and 3 more fields.

By gaurav · saved 15 March 2025 · run 5 times · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    DEXTradeByTokens(limit: {count: 1}, orderBy: {ascendingByField: "Block_Time"}) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        high: PriceInUSD(maximum: Trade_PriceInUSD)
        low: PriceInUSD(minimum: Trade_PriceInUSD)
        open: PriceInUSD(minimum: Block_Slot)
        close: PriceInUSD(maximum: Block_Slot)
        price: PriceInUSD(maximum: Trade_PriceInUSD)
        highp: Price(maximum: Trade_Price)
        lowp: Price(minimum: Trade_Price)
        openp: Price(minimum: Block_Slot)
        closep: Price(maximum: Block_Slot)
        pricep: Price(maximum: Trade_Price)
        Side {
          Currency {
            Name
            MintAddress
            Symbol
          }
        }
      }
      volume: sum(of: Trade_Side_AmountInUSD)
      Block {
        Time(interval: {count: 1, in: seconds})
      }
    }
  }
}

Similar queries