{"uid":"cap_dF2BMvYke7-p5UA1NcZGx","slug":"dydx-chain-perpetual-markets-data-e7cb6b99","name":"dYdX Chain Perpetual Markets Data","description":"dYdX v4 (Cosmos app-chain) perpetual market for one ticker: status, oracle price, 24h price change, 24h USD volume and trade count, hourly funding rate, initial and maintenance margin, and open interest in base units and an approximate USD value at the oracle price. Indexer data only.","url":"https://api.chainmarket-api.workers.dev/api/crypto/dydx-chain-markets?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"},"queryParams":{"type":"object","required":[],"properties":{"ticker":{"type":"string","description":"dYdX market ticker, e.g. BTC-USD, ETH-USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"source":"https://indexer.dydx.trade/v4/perpetualMarkets","status":"ACTIVE","ticker":"BTC-USD","checkedAt":"2026-10-23T09:36:09.349Z","trades24h":1971,"oraclePrice":81530.06392,"volume24hUsd":5171010.6479,"openInterestBase":782.0931,"priceChange24hPct":-0.1927,"priceChange24hUsd":-157.44094,"initialMarginFraction":0.02,"openInterestUsdApprox":63764100,"nextFundingRatePerHour":0.00000732638888888889,"maintenanceMarginFraction":0.012}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8pqfOICBUfZOy3M4zHV1P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches real-time perpetual market data for a specific dYdX trading pair, including oracle price, 24h volume, open interest, funding rate, and margin requirements","exampleAgentPrompt":"What's the current oracle price, 24-hour volume, open interest, and funding rate for BTC-USD on dYdX right now?","exampleUseCases":[{"title":"Funding rate arbitrage monitoring","prompt":"Check the current hourly funding rate and open interest for ETH-USD on dYdX so I can decide whether to go long or short on the funding."},{"title":"Pre-trade margin requirement check","prompt":"Before I open a position on SOL-USD on dYdX, tell me what the initial and maintenance margin fractions are and what the oracle price is right now."},{"title":"24-hour market activity summary","prompt":"Give me the 24-hour price change percentage, total volume in USD, and number of trades for BTC-USD on dYdX so I can gauge today's market activity."}],"resultDescription":"Returns a JSON object with the market ticker, status (e.g. ACTIVE), oracle price, 24h trade count, 24h USD volume, open interest in base and approximate USD, 24h price change in both percentage and USD, next funding rate per hour, initial margin fraction, maintenance margin fraction, and the data source URL and timestamp.","failureModes":["Invalid or unsupported ticker returns an error or empty result","Network or upstream dYdX indexer outage causes failure (no charge on failed call)","Market not listed on dYdX perpetuals returns null or error","Malformed query parameter results in 400-level response"],"whenToPreferThis":"Use this endpoint when you need real-time perpetual market data specifically from the dYdX decentralized exchange, including funding rates, oracle prices, and margin parameters that are unique to dYdX's on-chain protocol. Prefer this over centralized exchange APIs when you need decentralized, on-chain data. It requires no API key or signup and charges only on success via x402 micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:46:17.171Z","isFirstParty":false,"canonicalSlug":"dydx-chain-perpetual-markets-data-e7cb6b99"}