# Delx Commerce — Bankroll Fraction Stake Calculator

> Delx Commerce — Bankroll Fraction Stake 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).

Calculates the stake amount from a bankroll and a fractional bet size (e.g. Kelly criterion or fixed-fraction betting)

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/bankroll-fraction-stake?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-bankroll-fraction-stake-calculator-a802ded1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gv2sAqkwqj-Mm_9rnsKtK

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-bankroll-fraction-stake-calculator-a802ded1 -d '<json body>'
```

Example prompt: I have a bankroll of 2000 and want to bet 5% of it — what's my stake?

## When to prefer this

Use this endpoint when an AI agent needs a quick, verifiable, pay-per-use computation of a fractional stake from a bankroll without needing to implement the arithmetic itself — especially useful in agentic betting, trading, or risk management workflows where auditability and deterministic results matter.

## Known failure modes

- Missing required fields (bankroll or fraction) returns an error
- Non-integer bankroll value may cause a validation error
- Fraction outside expected range (e.g. >1 or negative) may yield unexpected results
- Payment failure via x402 if USDC balance is insufficient

## 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 stake amount (bankroll × fraction), along with the original bankroll and fraction inputs echoed back, and a schema identifier string (e.g. delx/util-bankroll-fraction-stake/v1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bankroll": {
   "type": "integer",
   "description": "Input field: bankroll."
  },
  "fraction": {
   "type": "number",
   "description": "Input field: fraction."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "stake": 50,
  "schema": "delx/util-bankroll-fraction-stake/v1",
  "bankroll": 1000,
  "fraction": 0.05
 }
}
```

## More

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