Skip to Content

Price streams

Subscribe to price targets for realtime price updates across the current EVM family.

Use price streams when you need a continuously refreshed price feed for dashboards, alerts, or trading logic. The event envelope stays stable while the payload carries base_asset, quote_asset, and price.

Back to Market WebSocket

Access

  • Surfaces: ws
  • Metering: ws_target_minute
  • Scope: Price delivery · DEX · EVM family primary

Handles

SurfaceLabelValue
wsEndpoint{MARKET_WSS_URL}
wsEvent familyprice
wsEvent typeMARKET_PRICE

Availability

Price stream targets use event_family: price and the public DEX target shape.

Subscribe frame

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

Price event

{ "event_type": "MARKET_PRICE", "session_id": "sess_live_001", "sequence": 2, "target_id": "0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2", "market_kind": "dex", "chain": "ethereum", "source_id": "multi-source-kline", "source_publish_ts": "2026-04-15T08:00:01Z", "gateway_ingest_ts": "2026-04-15T08:00:01.005Z", "gateway_send_ts": "2026-04-15T08:00:01.010Z", "freshness_ms": 10, "payload": { "base_asset": "WETH", "quote_asset": "USDT", "price": 3182.55 } }

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. Use one of the current public EVM chains such as `ethereum` or `base`.
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.

Price payload

FieldTypeNotes
payload.base_assetstringBase asset label.
payload.quote_assetstringQuote asset label.
payload.pricenumberLatest price.
Last updated on