# TradeSonar dYdX Funding Signals API

> TradeSonar dYdX Funding 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 annualized funding rates across multiple time horizons, funding regime classification, and negative-funding frequency for a specified dYdX perpetual market ticker.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/funding/%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-funding-signals-api-5415f105
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mnXoHKXGdw-Efs7C9Xj8i

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-funding-signals-api-5415f105
```

Example prompt: What's the current funding regime and annualized funding rate breakdown for BTC-USD on dYdX — give me the now, 1-day, 7-day, and 30-day rates and how often funding has been negative lately.

## When to prefer this

Use this endpoint when you need on-chain dYdX-specific funding rate data with regime context and historical negative-funding frequency, rather than just a spot funding rate. It is the right choice for agents making carry-trade, basis-trade, or funding-arbitrage decisions on dYdX perpetuals, especially when term structure (now vs 1d vs 7d vs 30d) matters. Prefer this over generic crypto data APIs when you need regime classification and freshness guarantees tied to block height.

## Known failure modes

- Invalid or unsupported ticker returns a 404 or error object
- Stale data if replica lag is high — check data_as_of block height
- Rate limiting or payment failure returns 402 if x402 payment not properly attached
- dYdX chain downtime may result in missing or delayed funding data
- Ticker format mismatch (e.g. 'BTC' vs 'BTC-USD') may cause not-found errors

## 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 annualized funding rate (nowAnn), 1-day annualized rate (d1Ann), 7-day annualized rate (d7Ann), 30-day annualized rate (d30Ann), funding regime classification (regime), and the percentage of hours in the past 30 days where funding was negative (negHourPct30d). Every response includes a data_as_of field with 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": {
   "d1Ann": "...",
   "d7Ann": "...",
   "d30Ann": "...",
   "nowAnn": "...",
   "regime": "...",
   "ticker": "...",
   "negHourPct30d": "..."
  }
 }
}
```

## More

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