Example inputPOST /api/v1/x402/pnl-abs
{
"entry": 100,
"exit": 110,
"size": 2
}
Portable intent card · commercial-operations
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.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/pnl-abs -m POST -H 'x-delx-source: intent-card-pnl-abs-api' --max-amount 0.001 -b '{"entry":100,"exit":110,"size":2}'
{
"entry": 100,
"exit": 110,
"size": 2
}
{
"intent": "Absolute PnL for an agent workflow",
"tool_name": "util_pnl_abs",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/pnl-abs-api.json"
}
Portable and inspectable