# SwapHunt Chop vs Trend Detector (ADX-based)

> SwapHunt Chop vs Trend Detector (ADX-based) is a paid API for AI agents from x402.swaphunt.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Detects whether a given crypto asset/timeframe is trending or ranging (choppy) using ADX, returning a boolean flag and a numeric chop score.

## Facts

- Endpoint: GET https://x402.swaphunt.dev/v1/regime/chop-detection
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swaphunt-chop-vs-trend-detector-adx-based-4492b72a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1QBgormQnHPycvnfu33J9

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 swaphunt-chop-vs-trend-detector-adx-based-4492b72a
```

Example prompt: Check if BTC/USDT is currently trending or just chopping on the 4h chart — I want to know whether it's safe to run a trend-following strategy right now.

## When to prefer this

Use this endpoint when you need to programmatically determine the current market regime for a crypto asset before deploying a trend-following or mean-reversion strategy. It is specifically useful as a pre-filter to avoid applying trend strategies during choppy, low-ADX markets or range strategies during strongly trending markets. Prefer this over raw price data when you want a single, pre-computed regime signal rather than computing ADX yourself.

## Known failure modes

- Unsupported asset symbol returns an error or empty result
- Invalid timeframe value (e.g. '5m') returns a validation error
- Quote currency not supported returns an error
- Payment of 0.003 USDC not provided results in 402 Payment Required
- Downstream data source unavailable causes 503 or timeout

## How this service works

ADX-based chop-vs-trend detector for an asset/timeframe: is price trending or stuck in a range? Returns a boolean + chop score. Use to avoid trend strategies in chop (and range strategies in trends).

## Output

Returns a boolean indicating whether the market is choppy (true) or trending (false), plus a numeric chop score (likely 0–100) derived from ADX analysis, allowing the agent to decide whether to engage trend-following or range-bound strategies.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "asset": {
       "type": "string",
       "default": "BTC",
       "description": "Asset symbol"
      },
      "quote": {
       "type": "string",
       "default": "USDT",
       "description": "Quote currency (USDT, USDC, EUR)"
      },
      "timeframe": {
       "type": "string",
       "default": "4h",
       "description": "Timeframe (1h, 4h, 1d)"
      }
     }
    }
   },
   "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/swaphunt-chop-vs-trend-detector-adx-based-4492b72a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.swaphunt.dev](https://www.zero.xyz/host/x402.swaphunt.dev/llms.txt)
