# Delx Shares From Budget

> Delx Shares From Budget is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Calculates how many equal shares can be purchased from a given integer budget at a specified unit price

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/shares-from-budget
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-shares-from-budget-effa35d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9eevM-H2VqHxUb7TYjrNf

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

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

## When to prefer this

Use this endpoint when an autonomous agent needs to quickly compute how many discrete units or shares can be purchased from a fixed integer budget at a known unit price, without performing the arithmetic internally. Especially useful when coordinating multi-step workflows where budget-to-quantity conversion is a bottleneck, or when the result needs to be logged with a standardized schema identifier for downstream processing.

## Known failure modes

- Missing or non-numeric price field returns validation error
- Missing or non-integer budget field returns validation error
- Price of zero causes division-by-zero error
- Negative budget or price values may return unexpected results
- Budget smaller than price returns zero shares

## How this service works

Shares purchasable for a budget at a given share price. Call when sizing prediction-market orders from cash budget. Returns shares and residual cash as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing the original price and budget inputs, a schema identifier ('delx/util-shares-from-budget/v1'), and the computed integer number of shares (floor division of budget by 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-shares-from-budget-effa35d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
