# Delx Commerce — Price Tick Normalizer

> Delx Commerce — Price Tick Normalizer 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).

Normalizes an array of raw price tick samples to a specified decimal precision, returning min, max, last, and count statistics.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/price-tick-normalize?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-price-tick-normalizer-bfd8ae17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nHY5fON6qxje6jD3crEB9

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-price-tick-normalizer-bfd8ae17 -d '<json body>'
```

Example prompt: I have a list of raw price ticks — [1.23456789, 1.23, 1.23460] — can you normalize them to 4 decimal places and tell me the min, max, last value, and how many samples there are?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call utility to normalize and summarize a caller-supplied array of price ticks without setting up a live market data feed. It is ideal for agents that aggregate prices from multiple sources and need consistent rounding and basic statistics (min/max/last/count) on-demand. Prefer it over a custom normalization step when you want verifiable, stateless computation with no signup or subscription.

## Known failure modes

- Missing or empty ticks array returns an error
- Invalid decimals value (outside 0–18 range) causes a validation error
- Non-numeric values in the ticks array may cause rejection or unexpected output
- Payment failure via x402 protocol results in 402 response before processing

## 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 containing the max, min, and last price from the normalized set, the count of ticks processed, the normalized sample array, the decimal precision used, a truncated flag indicating if the dataset was shortened, and a schema identifier (delx/util-price-tick-normalize/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ticks": {
   "type": "array",
   "description": "Positive price samples supplied by the caller (no live feed)."
  },
  "decimals": {
   "type": "number",
   "description": "Decimal places to round each tick to (0–18)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "max": 1.2346,
  "min": 1.23,
  "last": 1.23,
  "count": 2,
  "sample": [
   1.2346,
   1.23
  ],
  "schema": "delx/util-price-tick-normalize/v1",
  "decimals": 4,
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-price-tick-normalizer-bfd8ae17/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)
