{"uid":"cap_cnLwabisJ8PRqvk_ITM_y","slug":"mycelia-signal-btc-usd-order-book-imbalance-oracle-293e92fb","name":"MyceLia Signal BTC/USD Order Book Imbalance Oracle","description":"BTC order book imbalance — depth, spread, sweep cost across 5 exchanges with collapse detection — Ed25519 signed attestation","url":"https://api.myceliasignal.com/oracle/orderbook/btc/usd","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"pair":"btc/usd","digest":"97a093b74871b03d0f61bb0636fc822dc6ad22bad74a3a35e4398e510a7a2b26","pubkey":"7ab07fbe7d08cd16823e5eb0db0e21f3f38e9366d5fd00d14e95df0fb9b51a1a","signed":true,"preview":false,"canonical":"v1|ORDERBOOK|BTCUSD|min_spread|0.0156|max_spread|0.1561|mean_imbalance|0.4731|exchanges|5|1781764994|884890","exchanges":[{"mid":64048.35,"exchange":"binance","ask_depth":3.194,"bid_depth":6.025,"spread_bps":0.0156,"depth_ratio":1.8863,"sweep_ask_5":203161.53,"sweep_bid_5":372312.6,"ask_notional":204570.62,"bid_notional":385890.71,"collapse_pct":0,"tob_imbalance":0.2602,"depth_collapse":false,"depth_imbalance":0.3071},{"mid":64044.25,"exchange":"bybit","ask_depth":0.211,"bid_depth":3.575,"spread_bps":0.0156,"depth_ratio":16.9431,"sweep_ask_5":8133.68,"sweep_bid_5":208015.2,"ask_notional":13513.55,"bid_notional":228957.33,"collapse_pct":63,"tob_imbalance":0.9424,"depth_collapse":true,"depth_imbalance":0.8885},{"mid":64055.75,"exchange":"okx","ask_depth":278.44,"bid_depth":1010.78,"spread_bps":0.0156,"depth_ratio":3.6302,"sweep_ask_5":17824808.1,"sweep_bid_5":64677675.93,"ask_notional":17835697.88,"bid_notional":64746214.12,"collapse_pct":0,"tob_imbalance":0.5546,"depth_collapse":false,"depth_imbalance":0.568},{"mid":64039.75,"exchange":"deribit","ask_depth":262920,"bid_depth":323920,"spread_bps":0.0781,"depth_ratio":1.232,"sweep_ask_5":7663059540,"sweep_bid_5":13204901675,"ask_notional":16838600235,"bid_notional":20742185195,"collapse_pct":0,"tob_imbalance":0.3385,"depth_collapse":false,"depth_imbalance":0.1039},{"mid":64049.5,"exchange":"hyperliquid","ask_depth":67.9329,"bid_depth":202.8508,"spread_bps":0.1561,"depth_ratio":2.986,"sweep_ask_5":116556.49,"sweep_bid_5":7805671.09,"ask_notional":4352062.88,"bid_notional":12991203.52,"collapse_pct":0,"tob_imbalance":1,"depth_collapse":false,"depth_imbalance":0.4982}],"signature":"b0844089e16d58d5595d398a84c2d8fc456d285a0677e67ec500d103d2b2848747fa2c02d387fc6ff8ce44f9a0fbc5c6c2a180d89d7549b4b0095e6e3f130a0b","timestamp":"2026-06-18T06:43:05.097597+00:00","cross_exchange":{"max_spread":0.1561,"min_spread":0.0156,"any_collapse":true,"spread_range":0.1405,"mean_depth_imbalance":0.4731}}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kR35w6yaydali5vTbmXrj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns BTC/USD order book imbalance metrics — depth, spread, and sweep cost — aggregated across 5 exchanges with collapse detection, delivered as a cryptographically signed Ed25519 attestation","exampleAgentPrompt":"Can you pull the current BTC/USD order book imbalance — I want to see the depth, spread, and sweep cost aggregated across all 5 exchanges, and flag if there's any collapse signal detected?","exampleUseCases":null,"resultDescription":"A cryptographically signed Ed25519 attestation containing BTC/USD order book metrics: bid and ask depth levels, bid-ask spread, sweep cost (cost to move the market by a given amount), order book imbalance ratio, collapse detection signal, and the aggregated data sourced from 5 exchanges. The signature allows downstream verification of data integrity.","failureModes":["Payment not received or x402 payment header missing — returns 402 Payment Required","Exchange data feed unavailable — partial or degraded data with fewer than 5 exchanges contributing","Signature verification failure — Ed25519 attestation cannot be validated client-side","Rate limit exceeded — too many calls within a time window","Service downtime — 5xx error if backend oracle is offline"],"whenToPreferThis":"Choose this endpoint when you need cryptographically verifiable BTC/USD order book microstructure data — particularly imbalance, depth, sweep cost, and collapse detection — aggregated across 5 exchanges in a single signed response. Ideal for trading agents, risk systems, or smart contracts that require tamper-evident market data attestations rather than raw, unsigned exchange feeds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:46:12.936Z","isFirstParty":false}