Delx Commerce — ROI on Margin 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).
Computes return on investment (ROI) as a ratio and percentage given a profit/loss (PnL) and margin (capital deployed).
Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.
Returns a JSON object containing the input pnl and margin echoed back, the ROI as a decimal ratio (e.g. 0.1), and the ROI as a percentage (e.g. 10), along with a schema identifier 'delx/util-roi-on-margin/v1'.
POSThttps://commerce.delx.ai/api/v1/x402/roi-on-margin?utm_source=zero.xyzChoose this endpoint when you need a lightweight, pay-per-call, no-signup computation of ROI from PnL and margin, particularly inside automated agent workflows where you want verifiable, on-chain micropayment billing via x402 and USDC on Base or Solana rather than a subscription or API key.
| Field | Type | Description |
|---|---|---|
| pnl | integer | Input field: pnl. |
| margin | integer | Input field: margin. |
{
"type": "json",
"example": {
"pnl": 50,
"roi": 0.1,
"margin": 500,
"schema": "delx/util-roi-on-margin/v1",
"roi_pct": 10
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"