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
/v1/defi/market
Server

Batch of OHLC price candles for tracked assets across the standard intervals.

Code Sample
const socket = new WebSocket("wss://api.truemarkets.co/v1/defi/market");socket.addEventListener("message", (event) => {  console.log(event.data);});

Messages

  1. payload
type*"price_candles"
Value in"price_candles"
timestamp*integer

Unix timestamp (seconds) when the message was generated.

Formatint64
topics*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"    }  ]}