# TradeSonar Funding Term Structure

> TradeSonar Funding Term Structure 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 funding rate term structure, stability metrics, and funding regime classification for a single dYdX perpetual market

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/funding/: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-funding-term-structure-a0ead281
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lGNyIwHvHAo8HFdwvCPNW

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-funding-term-structure-a0ead281
```

Example prompt: Pull the funding term structure and regime for BTC-USD on TradeSonar so I can see whether funding is stable and what direction the curve is pointing.

## When to prefer this

Use this endpoint when you need granular funding rate analysis beyond a single spot rate — specifically the term structure shape, regime classification, and stability metrics for a dYdX perpetual market. Prefer this over generic market detail endpoints when your decision logic depends on whether funding is trending, mean-reverting, or in an extreme regime. Best suited for carry trade evaluation, funding arbitrage, or pre-trade risk checks on perpetual positions.

## Known failure modes

- Invalid ticker format (must be BASE-USD not BASE-USDT) returns an error; use /v1/markets to list valid tickers
- Ticker not found on dYdX returns a 404 or empty result
- Payment failure via x402 protocol blocks the request
- Rate limiting if too many calls are made in quick succession
- Stale data if dYdX on-chain data feed is temporarily delayed

## How this service works

Funding term structure, stability, and regime for one market

## Output

Returns a structured object containing the funding rate term structure (rates across multiple time horizons), a stability indicator or score reflecting how consistent funding has been, and a regime classification (e.g. bullish, bearish, neutral, or elevated) for the requested dYdX perpetual market ticker.

## 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. XMR-USD (NOT XMR-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-funding-term-structure-a0ead281/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)
