{"uid":"cap_NrKgtUoNJAE3Qs411zreb","slug":"delx-commerce-vwap-simple-calculator-c0068dbf","name":"Delx Commerce VWAP Simple Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/vwap-simple?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"samples":{"type":"array","description":"Input field: samples."}}},"responseSchema":{"type":"json","example":{"n":2,"vwap":11,"schema":"delx/util-vwap-simple/v1","volume":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FFlJIRds7CjXfN1nxLX83","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a simple Volume-Weighted Average Price (VWAP) from an array of price-volume sample data","exampleAgentPrompt":"Calculate the VWAP for these trade samples: [{price: 10, volume: 3}, {price: 12, volume: 1}] — I need the volume-weighted average price and total volume.","exampleUseCases":[{"title":"Intraday trading price benchmark","prompt":"I have a list of executed trades from today with their prices and volumes — can you compute the VWAP so I can benchmark against whether I bought above or below the market average? Samples are [{price:100, volume:500},{price:102, volume:300},{price:99, volume:700}]."},{"title":"Crypto order fill quality check","prompt":"I filled a large crypto order across multiple tranches at different prices and sizes. Can you compute the VWAP for [{price:28500, volume:0.5},{price:28450, volume:1.2},{price:28600, volume:0.3}] so I can see my effective average fill price?"},{"title":"Basket pricing for portfolio rebalance","prompt":"We rebalanced a position across three executions today. Run the VWAP calculation on [{price:55.10, volume:200},{price:55.40, volume:150},{price:55.00, volume:350}] so I know our volume-weighted cost basis."}],"resultDescription":"Returns a JSON object containing the computed VWAP value, the total volume across all samples, the number of samples processed (n), and a schema identifier string (delx/util-vwap-simple/v1) for result verification.","failureModes":["Empty or missing samples array returns an error or zero result","Malformed sample objects without price or volume fields may cause computation errors","Non-numeric price or volume values will likely cause a processing failure","Payment failure via x402 protocol results in 402 response before computation begins"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call VWAP computation without signing up for a full market data subscription. Ideal for agents that occasionally need to aggregate trade execution data into a single weighted price metric. Best for simple use cases with a flat array of price-volume samples rather than streaming or time-bucketed VWAP calculations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.301Z","isFirstParty":false,"canonicalSlug":"delx-commerce-vwap-simple-calculator-c0068dbf"}