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

Get price history for an asset

GET
/v1/assets/prices/history

Returns historical price points for an asset over a configurable lookback window, sampled at a configurable resolution.

The same series as /v1/defi/market/prices/history, mounted under the asset-oriented path. This mount stores no individual ticks, so candle endpoints and candle-input indicators are unavailable here.

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

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

window?string

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

Default"1h"
as_of?string

Ends the window at this instant instead of now, so a past period can be read. RFC3339, and not the zero time. A future instant bounds a window that is still filling. Absent reads live data.

Formatdate-time
resolution?string

Gap between consecutive data points (e.g. 5s, 1m, 5m, 1h).

Default"5s"
asset_class?string

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

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

Response Body

Price history data for the requested asset

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

resolution?string

The time resolution used for the query

points?array<>

List of price points

Example Request
curl -X GET 'https://api.truemarkets.co/v1/assets/prices/history'
Example Response
{  "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",  "symbol": "string",  "window": "string",  "resolution": "string",  "points": [    {      "t": "string",      "price": "string"    }  ]}