# Delx OHLC Aggregate

> Delx OHLC Aggregate is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Aggregates an ordered list of price samples into open, high, low, and close (OHLC) values

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/ohlc-aggregate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-ohlc-aggregate-213e0c00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OofSPfPo_1PvJYCm-j5Fi

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 delx-ohlc-aggregate-213e0c00 -d '<json body>'
```

Example prompt: Collapse this price list [12.5, 13.1, 11.8, 12.9, 14.0, 13.5] into OHLC values so I can use them as trading signal inputs.

## When to prefer this

Choose this endpoint when you have caller-supplied price data (ticks, returns, or sampled prices) and need a deterministic, stateless OHLC aggregation without accessing a live market data feed. Ideal for backtesting pipelines, signal preparation, and analytics dashboards where you supply your own price array and want a cheap, fast, first-party transform at $0.003 per call.

## Known failure modes

- Empty prices array returns an error or null OHLC values
- Non-numeric values in the prices array cause a validation failure
- Missing prices field in request body causes a 400 bad request
- Payment failure or insufficient USDC balance blocks execution via x402

## How this service works

Aggregate a bounded price list into open, high, low, and close — call when collapsing a price list into open/high/low/close. Use on caller-supplied ticks/returns when agents need signal prep without a licensed live market feed (ottoai-class demand, first-party transform). Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web sear…

## Output

A deterministic JSON object containing the computed open (first price), high (maximum price), low (minimum price), and close (last price) derived from the input price array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prices": {
   "type": "array",
   "description": "Ordered price samples for OHLC aggregation."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "low": 9,
  "high": 12,
  "open": 10,
  "close": 11,
  "count": 4,
  "schema": "delx/util-ohlc-aggregate/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-ohlc-aggregate-213e0c00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
