# Delx Commerce — Margin Required Calculator

> Delx Commerce — Margin Required 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 required margin for a leveraged position given a notional value and leverage multiplier

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/margin-required?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-margin-required-calculator-8fbb4153
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GR_p7IwVPRNX4qKyMxDx3

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-margin-required-calculator-8fbb4153 -d '<json body>'
```

Example prompt: What's the required margin if I want to open a position with 5x leverage on a $5000 notional value?

## When to prefer this

Use this endpoint when you need a quick, pay-per-use margin requirement calculation without API key signup, especially within an automated trading or risk management agent pipeline. Prefer it for verifiable, micro-priced computations paid in USDC on Base or Solana via x402 protocol when building agent-native financial workflows.

## Known failure modes

- Missing leverage or notional fields results in a 400 Bad Request
- Non-integer values for leverage or notional may be rejected
- Zero or negative leverage/notional values may cause computation errors or rejection
- Payment failure via x402 protocol results in 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 computed margin amount, the leverage and notional values echoed back, and a schema identifier (e.g. 'delx/util-margin-required/v1'). For example: {margin: 1000, leverage: 5, notional: 5000, schema: 'delx/util-margin-required/v1'}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "leverage": {
   "type": "integer",
   "description": "Input field: leverage."
  },
  "notional": {
   "type": "integer",
   "description": "Input field: notional."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "margin": 1000,
  "schema": "delx/util-margin-required/v1",
  "leverage": 5,
  "notional": 5000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-margin-required-calculator-8fbb4153/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)
