# TradeSonar dYdX Signals API

> TradeSonar dYdX Signals API 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 dYdX on-chain smart-money, funding rate, and crowding signals for a specific perpetual market ticker, with block-height-stamped freshness metadata.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/markets/%7Bticker%7D?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-dydx-signals-api-d32d22d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fxfSSNkpY2EdJxQQT5W2I

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-dydx-signals-api-d32d22d1
```

Example prompt: Pull the TradeSonar dYdX signals for BTC-USD — I want to see the current oracle price, the 1-day and 30-day annualized funding rates, and the open interest right now.

## When to prefer this

Choose this endpoint when you need dYdX-specific perpetual market signals — particularly funding rate term structure, open interest, and oracle pricing — with on-chain freshness guarantees (block-height stamping). Prefer it over generic crypto data APIs when the user is specifically trading or monitoring dYdX perpetuals and needs smart-money or crowding context alongside price data.

## Known failure modes

- Unknown or unsupported ticker returns 404 or empty data response
- Stale data if replica lag is high — check data_as_of block height before acting
- Rate limiting or payment failure (402) if x402 USDC micropayment is not properly handled
- Malformed ticker (e.g. incorrect format) may return validation error
- Temporary dYdX node outage may cause upstream data gaps

## How this service works

TradeSonar: dYdX on-chain smart-money, funding and crowding signals. Every response is stamped with data_as_of freshness (block height + replica lag).

## Output

A JSON object containing the ticker symbol, current oracle price, annualized funding rates at 1-day, 7-day, and 30-day horizons, the real-time annualized funding rate, and total open interest in USD — all stamped with a data_as_of field capturing block height and replica lag for freshness verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "ticker": "...",
   "oraclePrice": "...",
   "fundingD1Ann": "...",
   "fundingD7Ann": "...",
   "fundingD30Ann": "...",
   "fundingNowAnn": "...",
   "openInterestUsd": "..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-dydx-signals-api-d32d22d1/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)
