x402
utility

Absolute profit/loss from entry, exit, and position size. Call when marking closed trades or paper fills without a broker API. Returns absolute pnl in quote units 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/pnl-abs

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/pnl-abs
  • Auth: none declared

Request body

entryinteger required

Input field: entry.

exitinteger required

Input field: exit.

sizeinteger required

Input field: size.

Response

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

schemastring
entrynumber
exitnumber
sizenumber
pnlnumber

Changes

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