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

Live price for a subscribed price.{SYMBOL} topic.

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"
Value in"price"
timestamp*integer
Formatint64
topics*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"  }}