InputPOST /api/v1/x402/avg-entry
{
"fills": [
{
"price": 10,
"size": 1
},
{
"price": 12,
"size": 3
}
]
}
Commercial operations analytics · commercial-operations
Volume-weighted average entry across fill price/size pairs. Call when averaging multiple fills into one book cost basis. Returns average entry and total size 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/avg-entry -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"fills":[{"price":10,"size":1},{"price":12,"size":3}]}'
{
"fills": [
{
"price": 10,
"size": 1
},
{
"price": 12,
"size": 3
}
]
}
{
"schema": "delx/util-avg-entry/v1",
"avg_entry": 11.5,
"total_size": 4,
"fills": 2
}
Machine-readable evidence