{"uid":"cap_HNGhgJBtNZ5lPI1KjYyxU","slug":"token-execution-fee-burden-weighted-mean-calculator-7a1f1513","name":"Token Execution Fee Burden — Weighted Mean Calculator","description":"Token execution fee relative to notional — Weighted result mean: Weighted result mean for Token execution fee relative to notional. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded weighted result mean report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-fee-burden-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["fee_usd","notional_usd"],"properties":{"fee_usd":{"type":"number","default":2,"maximum":10000000000000000,"minimum":0},"notional_usd":{"type":"number","default":1000,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"fee_usd":2,"notional_usd":1000},{"fee_usd":2.2,"notional_usd":1100},{"fee_usd":2,"notional_usd":1000},{"fee_usd":2.2,"notional_usd":1100}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i4XGiuXRn9xZGduwsdDqH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the notional-weighted mean of token execution fee ratios (fee/notional) across a set of trade observations using caller-supplied weights.","exampleAgentPrompt":"I have 4 token trades — fees of $2, $2.20, $2, $2.20 on notionals of $1000, $1100, $1000, $1100 — with weights 1, 2, 1, 2. Can you calculate the weighted mean execution fee burden relative to notional across all those trades?","exampleUseCases":[{"title":"DeFi portfolio fee efficiency review","prompt":"I executed 5 token swaps this week with fees of $1.50, $3.00, $0.80, $2.50, $4.20 on notionals of $800, $2000, $400, $1500, $3000. Weight them equally. What's the weighted mean fee-to-notional ratio across those trades?"},{"title":"Volume-weighted broker fee comparison","prompt":"I want to compare fee burden across 3 token execution venues — fees were $5, $8, $3 on notionals of $5000, $10000, $2500. Weight them by notional size: 2, 4, 1. Give me the weighted mean fee rate relative to notional."},{"title":"Algo trading strategy cost attribution","prompt":"My algo ran 6 token trades with fees $0.50, $1.20, $0.90, $2.10, $0.70, $1.80 against notionals of $500, $1200, $900, $2100, $700, $1800. Weight each trade equally — what's the weighted average fee burden as a fraction of notional?"}],"resultDescription":"Returns a single weighted mean value representing the average execution fee as a fraction of notional (fee_usd / notional_usd), aggregated across all provided trade observations using the supplied weights. The result is a deterministic scalar computed from caller-supplied data only — not a live market scan or trading recommendation.","failureModes":["Fewer than 2 rows provided — validation error","Weights array length does not match rows array length — schema mismatch error","notional_usd is zero or negative — violates exclusiveMinimum constraint","More than 200 rows or weights provided — exceeds maxItems limit","Non-numeric fee or notional values — type validation failure","Payment not fulfilled — x402 payment required response"],"whenToPreferThis":"Use this endpoint when you need a single deterministic weighted aggregate of fee-to-notional ratios across multiple token trade observations and you want to supply your own importance weights per observation. It is preferable over simple averages when trade sizes or importance differ significantly across the dataset. Best suited for post-trade analytics, cost attribution, and fee efficiency benchmarking rather than real-time or live market analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:44.323Z","isFirstParty":false,"canonicalSlug":"token-execution-fee-burden-weighted-mean-calculator-7a1f1513"}