{"uid":"cap_uFKykRAjiQqv2gQQmf-ty","slug":"dripmetrics-ai-btc-usdt-order-book-spread-3bcae985","name":"DripMetrics AI BTC/USDT Order Book Spread","description":"DripMetricsAI (https://dripmetrics.ai/) provides on-demand order-book microstructure metrics computed fresh per request from Binance's public depth snapshot. Agents can pay per request via x402 and receive structured JSON metrics without subscriptions or API keys. Spread measures the current best-bid/best-ask gap, in basis points of mid price.","url":"https://api.dripmetrics.ai/orderbook/spread","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":[],"properties":{"pair":{"enum":["BTCUSDT","ETHUSDT","SOLUSDT"],"type":"string","default":"BTCUSDT","description":"Binance-native pair. BTCUSDT, ETHUSDT, and SOLUSDT are supported."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["metric","pair","value","components","sampleSize","source","computedAt"],"properties":{"pair":{"enum":["BTCUSDT","ETHUSDT","SOLUSDT"],"type":"string"},"value":{"type":["number","null"]},"metric":{"type":"string"},"source":{"type":"object"},"components":{"type":"object"},"computedAt":{"type":"string","format":"date-time"},"sampleSize":{"type":"object"}},"additionalProperties":false}}}}},"responseSchema":null,"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_B5T42ansj29OslljSZBE4","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 current bid-ask spread for BTCUSDT in basis points of mid price, computed fresh from Binance's public order book depth snapshot.","exampleAgentPrompt":"What's the current bid-ask spread for BTCUSDT right now, in basis points — pull it fresh from the order book?","exampleUseCases":[{"title":"Real-time trade execution timing","prompt":"Before I place this BTC buy order, check what the current bid-ask spread is on BTCUSDT in basis points so I can judge whether the market is tight enough to enter now."},{"title":"Automated spread monitoring alert","prompt":"Every 5 minutes, check the BTCUSDT order book spread and alert me if it widens beyond 5 basis points — I want to know when liquidity conditions are deteriorating."},{"title":"Market microstructure research snapshot","prompt":"I'm benchmarking BTCUSDT market quality — can you pull the current spread in basis points along with the components and sample size so I can log it for my research?"}],"resultDescription":"A structured JSON object containing: the metric name ('spread'), the trading pair ('BTCUSDT'), the spread value in basis points of mid price, component details (best bid, best ask, mid price), sample size metadata, the data source (Binance depth snapshot), and a UTC timestamp of when the metric was computed.","failureModes":["Binance public depth snapshot unavailable or rate-limited — metric may return null value","Unsupported pair requested (only BTCUSDT is currently enabled) — returns error or empty result","Payment failure via x402 — request not processed if USDC payment is not confirmed","Stale or insufficient order book depth — sampleSize may be low, reducing metric reliability","Network timeout between DripMetrics and Binance — computed metric may be delayed or unavailable"],"whenToPreferThis":"Choose this endpoint when you need a fresh, on-demand bid-ask spread metric for BTCUSDT computed directly from Binance's live order book, without managing API keys, subscriptions, or WebSocket connections. It is ideal for agents that need occasional real-time market microstructure snapshots and can pay per request in USDC via x402. Prefer alternatives if you need sub-millisecond latency, streaming data, or support for pairs beyond BTCUSDT.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:19.046Z","isFirstParty":false}