# AmanChain Price History OHLC

> AmanChain Price History OHLC is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.009331/call, status unknown (last checked 2026-09-14).

Returns OHLC (open/high/low/close) price history for crypto assets using live on-chain consensus data, paid per call via x402 in USDC.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-price-history
- Price: $0.009331/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-price-history-ohlc-2f3aa166
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v-UUpqIEZ0o4Z_inOQ62A

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

Example prompt: Can you pull the OHLC price history for ETH over the last 7 days so I can see how the highs and lows trended?

## When to prefer this

Choose this endpoint when you need verifiable, on-chain-sourced OHLC price history for crypto assets without requiring an API key or account setup, and when you're comfortable with pay-per-call micropayment billing in USDC via x402. It is especially useful for DeFi-native workflows where data provenance from real AMM pool state matters, or when integrating into autonomous agent pipelines that need deterministic historical price data.

## Known failure modes

- Invalid or unrecognized token/asset identifier returns an error or empty result
- Missing or malformed serviceId field causes request rejection
- Requested time range has no on-chain data available
- x402 payment failure or insufficient USDC balance blocks the call
- Malformed JSON request body returns a parse error
- Network or node unavailability results in a timeout

## How this service works

OHLCV candlestick price history for any trading pair — open, high, low, close and volume time series for charting, bots and backtesting. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-price-history","request":"<input>"}.

## Output

Returns structured OHLC candlestick price history data including open, high, low, and close prices across a time series for the requested asset, sourced deterministically from live on-chain consensus state and real AMM pool data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-price-history-ohlc-2f3aa166/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
