get_price_at_time
Get price at a point in time. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Asset symbol to look up (e.g. `SOL`, `BTC`). | |
| asset_id | No | Backend asset ID. Mutually exclusive with `symbol`: exactly one of the two is required, and naming both is a 400. | |
| timestamp | Yes | Unix timestamp in seconds. The response returns the most recent price at or before this moment. | |
| asset_class | No | Asset class to resolve the symbol in. Defaults to `spot` (one of: spot, perp) |