# Delx Commerce — Expected Log Growth Calculator

> Delx Commerce — Expected Log Growth 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 logarithmic portfolio growth (Kelly criterion-style) given a bet fraction, true probability, and market price.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/expected-log-growth?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-expected-log-growth-calculator-96d2d024
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PzO57OGRHcG0MScANeQTu

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-expected-log-growth-calculator-96d2d024 -d '<json body>'
```

Example prompt: Calculate the expected log growth if I bet a fraction of 0.1 of my bankroll, with a true probability of 0.6 and a market price of 0.55.

## When to prefer this

Choose this endpoint when you need a fast, pay-per-result computation of expected logarithmic growth (Kelly-style) for a binary bet or prediction market position, without requiring account setup. Prefer it over manual Kelly calculation when operating inside an agent pipeline that can pay micro-amounts in USDC and needs verifiable, structured output.

## Known failure modes

- Missing required fields (fraction, true_prob, or market_price) return a validation error
- Invalid probability values outside [0,1] may produce mathematically undefined results or errors
- Market price equal to 0 causes division-by-zero or undefined log output
- Payment failure via x402 returns 402 Payment Required before computation occurs

## 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 schema identifier 'delx/util-expected-log-growth/v1', the echoed input fraction, and the computed expected_log_growth as a floating-point number representing the expected logarithmic growth of the bankroll under the given parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fraction": {
   "type": "number",
   "description": "Input field: fraction."
  },
  "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": {
  "schema": "delx/util-expected-log-growth/v1",
  "fraction": 0.1,
  "expected_log_growth": 0.02704230164346613
 }
}
```

## More

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