# Delx Commerce — Position Value Calculator

> Delx Commerce — Position Value 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).

Calculates the total value of a trading position given size and price per unit

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/position-value?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-position-value-calculator-aca530b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EcPbhPLFqvCsJeUhc7CGl

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-position-value-calculator-aca530b3 -d '<json body>'
```

Example prompt: What's the total value of a position with a size of 2.5 units at a price of 40?

## When to prefer this

Use this endpoint when you need a simple, verifiable, pay-per-call computation of position value (size × price) without signup or subscription overhead. Ideal for AI agents in automated trading pipelines that need a lightweight, trustless utility call with USDC micropayment settlement on Base or Solana.

## Known failure modes

- Missing required fields (size or price) results in a 4xx error
- Non-numeric or invalid type for size/price fields causes a validation error
- Payment not provided or rejected via x402 protocol results in 402 Payment Required
- Network timeout or service unavailability returns a 5xx error

## 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 input size, input price, computed value (size × price), and a schema identifier string ('delx/util-position-value/v1') for verifiable delivery tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "number",
   "description": "Input field: size."
  },
  "price": {
   "type": "integer",
   "description": "Input field: price."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 2.5,
  "price": 40,
  "value": 100,
  "schema": "delx/util-position-value/v1"
 }
}
```

## More

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