Skip to Content

OHLCV streams

Subscribe to short_range_ohlcv targets for rolling candle updates over the same hosted socket.

Use OHLCV streams when you need the latest short-range candle for charts, monitors, or strategy logic. Include the target interval and read the rolling open, high, low, close, and volume values from the payload.

Back to Market WebSocket

Access

  • Surfaces: ws
  • Metering: ws_target_minute
  • Scope: OHLCV delivery · DEX · EVM family primary · Solana (Beta)

Handles

SurfaceLabelValue
wsEndpointwss://gw-aql.tomo.services/v1/market/ws
wsEvent familyshort_range_ohlcv
wsEvent typeMARKET_SHORT_RANGE_OHLCV

Availability

OHLCV stream targets use event_family: short_range_ohlcv and require an interval such as 1m.

Subscribe frame

{ "action": "subscribe", "targets": [ { "market_kind": "dex", "target_id": "0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2", "chain": "ethereum", "event_family": "short_range_ohlcv", "base_asset": "WETH", "quote_asset": "USDT", "interval": "1m" } ] }

OHLCV event

{ "event_type": "MARKET_SHORT_RANGE_OHLCV", "session_id": "sess_live_001", "sequence": 3, "target_id": "0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2", "market_kind": "dex", "chain": "ethereum", "source_id": "multi-source-kline", "source_publish_ts": "2026-04-15T08:00:02Z", "gateway_ingest_ts": "2026-04-15T08:00:02.005Z", "gateway_send_ts": "2026-04-15T08:00:02.010Z", "freshness_ms": 10, "payload": { "base_asset": "WETH", "quote_asset": "USDT", "interval": "1m", "open": 3180.1, "high": 3186.25, "low": 3178.8, "close": 3182.95, "volume": 1825.5 } }

Request fields

Subscribe frame

FieldTypeRequiredNotes
actionstringRequiredUse `subscribe`.
profilestringOptionalOptional delivery profile. Omit it to use the current default `standard` profile.
targetsarrayRequiredOne or more market targets to stream.

Target fields

FieldTypeRequiredNotes
targets[].market_kindstringRequiredUse `dex` for the public WebSocket target shape.
targets[].target_idstringRequiredToken or market target id.
targets[].chainstringRequiredTarget chain. Prefer the current EVM family such as `ethereum` or `base`; use `solana` only for the separate Beta lane.
targets[].event_familystringRequiredStream family such as `price` or `short_range_ohlcv`.
targets[].base_assetstringOptionalBase asset label shown in the payload.
targets[].quote_assetstringOptionalQuote asset label shown in the payload.
targets[].intervalstringOptionalOHLCV interval such as `1m`.

Response fields

Event envelope

FieldTypeNotes
event_typestringEvent type for the current frame.
session_idstringServer-issued stream id for the current connection.
sequencenumberMonotonic event order for the session.
target_idstringTarget id for the active stream.
market_kindstringMarket family. Public WebSocket uses `dex`.
chainstringTarget chain.
source_idstringSource label for the current event.
source_publish_tsstringSource publish timestamp.
gateway_ingest_tsstringTimestamp when the gateway received the event.
gateway_send_tsstringTimestamp when the gateway sent the event.
freshness_msnumberElapsed time from source publish to gateway send.
payloadobjectEvent-specific payload.

OHLCV payload

FieldTypeNotes
payload.base_assetstringBase asset label.
payload.quote_assetstringQuote asset label.
payload.intervalstringRequested candle interval.
payload.opennumberOpen price for the latest candle.
payload.highnumberHigh price for the latest candle.
payload.lownumberLow price for the latest candle.
payload.closenumberClose price for the latest candle.
payload.volumenumberVolume for the latest candle.
Last updated on