{"uid":"cap_A6zTtXk8u4w8Y10eB5-8o","slug":"token-buy-to-sell-activity-ratio-weighted-result-mean-a815f46b","name":"Token Buy-to-Sell Activity Ratio — Weighted Result Mean","description":"Token buy-to-sell activity ratio — Weighted result mean: Weighted result mean for Token buy-to-sell activity ratio. 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-buy-sell-ratio-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["buy_count","sell_count"],"properties":{"buy_count":{"type":"number","default":120,"maximum":10000000000000000,"minimum":0},"sell_count":{"type":"number","default":80,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"buy_count":120,"sell_count":80},{"buy_count":132,"sell_count":88},{"buy_count":120,"sell_count":80},{"buy_count":132,"sell_count":88}],"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_GAtSk7WvZ_sXofW9scrA6","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 weighted mean of token buy-to-sell activity ratios across multiple supplied observations using caller-provided weights.","exampleAgentPrompt":"Calculate the weighted mean buy-to-sell ratio for these 4 token observations — buys [120, 132, 120, 132] with sells [80, 88, 80, 88] — using weights [1, 2, 1, 2].","exampleUseCases":[{"title":"Token momentum scoring across intervals","prompt":"I have buy and sell counts for a token across 5 time windows: buys [200, 180, 210, 195, 220] and sells [150, 160, 140, 170, 130]. Weight the recent windows more heavily with weights [1, 1, 2, 2, 3] and give me the weighted mean buy-to-sell ratio."},{"title":"Comparing weighted trading pressure across tokens","prompt":"For a token I'm tracking, compute the weighted mean buy-to-sell ratio from these observations: buys [500, 480, 510] sells [400, 420, 390] with equal weights [1, 1, 1] — I want to benchmark it against another token's ratio."},{"title":"Weighted buy-sell signal for alert system","prompt":"My monitoring system collected buy counts [90, 95, 100, 88] and sell counts [110, 105, 95, 120] over the last 4 intervals, with recency weights [1, 2, 3, 4]. What's the weighted mean buy-to-sell ratio so I can check if buying pressure is increasing?"}],"resultDescription":"Returns a single weighted mean value representing the aggregated buy-to-sell activity ratio across all supplied observation rows, computed deterministically using the provided weights. The result reflects the average balance of buying versus selling activity, with higher-weighted rows contributing more to the final score. This is a pure calculation result, not a live market scan or trade signal.","failureModes":["Missing required buy_count or sell_count fields in any row returns validation error","sell_count of exactly 0 (exclusiveMinimum: 0) causes rejection to avoid division by zero","Fewer than 2 rows supplied violates minItems constraint","More than 200 rows exceeds maxItems limit","Mismatched array lengths between rows and weights arrays may cause error","Payment not processed or insufficient USDC balance causes 402 rejection"],"whenToPreferThis":"Use this endpoint when you need a single scalar summary of token buy-to-sell pressure across multiple time periods or data slices, with the ability to assign differential importance to observations via weights. Prefer it over simple averaging when recency, volume, or reliability of individual observations vary and you want a deterministic, reproducible calculation rather than a live market scan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:38.935Z","isFirstParty":false,"canonicalSlug":"token-buy-to-sell-activity-ratio-weighted-result-mean-a815f46b"}