Example inputPOST /api/v1/x402/peg-tw-deviation
{
"prices": [
0.99,
0.995,
1
],
"weights": [
1,
1,
1
],
"peg": 1
}
Portable intent card · commercial-operations
Time-weighted absolute peg deviation over samples. Call when summarizing depeg severity over a sample window. Returns tw_abs_deviation 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/peg-tw-deviation -m POST -H 'x-delx-source: intent-card-peg-tw-deviation-api' --max-amount 0.001 -b '{"prices":[0.99,0.995,1],"weights":[1,1,1],"peg":1}'
{
"prices": [
0.99,
0.995,
1
],
"weights": [
1,
1,
1
],
"peg": 1
}
{
"intent": "Stablecoin TW Deviation for an agent workflow",
"tool_name": "util_peg_tw_deviation",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/peg-tw-deviation-api.json"
}
Portable and inspectable