{"uid":"cap_akRRAqeqE2qYzZFGxjh85","slug":"tradesonar-dydx-markets-list-781806bf","name":"TradeSonar dYdX Markets List","description":"List markets with price and open interest","url":"https://api.tradesonar.io/v1/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"active_only":{"type":"boolean","default":true,"description":"Only return ACTIVE markets"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"markets":[{"status":"...","ticker":"...","oraclePrice":"...","perpetualId":0,"openInterestUsd":"..."}]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E7fK9A0aKdyqh-zmAveVF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a list of dYdX perpetual markets with status, oracle price, open interest, and freshness metadata (block height + replica lag).","exampleAgentPrompt":"Pull the current list of active dYdX perpetual markets from TradeSonar, including their oracle prices and open interest in USD.","exampleUseCases":[{"title":"Pre-trade market discovery for DeFi bot","prompt":"Before placing a trade, show me all active dYdX perpetual markets with their oracle prices and open interest so I can decide which one to enter."},{"title":"Crowding monitor for risk management","prompt":"Fetch the current dYdX markets list from TradeSonar so I can see which perpetuals have the highest open interest and flag any that look crowded."},{"title":"Market availability check for strategy router","prompt":"Check which dYdX perpetual markets are currently active — I need the tickers and statuses to route my strategy to live instruments only."}],"resultDescription":"A JSON object containing an array of dYdX perpetual market records, each with status (e.g. ACTIVE), ticker symbol, oracle price, perpetual ID, and open interest in USD. The response includes a data_as_of field stamped with block height and replica lag for freshness verification.","failureModes":["Invalid query parameter type for active_only returns a 400 validation error","Service unavailable or replica lag exceeds threshold may return stale data or 503","Payment not included or insufficient USDC balance results in x402 Payment Required response","Empty markets array returned if no markets match the active_only filter unexpectedly"],"whenToPreferThis":"Use this endpoint when you need a real-time enumeration of dYdX on-chain perpetual markets with oracle prices and open interest, especially when data freshness (block-stamped) is important. Prefer this over generic crypto market data APIs when the user specifically wants dYdX on-chain data with smart-money or crowding context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:32:55.646Z","isFirstParty":false,"canonicalSlug":"tradesonar-dydx-markets-list-781806bf"}