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

Get min/max price over a window

GET
/v1/defi/market/prices/range

Returns the minimum and maximum price observed for an asset within a configurable lookback window, along with the timestamps at which each extreme occurred. Useful for surfacing 24h highs/lows or computing period-over-period statistics.

See the Time Window & Resolution section for the format of window.

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 the range for (e.g. SOL, BTC).

window?string

Lookback period (e.g. 1h, 4h, 1d, 7d, 1M).

Default"1h"
asset_class?string

Asset class to resolve the symbol in. Defaults to spot.

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

Response Body

Price range data for the requested symbol

application/json
  1. response
asset_id?string

Backend asset ID. Absent on the CeFi routes.

Formatuuid
symbol?string

The asset symbol

window?string

The time window used for the query

min_price?string

Minimum price within the window

max_price?string

Maximum price within the window

min_timestamp?string

ISO 8601 timestamp when the minimum price occurred

max_timestamp?string

ISO 8601 timestamp when the maximum price occurred

Example Request
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices/range'
Example Response
{  "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",  "symbol": "string",  "window": "string",  "min_price": "string",  "max_price": "string",  "min_timestamp": "string",  "max_timestamp": "string"}