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

Get price at a point in time

GET
/v1/defi/market/prices/history/point

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.

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

timestamp*integer

Unix timestamp in seconds. The response returns the most recent price at or before this moment.

Formatint64
asset_class?string

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

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

Response Body

Price at the requested point in time

application/json
  1. response
asset_id?string

Backend asset ID. Absent on the CeFi routes.

Formatuuid
symbol?string

The asset symbol

timestamp?integer

Unix timestamp of the actual data point returned

Formatint64
price?string

Price at the returned timestamp

Example Request
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices/history/point?timestamp=0'
Example Response
{  "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",  "symbol": "string",  "timestamp": 0,  "price": "string"}