# AmanChain Price History OHLC

> AmanChain Price History OHLC is a paid API for AI agents from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai, paid per call via x402, $0.009331/call, status unknown (last checked 2026-09-14).

Retrieves on-chain OHLC (Open/High/Low/Close) price history for tokens from live AmanChain consensus state, paid per call via x402 in USDC.

## Facts

- Endpoint: POST https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/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-7f827cb9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZyIupalGimzn3dLsY4FwT

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-7f827cb9 -d '<json body>'
```

Example prompt: Pull the OHLC price history for the AMAN token on AmanChain so I can see how its price has moved over the past 30 days.

## When to prefer this

Choose this endpoint when you need deterministic, node-verified OHLC price history sourced directly from AmanChain on-chain state without requiring an API key or account — ideal for agents that need trustless, auditable price candle data for DeFi tokens traded on AmanChain DEXes, paid per call via x402 USDC microtransaction.

## Known failure modes

- Invalid or unknown token identifier returns an error or empty dataset
- Insufficient USDC balance for x402 payment causes call to fail with payment error
- Malformed JSON body or missing serviceId field returns a validation error
- Node unavailability or consensus lag may delay or fail the response
- Requesting time ranges with no available data returns empty or partial results

## 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 a series of OHLC (Open, High, Low, Close) price data points for the requested token, sourced deterministically from live AmanChain consensus state, reflecting real block and pool data across the requested time range.

## 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
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-price-history-ohlc-7f827cb9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai](https://www.zero.xyz/host/preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/llms.txt)
