# AgentOracle Token Price History

> AgentOracle Token Price History is a paid API for AI agents from aiagentoracle.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Returns a time-series array of hourly or daily price points for a single token by ticker symbol, covering up to 365 days of history.

## Facts

- Endpoint: GET https://aiagentoracle.ai/api/v1/token/:symbol/history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentoracle-token-price-history-ac69c605
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S_OZWI8GUXXrAMEx3kBux

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 agentoracle-token-price-history-ac69c605
```

Example prompt: Pull the hourly price history for ETH over the last 7 days — give me 168 data points so I can chart the trend.

## When to prefer this

Use this endpoint when you need structured historical price time-series data for a single token — ideal for trading bots, charting agents, or backtesting engines that require sequential price snapshots at hourly or daily granularity. Prefer it over a spot-price endpoint when trend analysis, momentum calculation, or historical pattern recognition is needed rather than a single current price.

## Known failure modes

- Unknown or unsupported ticker symbol returns an error or empty points array
- limit exceeding 200 is rejected with a validation error
- Invalid interval value (not 'hour' or 'day') returns a bad request error
- Payment failure or insufficient USDC balance blocks the call under x402 protocol
- Network or upstream data provider outage may return a 503 or stale data

## How this service works

AgentOracle: price history time-series for a single token — array of `{ t, price }` points at hourly or daily intervals. Pass `interval=hour` (returns hourly points over last 1-14 days) or `interval=day` (daily points over last 30-365 days). `limit` defaults to 24, max 200. Ideal for trading bots, charting agents, and backtesting.

## Output

A JSON object containing the token symbol, interval type, asOf timestamp, and an array of price points — each with a UTC timestamp `t` and a `price` value in USD — ordered oldest to newest, up to 200 points depending on the limit parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Uppercase ticker symbol."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 24,
       "maximum": 200,
       "minimum": 1,
       "description": "Number of points to return (newest last)."
      },
      "interval": {
       "enum": [
        "hour",
        "day"
       ],
       "type": "string",
       "default": "hour",
       "description": "Time bucket. `hour` returns hourly points; `day` returns daily points."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "symbol",
      "interval",
      "points",
      "asOf"
     ],
     "properties": {
      "asOf": {
       "type": "string",
       "format": "date-time"
      },
      "points": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "t",
         "price"
        ],
        "properties": {
         "t": {
          "type": "string",
          "format": "date-time"
         },
         "price": {
          "type": "number",
          "description": "Spot price in USD at timestamp `t`."
         }
        }
       }
      },
      "symbol": {
       "type": "string"
      },
      "interval": {
       "enum": [
        "hour",
        "day"
       ],
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentoracle-token-price-history-ac69c605/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aiagentoracle.ai](https://www.zero.xyz/host/aiagentoracle.ai/llms.txt)
