# Delx Commerce VWAP Simple Calculator

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

Computes a simple Volume-Weighted Average Price (VWAP) from an array of price-volume sample data

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/vwap-simple?utm_source=zero.xyz
- Price: $0.001/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-vwap-simple-calculator-c0068dbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NrKgtUoNJAE3Qs411zreb

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-vwap-simple-calculator-c0068dbf -d '<json body>'
```

Example prompt: Calculate the VWAP for these trade samples: [{price: 10, volume: 3}, {price: 12, volume: 1}] — I need the volume-weighted average price and total volume.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call VWAP computation without signing up for a full market data subscription. Ideal for agents that occasionally need to aggregate trade execution data into a single weighted price metric. Best for simple use cases with a flat array of price-volume samples rather than streaming or time-bucketed VWAP calculations.

## Known failure modes

- Empty or missing samples array returns an error or zero result
- Malformed sample objects without price or volume fields may cause computation errors
- Non-numeric price or volume values will likely cause a processing failure
- Payment failure via x402 protocol results in 402 response before computation begins

## 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 computed VWAP value, the total volume across all samples, the number of samples processed (n), and a schema identifier string (delx/util-vwap-simple/v1) for result verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "samples": {
   "type": "array",
   "description": "Input field: samples."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 2,
  "vwap": 11,
  "schema": "delx/util-vwap-simple/v1",
  "volume": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-vwap-simple-calculator-c0068dbf/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)
