# Delx Commerce — Profit If Yes Calculator

> Delx Commerce — Profit If Yes 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 profit given a cost and number of shares, returning net profit if a yes outcome occurs

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/profit-if-yes?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-profit-if-yes-calculator-4fa14515
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2NZZ5c5b5ZEnQtsLcauAN

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-profit-if-yes-calculator-4fa14515 -d '<json body>'
```

Example prompt: If I bought 200 shares for a total cost of $50, what's my profit if the outcome resolves yes?

## When to prefer this

Use this endpoint when you need a quick, on-demand, pay-per-result computation of profit for a yes-resolution outcome in a prediction market or binary event context, especially when operating in an agent pipeline that supports x402 micropayments on Base or Solana with no signup required.

## Known failure modes

- Missing required fields (cost or shares) returns an error
- Non-integer values for cost or shares may cause validation failure
- Network or payment failure over x402 protocol prevents call completion
- Negative or zero values for cost/shares may produce unexpected results

## 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 original cost, the number of shares, and the computed profit (as an integer) if the yes outcome is realized, along with a schema identifier (delx/util-profit-if-yes/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cost": {
   "type": "integer",
   "description": "Input field: cost."
  },
  "shares": {
   "type": "integer",
   "description": "Input field: shares."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cost": 50,
  "profit": 150,
  "schema": "delx/util-profit-if-yes/v1",
  "shares": 200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-profit-if-yes-calculator-4fa14515/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)
