x402
utility

Return on margin for a realized or mark PnL. Call when comparing leveraged trades by capital efficiency. Returns roi on posted margin 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.

post/api/v1/x402/roi-on-margin

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/roi-on-margin
  • Auth: none declared

Request body

pnlinteger required

Input field: pnl.

margininteger required

Input field: margin.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
pnlnumber
marginnumber
roinumber
roi_pctnumber

Changes

No recorded changes to this operation across all 1 revision of this API.