# Delx Commerce Market ROI Calculator

> Delx Commerce Market ROI 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 return-on-investment (ROI) for a prediction market position given an entry price and resolution outcome

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/market-roi?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-market-roi-calculator-79b097c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gC6TqbNFIAJRW0X1I_5zj

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-market-roi-calculator-79b097c4 -d '<json body>'
```

Example prompt: I entered a prediction market at 0.4 and it resolved yes — what's my ROI?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001 USDC), verifiable computation of prediction market ROI for a binary (yes/no) resolved market, especially in an agent workflow where no signup or API key is required and payment is handled via x402 on Base or Solana.

## Known failure modes

- Missing required fields (entry or resolved_yes) returns a validation error
- Entry price of 0 or negative may cause division errors or undefined ROI
- resolved_yes set to false may return ROI of 0 or negative depending on market mechanics
- Network or payment failure via x402 protocol prevents call from completing

## 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 with the computed ROI multiplier (e.g. 1.5 meaning 150% return), the echoed entry price, the resolution status (yes/no), and a schema identifier string (delx/util-market-roi/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "entry": {
   "type": "number",
   "description": "Input field: entry."
  },
  "resolved_yes": {
   "type": "boolean",
   "description": "Input field: resolved yes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "roi": 1.5,
  "entry": 0.4,
  "schema": "delx/util-market-roi/v1",
  "resolved_yes": true
 }
}
```

## More

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