solana ohlc websocket

Streams DEX trades by token on Solana as they happen: block time, block height, sum of trade amount, currency name, currency symbol, currency mint address, side currency name and 3 more fields.

By gaurav · saved 18 April 2024 · run 49 times · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      limitBy: {by: [Trade_Currency_MintAddress, Trade_Side_Currency_MintAddress], count: 1}
    ) {
      Block {
        Time(interval: {in: minutes, count: 1})
        lastTradeTime: Time(maximum: Block_Time)
        FirstTradeTime: Time(minimum: Block_Time)
        LastTradeBlock: Height(maximum: Block_Height)
        FirstTradeBlock: Height(minimum: Block_Height)
      }
      volume: sum(of: Trade_Amount)
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Height)
        close: Price(maximum: Block_Height)
      }
    }
  }
}

Similar queries