# Allium At-Timestamp Token Prices

> Allium At-Timestamp Token Prices is a paid API for AI agents from agents.allium.so, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-16).

Returns historical token prices at a specific past timestamp on-chain

## Facts

- Endpoint: POST https://agents.allium.so/api/v1/developer/prices/at-timestamp
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agents-allium-so-f2b2bd46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DE2vHn--B8Uf0NgWkE8Ak

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-allium-so-f2b2bd46 -d '<json body>'
```

Example prompt: What was the price of ETH on March 15, 2024 at 3:00 PM UTC? Use Allium's historical price lookup.

## When to prefer this

Use this endpoint when you need to know what a specific crypto token was worth at a precise past moment — for example, to calculate PnL on a past trade, reconcile historical portfolio values, or audit the value of tokens at the time of a transaction. Prefer this over a current-price endpoint when the target time is in the past and precision is required.

## Known failure modes

- Token not supported — returns error if the token is not in Allium's supported token list
- Timestamp out of range — returns error if the timestamp predates available price data
- Invalid token identifier — malformed or unrecognized token symbol/address returns an error
- Network unavailable — transient upstream data issues may cause 5xx errors
- Missing required parameters — omitting token or timestamp returns a 400-level validation error

## How this service works

API request: /api/v1/developer/prices/at-timestamp

## Output

Returns the price of the specified token at the requested timestamp, including the token symbol, price value, denomination (e.g. USD), and the resolved timestamp from Allium's onchain price data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "addresses": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "token_address",
     "chain"
    ],
    "properties": {
     "chain": {
      "type": "string",
      "description": "Blockchain network (e.g. ethereum, solana, base)"
     },
     "token_address": {
      "type": "string",
      "description": "Token contract address"
     }
    }
   }
  },
  "timestamp": {
   "type": "string",
   "format": "date-time",
   "description": "ISO 8601 timestamp"
  },
  "time_granularity": {
   "enum": [
    "15s",
    "1m",
    "5m",
    "1h",
    "1d"
   ],
   "type": "string",
   "description": "Time granularity for price buckets"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "mint": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "chain": "ethereum",
    "price": 2500.5,
    "input_timestamp": "2025-07-11T00:00:00Z",
    "price_timestamp": "2025-07-10T23:55:00Z"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-allium-so-f2b2bd46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.allium.so](https://www.zero.xyz/host/agents.allium.so/llms.txt)
