# Delx Commerce PnL Percentage Calculator

> Delx Commerce PnL Percentage 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 profit and loss percentage given an entry price and an exit price

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/pnl-pct?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-pnl-percentage-calculator-8bcc3158
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GAh9ylDSxKha-qkvti-X2

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-pnl-percentage-calculator-8bcc3158 -d '<json body>'
```

Example prompt: What's my PnL percentage if I entered a trade at 100 and exited at 110?

## When to prefer this

Choose this endpoint when you need a fast, verifiable, pay-per-use PnL percentage computation with no signup overhead — especially in agentic workflows where you want on-chain payment proof via x402 on Base or Solana and a guaranteed exact price of $0.001 USDC per call.

## Known failure modes

- Missing entry or exit field returns a 400 or validation error
- Non-integer values for entry or exit may cause rejection or unexpected behavior
- Division-by-zero scenario if entry is 0
- Payment failure via x402 if USDC balance is insufficient, resulting in a 402 response

## 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 entry and exit prices echoed back, the computed PnL percentage as a numeric value, and a schema identifier string (delx/util-pnl-pct/v1) confirming the calculation version.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "exit": {
   "type": "integer",
   "description": "Input field: exit."
  },
  "entry": {
   "type": "integer",
   "description": "Input field: entry."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "exit": 110,
  "entry": 100,
  "schema": "delx/util-pnl-pct/v1",
  "pnl_pct": 10
 }
}
```

## More

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