{"uid":"cap_IvVhXX6UwwOLjJqFsfCtv","slug":"tokenguard-order-book-api-7601d5ed","name":"TokenGuard Order Book API","description":"orderbook data for AI agents.","url":"https://eltociear-tokenguard.hf.space/orderbook","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_f52T88JaAuP9Z6MbNoGpn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves order book data (bids/asks) for a specified cryptocurrency trading pair or token via the TokenGuard DeFi analytics platform","exampleAgentPrompt":"Pull the current order book for WETH/USDC so I can see the bid-ask spread and depth — I want to know where the major buy and sell walls are sitting right now.","exampleUseCases":[{"title":"Liquidity depth check before trade","prompt":"Before I swap a large amount of ETH to USDC, show me the current order book depth so I can gauge slippage and see where the major bid and ask walls are."},{"title":"DeFi arbitrage opportunity scan","prompt":"Fetch the order book for a DeFi token pair I'm watching — I want to see if there's a meaningful spread between the best bid and ask that might signal an arbitrage opportunity."},{"title":"Market maker spread monitoring","prompt":"I'm running a market-making strategy — pull the current order book for the LINK/USDC pair so I can see the existing bid-ask spread and decide where to place my quotes."}],"resultDescription":"A JSON response containing the order book for the requested token or trading pair, including arrays of bid and ask entries with price and quantity levels, reflecting current on-chain or aggregated market depth.","failureModes":["Invalid or unsupported token/trading pair returns an error or empty result","Micropayment failure via x402 protocol prevents request from processing","Hugging Face Space may be cold-starting, causing latency or timeout","Sparse on-chain liquidity may return an order book with very few entries","Missing required parameters in POST body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need real-time or near-real-time order book depth data for crypto or DeFi tokens, especially ERC-20 pairs, and you are operating in an agent context where x402 micropayments on Base are acceptable. Prefer it over generic CEX APIs when you need on-chain or DeFi-native order book data at low per-call cost ($0.01 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:18.159Z","isFirstParty":false}