{"uid":"cap_acRLivG_vQuE9Zfb8FHLC","slug":"deepstate-market-rolling-stats-3eace80d","name":"Deepstate Market Rolling Stats","description":"Deepstate, the on-chain order-book exchange on Robinhood Chain. Rolling 24h / 7d / 30d volume and price change for a market.","url":"https://api.onesource.io/deepstate/v1/stats/:book","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["book"],"properties":{"book":{"type":"string"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"book_id":{"type":"string"},"windows":{"type":"object","properties":{"7d":{"type":"object","properties":{"trades":{"type":"integer"},"low_raw":{"type":"string"},"high_raw":{"type":"string"},"vwap_raw":{"type":"string"},"change_pct":{"type":"number"},"volume_quote":{"type":"integer"},"volume_quote_raw":{"type":"string"}}},"24h":{"type":"object","properties":{"trades":{"type":"integer"},"low_raw":{"type":"string"},"high_raw":{"type":"string"},"vwap_raw":{"type":"string"},"change_pct":{"type":"number"},"volume_quote":{"type":"integer"},"volume_quote_raw":{"type":"string"}}},"30d":{"type":"object","properties":{"trades":{"type":"integer"},"low_raw":{"type":"string"},"high_raw":{"type":"string"},"vwap_raw":{"type":"string"},"change_pct":{"type":"number"},"volume_quote":{"type":"integer"},"volume_quote_raw":{"type":"string"}}}}},"finality":{"type":"string"},"book_slug":{"type":"string"},"base_token":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"integer"}}},"book_label":{"type":"string"},"last_price":{"type":"number"},"quote_token":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"integer"}}},"block_number":{"type":"integer"},"last_price_raw":{"type":"string"},"market_session":{"type":"string"}},"description":"Endpoint-specific response payload"}}}}},"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_DkS6ot_Lo1KxhUCyour5H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns rolling 24h, 7d, and 30d volume and price change statistics for a specified Deepstate order book market","exampleAgentPrompt":"Pull the rolling 24h, 7-day, and 30-day stats for the ETH-USDC book on Deepstate — I want to see VWAP, price change percent, volume, and trade count for each window.","exampleUseCases":[{"title":"Crypto trading dashboard data","prompt":"Give me the 24-hour and 7-day rolling stats for the BTC-USDC market on Deepstate — I need the VWAP, high, low, percent change, and total quote volume."},{"title":"Automated market health monitor","prompt":"Check the Deepstate order book for ETH-USDC and alert me if the 24-hour price change is more than 5% or if trade volume drops below a threshold — start by fetching the current rolling stats."},{"title":"DeFi research report on market activity","prompt":"I'm writing a report on decentralized market activity. Can you pull the 30-day volume, VWAP, and trade count for the USDC-DAI book on Deepstate so I can compare it to centralized exchange data?"}],"resultDescription":"A JSON object containing the book ID, slug, label, last price, last price raw, block number, market session, finality status, base and quote token metadata (symbol, address, decimals), and per-window (24h, 7d, 30d) statistics including trade count, low/high/VWAP (raw strings), percent price change, and quote volume.","failureModes":["Invalid or unknown book identifier returns an error or empty response","Book has no recent trades resulting in zero or null window data","Network/RPC latency causing stale block_number in response","Payment failure (402) if x402 payment header is not provided or insufficient","Rate limiting if called too frequently without valid payment"],"whenToPreferThis":"Use this endpoint when you need pre-aggregated rolling market statistics (24h/7d/30d) for a specific Deepstate on-chain order book without computing them manually from raw trade data. Prefer this over raw event log queries when you want VWAP, volume, and price change in a single call. Best suited for dashboards, alerts, or research tasks focused on Deepstate DEX markets specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:25.972Z","isFirstParty":false}