# Price History OHLC (AmanChain)

> Price History OHLC (AmanChain) is a paid API for AI agents from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai, paid per call via x402, $0.093311/call, status unknown (last checked 2026-09-15).

Fetches OHLC (open, high, low, close) price history for on-chain assets, executed deterministically via an AmanChain node against live consensus state, paid per call in USDC via x402.

## Facts

- Endpoint: POST https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-price-history
- Price: $0.093311/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/price-history-ohlc-amanchain-160d2e56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VQfYCxUNEAo-U3m3-Xat8

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 price-history-ohlc-amanchain-160d2e56 -d '<json body>'
```

Example prompt: Can you pull the OHLC price history for ETH over the past 30 days from the AmanChain on-chain price history service? I want the open, high, low, and close prices per candle.

## When to prefer this

Choose this endpoint when you need trustless, deterministically-executed on-chain OHLC price history without an API key or account, paid per call in USDC. Ideal for AI agents that require verifiable, consensus-backed price data rather than off-chain exchange feeds, and when you want per-call micropayment billing with no subscription overhead.

## Known failure modes

- Invalid or unsupported asset/token identifier returns an error or empty result
- Insufficient USDC balance or failed x402 payment results in request rejection
- Malformed JSON body or missing serviceId field causes a 400-level error
- Token or pool with insufficient on-chain liquidity history may return partial or no data
- Network or node unavailability may cause timeouts or 5xx errors

## How this service works

Price History OHLC: node-operated on-chain service Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-price-history","request":"<input>"}. No account, no API key.

## Output

Returns OHLC (open, high, low, close) candlestick price data for the requested on-chain asset over the specified time range, sourced deterministically from live blockchain consensus state via the AmanChain node.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "request": {
       "type": "string",
       "description": "service input (see body example)"
      },
      "serviceId": {
       "type": "string",
       "description": "the service id, \"aman-price-history\""
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/price-history-ohlc-amanchain-160d2e56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai](https://www.zero.xyz/host/preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/llms.txt)
