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

GET
/v1/defi/market/prices/history/batch

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.

Query Parameters

asset_ids?string

Comma-separated list of backend asset IDs. Mutually exclusive with symbols: exactly one of the two is required, and naming both is a 400.

symbols?stringDeprecated

Comma-separated list of asset symbols (e.g. SOL,BTC,ETH).

window?string

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

Default"1h"
resolution?string

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

Default"5s"

Response Body

Batch price history data

application/json
  1. response
window?string

The time window used for the query

resolution?string

The time resolution used for the query

results?array<>

Per-symbol results

Example Request
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices/history/batch'
Example Response
{  "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"    }  ]}