For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/market-data/get-price-history.md.
Get price history for a symbol
Returns historical price points for an asset over a configurable lookback window, sampled at a configurable resolution. Use for charting and time-series analysis.
See the Time Window & Resolution
section for the format of window and resolution.
asset_id?stringBackend asset ID. Mutually exclusive with symbol: exactly one of
the two is required, and naming both is a 400.
uuidsymbol?stringDeprecatedAsset symbol to fetch history for (e.g. SOL, BTC).
window?stringLookback period (e.g. 1h, 4h, 1d, 7d, 1M).
"1h"as_of?stringEnds 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.
date-timeresolution?stringGap between consecutive data points (e.g. 5s, 1m, 5m, 1h).
"5s"asset_class?stringAsset class to resolve the symbol in. Defaults to spot.
"spot""spot""perp"Price history data for the requested symbol
application/json- response
asset_id?stringBackend asset ID. Absent on the CeFi routes.
uuidsymbol?stringThe asset symbol
window?stringThe time window used for the query
resolution?stringThe time resolution used for the query
points?array<>List of price points
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices/history'{ "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4", "symbol": "string", "window": "string", "resolution": "string", "points": [ { "t": "string", "price": "string" } ]}Get price candles by symbol GET
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.
Get price at a point in time GET
Returns the last known price for an asset at or before the given timestamp. Use this to value a position, settle a trade, or anchor a calculation to a specific moment in time.