# AgentOracle Spot Price by Ticker

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

Returns the latest USD spot price for a single on-chain crypto token identified by its ticker symbol, as a minimal 3-field payload optimized for high-frequency polling.

## Facts

- Endpoint: GET https://aiagentoracle.ai/api/v1/price/ETH
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiagentoracle-ai-a67b1d47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t5TG7sqr4MSlyRbR_ckdv

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 aiagentoracle-ai-a67b1d47
```

Example prompt: What's the current USD spot price of ETH right now? Just give me the number and when it was last updated.

## When to prefer this

Prefer this endpoint when an agent needs only the current USD price of a single token and wants minimal payload overhead — ideal for high-frequency polling loops, trading bots, or any scenario where low latency and small response size matter more than full token metadata. Choose the full token-detail endpoint if you also need market cap, volume, or chain info.

## Known failure modes

- 404 returned for unknown or unsupported ticker symbols
- priceUsd may be null if ingestion data is temporarily unavailable
- Payment required (402) if x402 payment header is not included or insufficient
- Symbol case issues if client sends unexpected formatting (though API is case-insensitive)
- Stale asOf timestamp if ingestion pipeline is delayed

## How this service works

AgentOracle: latest spot price for a single token by ticker symbol — minimal payload (`{ symbol, priceUsd, asOf }`) optimised for high-frequency polling agents. Case-insensitive symbol; returns 404 for unknown symbols.

## Output

A minimal JSON object with three fields: `symbol` (the ticker as stored), `priceUsd` (current spot price as a number, or null if unavailable), and `asOf` (ISO 8601 datetime of the price snapshot). Returns HTTP 404 for unrecognized ticker symbols.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "symbol": "ETH"
  },
  "queryParams": {}
 }
}
```

## 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, e.g. ETH, BTC, SOL."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "symbol",
      "priceUsd",
      "asOf"
     ],
     "properties": {
      "asOf": {
       "type": "string",
       "format": "date-time"
      },
      "symbol": {
       "type": "string"
      },
      "priceUsd": {
       "type": [
        "number",
        "null"
       ],
       "description": "Spot price in USD."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiagentoracle-ai-a67b1d47/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)
