For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/market-data/get-prices.md.

Get price candles by symbol

GET
/v1/defi/market/prices

Returns the latest price candles (open/high/low/close) for an asset across multiple standard intervals (1h, 4h, 24h). Useful for rendering at-a-glance price summaries.

Query Parameters

asset_id?string

Backend asset ID. Mutually exclusive with symbol: exactly one of the two is required, and naming both is a 400.

Formatuuid
symbol?stringDeprecated

Asset symbol to fetch candles for (e.g. SOL, BTC).

asset_class?string

Asset class to resolve the asset in. Defaults to spot; if the asset has no spot listing at all, falls back to perp.

Default"spot"
Value in"spot""perp"

Response Body

Price candle data for the requested symbol

application/json
  1. response
asset_id?string

Backend asset ID, present when the request named one

Formatuuid
symbol?string

The asset symbol

candles?array<>

List of price candles for different time intervals

Example Request
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices'
Example Response
{  "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",  "symbol": "string",  "candles": [    {      "interval": "string",      "openPrice": "string",      "closePrice": "string",      "highPrice": "string",      "lowPrice": "string"    }  ]}