{"uid":"cap_kqkmPT8706UmUFKAliLv8","slug":"token-buy-to-sell-activity-ratio-rolling-mean-report-5ca3ec33","name":"Token Buy-to-Sell Activity Ratio — Rolling Mean Report","description":"Token buy-to-sell activity ratio — Rolling mean report: Rolling mean report 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 rolling mean report report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-buy-sell-ratio-rolling?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},"window":{"type":"integer","default":2,"maximum":200,"minimum":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_7hzXSWpKfNV_k8cc6N4bF","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 rolling mean of the buy-to-sell activity ratio across a supplied sequence of token trade observations using a configurable window size.","exampleAgentPrompt":"Can you compute a rolling mean of the buy-to-sell ratio for these token observations — buy counts [120, 132, 110, 145] and sell counts [80, 88, 75, 95] — using a window size of 2?","exampleUseCases":[{"title":"Trend smoothing for token sentiment","prompt":"I have 8 periods of token trade data with buy counts [200, 180, 220, 195, 210, 175, 230, 205] and sell counts [100, 120, 95, 110, 105, 130, 90, 115]. Can you calculate the rolling mean of the buy-to-sell ratio using a window of 3 so I can see the smoothed sentiment trend?"},{"title":"Momentum signal for algo trading strategy","prompt":"For my trading algo, I need a rolling mean buy-to-sell ratio report over a window of 4 for these observations: buy counts [500, 520, 480, 610, 590, 640] and sell counts [300, 280, 320, 290, 310, 270]. Run the rolling mean calculation for me."},{"title":"Backtesting buy pressure over historical data","prompt":"I'm backtesting a strategy and need to understand how buy pressure compared to sell pressure historically. Here are 6 periods of data — buys [1000, 950, 1100, 1050, 980, 1200] and sells [800, 820, 790, 810, 850, 780] — can you give me a rolling mean of the buy-to-sell ratio with a window size of 2?"}],"resultDescription":"Returns a rolling mean series of the buy-to-sell activity ratio (buy_count / sell_count) computed across the supplied observation rows using the specified window size. Each value in the output represents the mean ratio over the preceding N observations defined by the window parameter.","failureModes":["Fewer than 2 rows supplied — minimum row count not met","sell_count of 0 in any row — division by zero in ratio calculation","Window size exceeds number of supplied rows — insufficient data for rolling calculation","buy_count or sell_count values outside allowed range (0 to 10^16)","More than 200 rows supplied — exceeds maxItems limit","Payment failure — 0.01 USDC not available or x402 protocol error"],"whenToPreferThis":"Use this endpoint when you have a discrete series of token buy and sell count observations and need a smoothed, rolling mean of the buy-to-sell ratio — particularly useful for trend analysis, momentum signals, or reducing noise in short time-series data. Prefer this over raw ratio lookup when you need windowed averaging rather than instantaneous ratios, and when your data is pre-collected (not a live feed).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T00:53:34.786Z","isFirstParty":false,"canonicalSlug":"token-buy-to-sell-activity-ratio-rolling-mean-report-5ca3ec33"}