x402
utility

Lite FIFO-style realized PnL from sequential buy/sell fills. Call when attributing closed PnL from a short fill tape without a full OMS. Returns realized pnl summary from fills 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/realized-pnl-fifo

Request

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

Request body

entryinteger required

Input field: entry.

exitinteger required

Input field: exit.

close_sizeinteger required

Input field: close size.

Response

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

schemastring
realized_pnlnumber
close_sizenumber

Changes

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