# Delx Commerce — Binary Expected Value Calculator

> Delx Commerce — Binary Expected 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).

Computes the expected value (EV) and number of shares for a binary prediction market position given stake, true probability, and market price

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/binary-ev?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-binary-expected-value-calculator-c683a872
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FlG1Fcta00YIOjOBoOzLM

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-binary-expected-value-calculator-c683a872 -d '<json body>'
```

Example prompt: I think the true probability of this event is 60%, the market is priced at 48%, and I want to stake 100 USDC — what's my expected value and how many shares would I get?

## When to prefer this

Choose this endpoint when an AI agent needs a fast, cheap, single-call computation of binary prediction market EV with verifiable on-chain micropayment settlement. Ideal for agents that are screening multiple prediction market positions programmatically and need a deterministic, auditable calculation rather than an LLM estimate. The $0.001 USDC per-call price makes it economical for high-frequency screening workflows.

## Known failure modes

- Missing required fields (stake, true_prob, market_price) result in a 400-level error
- market_price of 0 causes division-by-zero or undefined share calculation
- true_prob outside [0,1] range may produce nonsensical EV values
- Payment failure via x402 (insufficient USDC balance) prevents the call from completing
- Network timeout or service unavailability returns no result

## 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 expected value (ev), the number of shares the stake purchases at the given market price (shares), the original stake echoed back, and a schema identifier (delx/util-binary-ev/v1) for verifiable result attribution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "stake": {
   "type": "integer",
   "description": "Input field: stake."
  },
  "true_prob": {
   "type": "number",
   "description": "Input field: true prob."
  },
  "market_price": {
   "type": "number",
   "description": "Input field: market price."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ev": 14.58333333333334,
  "stake": 100,
  "schema": "delx/util-binary-ev/v1",
  "shares": 208.3333333333333
 }
}
```

## More

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