{"uid":"cap_-71B08ZbVKTZ2i2sdNrh-","slug":"47620-crypto-order-book-top-of-book-api-sol-54a1fdcf","name":"47620 Crypto Order Book Top-of-Book API (SOL)","description":"Top-of-book for a coin: best bid/ask, mid price, absolute + bps spread, bid/ask depth and book imbalance (>0 = more bids). Query: limit (5-100, default 20). Liquidity and slippage read for an agent about to trade.","url":"https://47620.xyz/x/crypto/orderbook/SOL?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"},"pathParams":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string","description":"Top-of-book for a coin: best bid/ask, mid price, absolute + bps spread, bid/ask depth and book imbalance (>0 = more bids). Query: limit (5-100, default 20). Liquidity and slippage read for an agent about to trade."}},"additionalProperties":false},"queryParams":{"type":"object","properties":{"fields":{"type":"string","description":"Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["ok","endpoint"],"properties":{"ok":{"type":"boolean"},"endpoint":{"type":"string"}},"additionalProperties":true}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E4m6n70X2WrH_EUrCkzbF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns best bid/ask prices, mid price, spread, bid/ask depth, and book imbalance for a given crypto symbol (e.g. SOL) to assess liquidity and slippage before trading.","exampleAgentPrompt":"Before I trade SOL, pull the top-of-book order book data — best bid, best ask, mid price, spread in bps, and book imbalance — using a limit of 50 levels so I can gauge liquidity and expected slippage.","exampleUseCases":[{"title":"Pre-trade slippage check for SOL","prompt":"I'm about to buy a large position in SOL — can you check the order book and tell me the current bid/ask spread in basis points and how much depth is on each side so I know how much slippage to expect?"},{"title":"Market sentiment via book imbalance","prompt":"Is there more buying pressure or selling pressure on SOL right now? Check the order book imbalance and tell me which side dominates."},{"title":"Mid price for SOL valuation","prompt":"What's the current mid price for SOL based on the live order book? I need it for a fair-value calculation."}],"resultDescription":"A JSON object containing: best bid price, best ask price, mid price, absolute spread, spread in basis points, bid-side depth, ask-side depth, and book imbalance score (positive = more bids than asks). Also includes an 'ok' status flag and the endpoint identifier.","failureModes":["Invalid or unsupported symbol returns an error or empty book","Limit parameter out of range (below 5 or above 100) may cause a validation error","Exchange or data feed outage may result in stale or unavailable order book data","Payment failure (x402) prevents response if USDC payment is not processed","Network timeout if the upstream order book source is unresponsive"],"whenToPreferThis":"Choose this endpoint when an AI agent needs real-time top-of-book liquidity data for SOL (or other supported crypto symbols) immediately before executing or recommending a trade. It is purpose-built for pre-trade analysis: slippage estimation, spread monitoring, and order flow imbalance detection. Prefer it over generic price feeds when bid/ask depth and book imbalance are needed, not just a last-traded price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:55.767Z","isFirstParty":false,"canonicalSlug":"47620-crypto-order-book-top-of-book-api-sol-54a1fdcf"}