For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/websocket/market-data/price-candles.md.
Price Candles
Receive
Server
Batch of OHLC price candles for tracked assets across the standard intervals.
const socket = new WebSocket("wss://api.truemarkets.co/v1/defi/market");socket.addEventListener("message", (event) => { console.log(event.data);});- payload
type*"price_candles"Value in
"price_candles"timestamp*integerUnix timestamp (seconds) when the message was generated.
Format
int64topics*array<>The concrete topic this message belongs to, e.g. ["price_candles"] — even for all subscribers.
data*array<>Example
{ "type": "price_candles", "timestamp": 0, "topics": [ "all" ], "data": [ { "symbol": "string", "address": "string", "chain": "string", "product_type": "spot", "interval": "string", "open": "string", "high": "string", "low": "string", "close": "string" } ]}