81trust / 100

Sanity Is This A Dip

by x402.swaphunt.dev in Onchain & crypto

x402 APIPassing, checked 1 min ago

Is this drop a statistically significant dip or just noise? Compares the move against the asset's ATR and returns a verdict + the drawdown size. Use before 'buy the dip' to check the dip is real.

GET https://x402.swaphunt.dev/v1/sanity/is-this-a-dip

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
61 ms typical, 61 ms slowest 5%
Last check
1 min ago
Next check
in 26 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/sanity/is-this-a-dip?quote=USDT&symbol=BTC"
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%2Fsanity%2Fis-this-a-dip
const res = await pay("https://x402.swaphunt.dev/v1/sanity/is-this-a-dip?quote=USDT&symbol=BTC");
console.log(await res.json());

Example input

{
  "quote": "USDT",
  "symbol": "BTC"
}

Example output

{
  "atr_multiple": 1.8,
  "drawdown_pct": 6.5,
  "is_dip": true,
  "symbol": "BTC",
  "verdict": "significant"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 min agoPassed40271 ms$0.003
5 h agoPassed40261 ms$0.003