For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/websocket/market-data/price.md.
Price
Receive
Server
Live price for a subscribed price.{SYMBOL} topic.
const socket = new WebSocket("wss://api.truemarkets.co/v1/defi/market");socket.addEventListener("message", (event) => { console.log(event.data);});- payload
type*"price"Value in
"price"timestamp*integerFormat
int64topics*array<string>The concrete topic, e.g. ["price.BTC"].
data*A symbol's displayed price and its change against the 1h and 24h candle opens.
Example
{ "type": "price", "timestamp": 0, "topics": [ "string" ], "data": { "symbol": "string", "asset_class": "spot", "price": "string", "change_1h": "string", "change_24h": "string", "timestamp": "2019-08-24T14:15:22Z" }}