# Delx Commerce — Kelly Fraction Calculator

> Delx Commerce — Kelly Fraction 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-02).

Computes the Kelly Criterion fraction — the optimal bet size as a fraction of bankroll — given a win probability and net odds multiplier.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/kelly-fraction?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-kelly-fraction-calculator-3948e813
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fgT2mjfhKh50jvfMeTSy-

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-kelly-fraction-calculator-3948e813 -d '<json body>'
```

Example prompt: What's the Kelly fraction for a bet where I have a 55% chance of winning and the net odds are 1.2x?

## When to prefer this

Choose this endpoint when you need a fast, cheap, stateless computation of the Kelly Criterion fraction without setting up any account or subscription. Ideal for agents that need on-demand bet-sizing or position-sizing calculations embedded in a larger workflow, especially when paying per-result in USDC via x402 is preferable to a monthly API key. Prefer this over rolling your own formula when you want a verifiable, auditable result with a schema version string.

## Known failure modes

- Missing required fields (b or win_prob) result in a validation error
- win_prob values outside [0,1] may return an error or nonsensical result
- b values of 0 or negative are mathematically invalid and may cause an error
- Payment failure (insufficient USDC) returns HTTP 402 before computation occurs
- Network timeout on the x402 payment layer before response is returned

## 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 kelly fraction (a number between 0 and 1 representing the optimal wagering fraction of bankroll), the echoed win_prob and b inputs, and a schema identifier string ('delx/util-kelly-fraction/v1'). A kelly value of 0 or negative indicates the bet has no edge and should not be placed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "b": {
   "type": "number",
   "description": "Input field: b."
  },
  "win_prob": {
   "type": "number",
   "description": "Input field: win prob."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "b": 1.2,
  "kelly": 0.175,
  "schema": "delx/util-kelly-fraction/v1",
  "win_prob": 0.55
 }
}
```

## More

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