x402
utility

Unrealized PnL versus mark from entry and size. Call when open position dashboards and liquidation preflight. Returns unrealized pnl at mark 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/unrealized-pnl

Request

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

Request body

entryinteger required

Input field: entry.

markinteger required

Input field: mark.

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
marknumber
sizenumber
unrealized_pnlnumber

Changes

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