{"uid":"cap_dVhdFltehLdL8lOBszYSr","slug":"api-dripmetrics-ai-eca05dc9","name":"DripMetrics Kyle's Lambda","description":"DripMetricsAI (api description at https://dripmetrics.ai/) provides on-demand market microstructure and risk metrics for agents and developers. Agents can pay per request via x402 and receive structured JSON metrics without subscriptions or API keys. Kyle's Lambda estimates price impact per unit of signed order flow for a crypto trading pair over a specified window. Discovery examples use the latest 30m window.","url":"https://api.dripmetrics.ai/metrics/kyle-lambda?utm_source=zero.xyz","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"],"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"],"type":"string"},"components":{"type":"object","required":["alpha","rSquared","intervals","meanSignedOrderFlow","lastPrice","dollarsPer1Bp","dollarsPer1Cent"],"properties":{"alpha":{"type":"number"},"rSquared":{"type":"number"},"intervals":{"type":"integer"},"lastPrice":{"type":"number"},"dollarsPer1Bp":{"type":"number"},"dollarsPer1Cent":{"type":"number"},"meanSignedOrderFlow":{"type":"number"}},"additionalProperties":false},"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":2.47191e-7,"metric":"kyle-lambda","window":"30m","coverage":{"partialData":false,"errorMessage":null,"completeFetch":true,"coverageRatio":1,"effectiveWindowMinutes":30,"requestedWindowMinutes":30},"exchange":"coinbase","components":{"alpha":0.000012,"rSquared":0.684211,"intervals":37,"lastPrice":103421.12,"dollarsPer1Bp":418387.7091,"dollarsPer1Cent":40454.5455,"meanSignedOrderFlow":1.4821},"computedAt":"2026-05-23T14:00:00.000Z","tradeCount":428,"lastTradeTime":"2026-05-23T13:59:58.000Z","firstTradeTime":"2026-05-23T13:00:02.000Z"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"pair":"BTCUSDT","window":"1h","exchange":"binance"}}},"response":{"pair":"BTCUSDT","value":0.000088589213,"metric":"kyle-lambda","window":"1h","exchange":"binance","components":{"alpha":0.000029743282,"rSquared":0.45173,"intervals":60,"lastPrice":77153.43,"dollarsPer1Cent":112.8806,"meanSignedOrderFlow":-0.13444},"computedAt":"2026-05-25T04:33:34.570Z","tradeCount":15996,"lastTradeTime":"2026-05-25T04:33:32.425Z","firstTradeTime":"2026-05-25T03:33:34.765Z"}},"exampleRequest":{"pair":"BTCUSDT","window":"1h","exchange":"binance"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_mLw4q_C6f6xleXmC9C2tv","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":"Calculates Kyle's Lambda price impact coefficient per unit of signed order flow for a crypto trading pair over a 30m or 1h window","exampleAgentPrompt":"What's the Kyle's Lambda price impact metric for BTCUSDT on Binance over the last 1 hour — how much does a unit of signed order flow move the price?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the computed Kyle's Lambda value (price impact per unit signed order flow), regression components including alpha, r-squared, number of intervals, mean signed order flow, last price, dollars per 1 cent move, plus trade count and the time window of trades used for the computation.","failureModes":["Unsupported exchange or pair combination returns an error","Insufficient trade data for the window may produce unreliable r-squared","Invalid pair symbol format causes a 400-level error","x402 payment failure or insufficient USDC balance blocks the request","Window enum values other than 30m or 1h are rejected"],"whenToPreferThis":"Use this endpoint when you need a rigorous, regression-based measure of market price impact and order flow sensitivity for crypto pairs on Binance or Coinbase. Prefer this over simple spread or volume metrics when building execution algorithms, market-making bots, or risk models that need to quantify how much signed order flow moves prices. It is pay-per-use via x402, requiring no subscription or API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T00:38:34.534Z","isFirstParty":false,"canonicalSlug":"api-dripmetrics-ai-eca05dc9"}