For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/market-data/get-price-history-batch.md.
Get price history for multiple symbols
Returns price history for multiple symbols in a single request. Each symbol is resolved independently — an unknown or failing symbol returns a per-symbol error in its result entry instead of failing the whole batch, so partial results are still returned.
See the Time Window & Resolution
section for the format of window and resolution.
asset_ids?stringComma-separated list of backend asset IDs. Mutually exclusive with
symbols: exactly one of the two is required, and naming both is a
400.
symbols?stringDeprecatedComma-separated list of asset symbols (e.g. SOL,BTC,ETH).
window?stringLookback period (e.g. 1h, 4h, 1d, 7d, 1M).
"1h"resolution?stringGap between consecutive data points (e.g. 5s, 1m, 5m, 1h).
"5s"Batch price history data
application/json- response
window?stringThe time window used for the query
resolution?stringThe time resolution used for the query
results?array<>Per-symbol results
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices/history/batch'{ "window": "1h", "resolution": "5s", "results": [ { "symbol": "SOL", "points": [ { "t": "2025-01-20T12:00:00Z", "price": "100.50" }, { "t": "2025-01-20T12:00:05Z", "price": "101.00" } ] }, { "symbol": "BTC", "points": [ { "t": "2025-01-20T12:00:00Z", "price": "42000.00" } ] }, { "symbol": "UNKNOWN", "error": "unknown symbol" } ]}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.
Get a technical indicator series GET
Returns one or more technical indicator lines computed from the asset's close prices.