{"uid":"cap_QC9VUxIpeHWF-D-lt9gMq","slug":"token-observed-price-change-weighted-result-mean-e8618b79","name":"Token Observed Price Change — Weighted Result Mean","description":"Token observed price change — Weighted result mean: Weighted result mean for Token observed price change. 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-price-change-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["current_price","previous_price"],"properties":{"current_price":{"type":"number","default":1.2,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"previous_price":{"type":"number","default":1,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"current_price":1.2,"previous_price":1},{"current_price":1.32,"previous_price":1.1},{"current_price":1.2,"previous_price":1},{"current_price":1.32,"previous_price":1.1}],"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_MQ1ozyq-Vmt3WxOBjXBjW","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 a weighted mean of observed price-change ratios across multiple token price observations.","exampleAgentPrompt":"Calculate the weighted mean price change for these 4 token observations: prices went from 1.00 to 1.20, 1.10 to 1.32, 1.00 to 1.20, and 1.10 to 1.32, using weights of 1, 2, 1, and 2 respectively.","exampleUseCases":[{"title":"Portfolio token performance summary","prompt":"I have 5 token trades this week — starting prices were 0.50, 1.00, 2.50, 0.80, and 3.00, ending at 0.55, 1.15, 2.40, 0.95, and 3.30. Weight them by trade volume: 10, 50, 5, 20, 15. What's the weighted mean price change across all of them?"},{"title":"Index rebalancing price drift check","prompt":"I need to summarize price changes for 3 index constituents: token A went from 100 to 108, token B from 50 to 47, token C from 200 to 214. Weight them by market cap: 3, 1, 2. Give me the weighted mean observed price change."},{"title":"Backtesting strategy performance aggregation","prompt":"For a backtest I ran over 6 periods, the token started at these prices: 1, 1.05, 1.1, 0.98, 1.02, 1.08 and ended at 1.05, 1.1, 1.08, 1.05, 1.08, 1.15. Weight each period equally at 1. Can you compute the weighted mean price change across all those observations?"}],"resultDescription":"Returns a bounded weighted result mean report summarizing the aggregated price change across all supplied token observations, incorporating the specified weights. The output is a deterministic calculation — not a live market scan or trade recommendation.","failureModes":["Fewer than 2 rows supplied — minimum 2 observations required","More than 200 rows or weights provided — maxItems limit exceeded","current_price or previous_price is zero or negative — exclusiveMinimum constraint violated","Weights array length does not match rows array length","Non-numeric values in prices or weights fields","Payment failure — 0.01 USDC x402 charge not processed"],"whenToPreferThis":"Choose this endpoint when you have a fixed batch of token price observations (current and previous prices) and need a single weighted-average price change metric. Ideal for portfolio aggregation, index summarization, or backtesting rollups where you supply your own data and want a deterministic, reproducible result rather than a live market feed or raw price lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:20.121Z","isFirstParty":false,"canonicalSlug":"token-observed-price-change-weighted-result-mean-e8618b79"}