# AgniHub Trading Indicators - Candles

> AgniHub Trading Indicators - Candles is a paid API for AI agents from api.agnichub.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns OHLCV candlestick data for a given trading pair and timeframe via a paid per-call API on Base

## Facts

- Endpoint: POST https://api.agnichub.xyz/v1/custom/trading-indicators/candles
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-agnichub-xyz-0a179f83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dqp1g2ilw7xIxTKLNth4s

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 api-agnichub-xyz-0a179f83 -d '<json body>'
```

Example prompt: Fetch the last 200 hourly OHLCV candles for BTC/USDT so I can run a moving-average crossover strategy on them.

## When to prefer this

Choose this endpoint when you need per-call on-demand OHLCV candlestick data for cryptocurrency pairs paid via the x402 micropayment protocol on Base, especially in agent workflows that require programmatic chart data without a subscription commitment.

## Known failure modes

- Invalid or unsupported trading pair returns 400 or empty result
- Unsupported timeframe/interval returns error
- Payment failure or insufficient USDC balance causes 402 response
- Rate limiting or quota exceeded causes 429 error
- Exchange or data source unavailable causes 503 or timeout
- Missing required parameters (symbol, interval) causes 422 validation error

## How this service works

Pay with base

## Output

An array of candlestick objects each containing open, high, low, close, and volume values with timestamps for the requested symbol and interval, suitable for charting or technical indicator computation.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-agnichub-xyz-0a179f83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agnichub.xyz](https://www.zero.xyz/host/api.agnichub.xyz/llms.txt)
