# TradeSonar Market Detail

> TradeSonar Market Detail is a paid API for AI agents from api.tradesonar.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Returns current price, open interest, and funding rate term structure for a specific dYdX perpetual market by ticker

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/markets/:ticker?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tradesonar-market-detail-bdf753e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cR4_afjRDk365_ixfWLxk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tradesonar-market-detail-bdf753e8
```

Example prompt: Pull up the current price, open interest, and funding rate term structure for ETH-USD on TradeSonar right now.

## When to prefer this

Use this endpoint when you need real-time price, open interest, and funding rate term structure for a specific dYdX perpetual market in a single call. Prefer this over candlestick or trade history endpoints when you need a current market snapshot rather than historical series data. Best for pre-trade analysis, funding rate monitoring, or crowding signal assessment on dYdX.

## Known failure modes

- Invalid or unsupported ticker (e.g. ETH-USDT instead of ETH-USD) returns a 404 or error response
- Network timeout if dYdX on-chain data is temporarily unavailable
- Missing pathParam ticker results in a malformed request
- Payment failure via x402 protocol returns 402 Payment Required

## How this service works

Market detail: price, open interest, funding term structure

## Output

Returns a JSON object for the requested market ticker containing the current mid price, open interest (in USD or native units), and a funding rate term structure showing rates across multiple time horizons. Data is timestamped for freshness verification.

## Request schema (JSON Schema)

```json
{
 "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": [
      "ticker"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "description": "Market ticker, e.g. ETH-USD (NOT ETH-USDT). See /v1/markets for valid tickers."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-market-detail-bdf753e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tradesonar.io](https://www.zero.xyz/host/api.tradesonar.io/llms.txt)
