# Delx Commerce OHLC Aggregate

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

Computes OHLC (Open, High, Low, Close) statistics from an ordered array of price samples

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/ohlc-aggregate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-ohlc-aggregate-883dd45e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ttL0Gi9Kk2N5lJP6PEeq

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-commerce-ohlc-aggregate-883dd45e -d '<json body>'
```

Example prompt: Can you compute the OHLC values from this ordered list of prices: [10, 12, 9, 11]? I need the open, high, low, and close.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-use OHLC aggregation with no signup or account required, especially in agent workflows that already use USDC micropayments via the x402 protocol. Prefer it over maintaining your own OHLC computation logic when you want verifiable, stateless price summarization for any ordered price array without infrastructure overhead.

## Known failure modes

- Empty prices array returns undefined or error response
- Non-numeric values in the prices array cause computation failure
- Malformed request body (missing prices field) returns 400 error
- Payment failure via x402 protocol blocks the call
- Single-element array may return identical open/high/low/close values

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with open (first sample), high (maximum), low (minimum), close (last sample), and count (number of samples), plus a schema identifier string 'delx/util-ohlc-aggregate/v1'.

## 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-commerce-ohlc-aggregate-883dd45e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
