InputPOST /api/v1/x402/ob-mid-from-levels
{
"bid": 100,
"ask": 100.2
}
Commercial operations analytics · commercial-operations
Compute mid price from bid/ask top-of-book levels. Call when you have L1 bid and ask and need a mid for marks. Returns mid, spread_abs, and spread_bps 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.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/ob-mid-from-levels -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"bid":100,"ask":100.2}'
{
"bid": 100,
"ask": 100.2
}
{
"schema": "delx/util-ob-mid-from-levels/v1",
"bid": 100,
"ask": 100.2,
"mid": 100.1,
"spread_abs": 0.20000000000000284,
"spread_bps": 19.980019980020266
}
Machine-readable evidence