{"uid":"cap_h5eJ1bXh435AacNbA_BiP","slug":"dripmetrics-ai-average-trade-size-0f2aedae","name":"DripMetrics AI – Average Trade Size","description":"DripMetricsAI (https://dripmetrics.ai/) provides on-demand crypto market microstructure metrics, Hyperliquid candle metrics, Polymarket diagnostics, and on-chain DefiLlama metrics for agents, dashboards, and trading workflows.","url":"https://api.dripmetrics.ai/metrics/average-trade-size","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["pair","exchange","window"],"properties":{"pair":{"type":"string","description":"Exchange-native trading pair symbol such as BTCUSDT, ETH-USD, BTC, or xyz:TSLA."},"window":{"enum":["30m","1h","2h","3h"],"type":"string","description":"Lookback window. Hyperliquid supports 30m and 1h; 2h and 3h are currently BTCUSDT/BTC-USD only."},"exchange":{"enum":["binance","coinbase","hyperliquid"],"type":"string","description":"Exchange adapter to source recent trades from."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["metric","pair","exchange","window","value","computedAt","tradeCount","firstTradeTime","lastTradeTime","coverage"],"properties":{"pair":{"type":"string"},"value":{"type":"number"},"metric":{"type":"string"},"window":{"enum":["30m","1h","2h","3h"],"type":"string"},"coverage":{"type":"object","required":["requestedWindowMinutes","effectiveWindowMinutes","coverageRatio","partialData","completeFetch","errorMessage"],"properties":{"partialData":{"type":"boolean"},"errorMessage":{"type":["string","null"]},"completeFetch":{"type":"boolean"},"coverageRatio":{"type":"number","maximum":1,"minimum":0},"effectiveWindowMinutes":{"type":"number","minimum":0},"requestedWindowMinutes":{"type":"number","minimum":0}},"additionalProperties":false},"exchange":{"enum":["binance","coinbase","hyperliquid"],"type":"string"},"components":{"type":"object","additionalProperties":{"type":"number"}},"computedAt":{"type":"string","format":"date-time"},"tradeCount":{"type":"integer","minimum":1},"lastTradeTime":{"type":"string","format":"date-time"},"firstTradeTime":{"type":"string","format":"date-time"},"benchmarkCoverage":{"type":"object","required":["requestedWindowMinutes","effectiveWindowMinutes","coverageRatio","partialData","completeFetch","errorMessage"],"properties":{"partialData":{"type":"boolean"},"errorMessage":{"type":["string","null"]},"completeFetch":{"type":"boolean"},"coverageRatio":{"type":"number","maximum":1,"minimum":0},"effectiveWindowMinutes":{"type":"number","minimum":0},"requestedWindowMinutes":{"type":"number","minimum":0}},"additionalProperties":false}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"pair":"BTC-USD","value":0.601071,"metric":"average-trade-size","window":"30m","coverage":{"partialData":false,"errorMessage":null,"completeFetch":true,"coverageRatio":1,"effectiveWindowMinutes":30,"requestedWindowMinutes":30},"exchange":"coinbase","components":{},"computedAt":"2026-05-23T14:00:00.000Z","tradeCount":428,"lastTradeTime":"2026-05-23T13:59:58.000Z","firstTradeTime":"2026-05-23T13:00:02.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IJ7nFbh-ccirEcnCCe1I_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the average trade size (in base currency units) for a given trading pair on Binance or Coinbase over a rolling lookback window of 30m, 1h, 2h, or 3h.","exampleAgentPrompt":"What's the average trade size for BTC-USD on Coinbase over the last hour? Pull the DripMetrics microstructure metric so I can see how large trades have been running.","exampleUseCases":[{"title":"Algorithmic trading signal monitor","prompt":"Pull the average trade size for BTCUSDT on Binance over the last 30 minutes — I want to see if trade sizes are shrinking or growing before I adjust my algo's position sizing."},{"title":"Market regime detection dashboard","prompt":"Get me the average trade size for BTC-USD on Coinbase for a 2-hour window so I can compare it against the 30-minute figure and spot any shift in market participation."},{"title":"Pre-trade liquidity check","prompt":"Before I place a large order, can you check the average trade size for ETH-USD on Coinbase over the past hour so I know how my order size compares to typical market activity?"}],"resultDescription":"Returns a JSON object with the metric name ('average-trade-size'), the trading pair, exchange, lookback window, computed value (base currency units per trade), trade count, timestamps for the first and last trade observed, computation timestamp, and a coverage object indicating whether the full requested window was fetched, the effective window covered, and the coverage ratio (0–1).","failureModes":["Unsupported pair/exchange combination returns an error or partial data with coverageRatio < 1","Window lengths 2h and 3h only supported for BTCUSDT/BTC-USD — other pairs will error or return partial coverage","If exchange data feed is temporarily unavailable, partialData flag is true and effectiveWindowMinutes may be less than requested","Invalid enum values for exchange or window result in schema validation errors","Payment not received (x402) results in 402 response before any data is returned"],"whenToPreferThis":"Choose this endpoint when you need a real-time, rolling average trade size metric computed directly from raw exchange trade feeds for Binance or Coinbase. It is ideal for market microstructure analysis, sizing comparisons, or feeding trading algorithms that need fresh, precise aggregation over short windows (30m–3h). Prefer it over order-book snapshots or OHLCV candle data when you specifically need a trade-level size average rather than price-based metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:39:21.533Z","isFirstParty":false}