# Delx Profit If Yes

> Delx Profit If Yes is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Calculates profit from a winning prediction-market position given cost and shares held.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/profit-if-yes?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-profit-if-yes-36d5fb29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h6Jtz0aLrEKfMJGLC3C9I

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-profit-if-yes-36d5fb29 -d '<json body>'
```

Example prompt: If my prediction market position wins, how much profit will I make — I paid 50 for 200 shares?

## When to prefer this

Use this endpoint when an AI agent needs a quick, reliable calculation of profit from a winning yes-resolution in a prediction market, given the number of shares held and the cost paid. It is purpose-built for this specific financial computation and returns a structured result with a versioned schema, making it easy to consume programmatically. Prefer it over general-purpose math tools when operating in prediction-market workflows where structured, auditable results are needed.

## Known failure modes

- Missing required fields (cost or shares) returns a validation error
- Non-integer values for cost or shares may cause parsing errors
- Negative or zero values for cost or shares may produce unexpected or invalid profit results
- Network or service unavailability returns a 5xx error

## How this service works

Profit if YES resolves after cost basis on shares. Call when net PnL on a YES position at resolution. Returns net profit as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object with the input cost, input shares, the calculated profit amount, and a schema identifier (delx/util-profit-if-yes/v1). For example, cost=50, shares=200 yields profit=150.

## 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-profit-if-yes-36d5fb29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
