81trust / 100
Regime Chop Detection
by x402.swaphunt.dev in Onchain & crypto
x402 APIPassing, checked 1 h ago
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).
GET https://x402.swaphunt.dev/v1/regime/chop-detection
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 142 ms typical, 196 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/regime/chop-detection?asset=BTC"e=USDT&timeframe=4h"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.swaphunt.dev%2Fv1%2Fregime%2Fchop-detection
const res = await pay("https://x402.swaphunt.dev/v1/regime/chop-detection?asset=BTC"e=USDT&timeframe=4h");
console.log(await res.json());Example input
{
"asset": "BTC",
"quote": "USDT",
"timeframe": "4h"
}Example output
{
"adx": 17.2,
"asset": "BTC",
"chop_score": 0.65,
"is_choppy": true,
"timeframe": "4h"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 196 ms | $0.003 |
| 5 h ago | Passed | 402 | 142 ms | $0.003 |
| 8 h ago | Passed | 402 | 59 ms | $0.003 |
| 12 h ago | Passed | 402 | 224 ms | $0.003 |
| 15 h ago | Passed | 402 | 135 ms | $0.003 |
| 20 h ago | Passed | 402 | 187 ms | $0.003 |
| 23 h ago | Passed | 402 | 181 ms | $0.003 |
| 26 h ago | Passed | 402 | 131 ms | $0.003 |
| 31 h ago | Passed | 402 | 62 ms | $0.003 |