{"uid":"cap_p8HojXF4eObpwYzqMdx1G","slug":"dydx-v4-chain-state-history-api-7ee70726","name":"dYdX v4 Chain-State History API","description":"dYdX v4 chain-state history, deterministic and block-stamped. Answers \"what was dYdX open interest and funding index for this market over time\". Hourly samples read from public blockchain state (never the geo-restricted indexer): open interest in units and USD (archived oracle price), cumulative funding_index with per-interval deltas, block height and available_at per row. Archive coverage is honestly disclosed via history_since. No LLM, no key.","url":"https://cryptopulse.theaslangroupllc.com/api/dydx-history","method":"GET","headers":{},"bodySchema":{"type":"object","required":["ticker"],"properties":{"days":{"type":"number","description":"window in days (default 7, max 62)"},"ticker":{"type":"string","description":"dYdX market ticker, e.g. BTC-USD, ETH-USD"}}},"responseSchema":{"type":"json","example":{"rows":24,"ticker":"BTC-USD","history":[{"ts":"2026-07-14T06:09:48Z","height":97652550,"oi_usd":17381503,"oi_units":277.9,"funding_index":2227060,"d_funding_index":-17}],"deterministic":true,"history_since":"2026-07-14T06:00:00Z"}},"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_BLmqeuSCw46SEFyE_CHhn","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":"Returns hourly-sampled historical open interest and cumulative funding index for dYdX v4 perpetual markets, read directly from public blockchain state with block height timestamps.","exampleAgentPrompt":"Pull me the hourly dYdX v4 chain-state history for ETH-USD — I want to see open interest in both units and USD plus the cumulative funding index with per-interval deltas going back as far as the archive covers.","exampleUseCases":null,"resultDescription":"An array of hourly rows for the requested dYdX v4 market, each containing: open interest in native units, open interest in USD (using archived oracle price), cumulative funding_index, per-interval funding index delta, block height, and available_at timestamp. Also includes a history_since field indicating the earliest available coverage date.","failureModes":["Unknown or unsupported market symbol returns an error or empty result","Requested time range predates history_since coverage, returning partial or no data","Blockchain node unavailability causes delayed or failed state reads","Rate limiting or x402 payment failure returns 402 with payment details","Invalid parameter format returns 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need deterministic, block-stamped historical open interest and funding index data sourced directly from dYdX v4 chain state — especially when geo-restricted indexer access is a problem, or when you need verifiable on-chain provenance. Ideal for backtesting funding strategies, auditing open interest trends, or building analytics that require tamper-evident blockchain-sourced data rather than off-chain indexer estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:43.432Z","isFirstParty":false}