# DEX Pool OHLCV Candles

> DEX Pool OHLCV Candles is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns OHLCV (open/high/low/close/volume) candlestick data for a DEX liquidity pool at minute, hour, or day resolution for charting.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/analytics/ohlcv
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-pool-ohlcv-candles-feb39599
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q_dly_PWXSt--WQriOY4w

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 dex-pool-ohlcv-candles-feb39599 -d '<json body>'
```

Example prompt: Pull me the last 100 hourly OHLCV candles for the pool at 0x4e68Ccd3E89f51C3074ca5072bbAC773960dFa36 on Base so I can chart its price history.

## When to prefer this

Use this endpoint when you need structured OHLCV candlestick data for a specific DEX liquidity pool on Base or another supported chain, especially for charting, technical analysis, or building price dashboards. Prefer this over token-level price APIs when you have a specific pool/pair contract address and need granular time-series price data at minute, hour, or day resolution.

## Known failure modes

- Invalid or non-existent pool address returns an error or empty dataset
- Unsupported chain identifier causes a bad request response
- Timeframe value outside allowed enum (minute/hour/day) results in validation error
- Limit value exceeding service maximum may be capped or rejected
- Pool with insufficient on-chain activity may return fewer candles than requested
- Payment failure (insufficient USDC) blocks the request

## How this service works

OHLCV candles for a DEX pool (open/high/low/close/volume) at minute/hour/day resolution. Send { chain, pool, timeframe?, limit? }. Charting data for any pool.

## Output

Returns a time-series array of OHLCV candlestick objects for the specified DEX pool, each containing open, high, low, close prices and volume at the requested timeframe resolution (minute, hour, or day), up to the specified limit of candles.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "pool"
 ],
 "properties": {
  "pool": {
   "type": "string",
   "description": "0x pool/pair address"
  },
  "chain": {
   "type": "string",
   "description": "Chain, default base"
  },
  "limit": {
   "type": "number",
   "description": "Max candles"
  },
  "timeframe": {
   "type": "string",
   "description": "minute, hour (default), or day"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-pool-ohlcv-candles-feb39599/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
