# Delx Commerce — Shares from Budget Calculator

> Delx Commerce — Shares from Budget 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 number of shares purchasable given a per-share price and a total budget

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/shares-from-budget?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-shares-from-budget-calculator-c559cc33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HVm2o_45k1WeCnmjnYs8c

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-shares-from-budget-calculator-c559cc33 -d '<json body>'
```

Example prompt: If each share costs $0.25 and I have a budget of $50, how many shares can I buy?

## When to prefer this

Use this endpoint when an agent needs a quick, pay-per-call, no-signup arithmetic computation to determine how many shares fit within a given budget. It is ideal for agent workflows that already operate in the Delx x402 micropayment ecosystem and need a verifiable, on-chain-paid utility calculation without maintaining their own math logic or standing API keys.

## Known failure modes

- Missing required fields (price or budget) result in an error response
- Price of zero causes division-by-zero error
- Negative price or budget values may return an error or unexpected result
- Budget smaller than price may return zero shares
- Non-numeric input types cause schema validation failure

## 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 input price per share, the input budget, a schema identifier ('delx/util-shares-from-budget/v1'), and the computed number of shares (integer) that can be purchased within the budget at the given price.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "price": 0.25,
  "budget": 50,
  "schema": "delx/util-shares-from-budget/v1",
  "shares": 200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-shares-from-budget-calculator-c559cc33/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)
