x402
utility

Profit if YES resolves after cost basis on shares. Call when net PnL on a YES position at resolution. Returns net profit 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/profit-if-yes

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/profit-if-yes
  • Auth: none declared

Request body

sharesinteger required

Input field: shares.

costinteger required

Input field: cost.

Response

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

schemastring
sharesnumber
costnumber
profitnumber

Changes

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