81trust / 100

Cycle Daily Range Used

by x402.swaphunt.dev in Onchain & crypto

x402 APIPassing, checked 2 h ago

How much of today's expected (ATR) range has already been used — low/moderate/high/extended — with the % consumed. Use to judge remaining room before chasing intraday. Tells you how 'full' the day is.

GET https://x402.swaphunt.dev/v1/cycle/daily-range-used

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
67 ms typical, 67 ms slowest 5%
Last check
2 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/cycle/daily-range-used?asset=BTC&quote=USDT"
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%2Fcycle%2Fdaily-range-used
const res = await pay("https://x402.swaphunt.dev/v1/cycle/daily-range-used?asset=BTC&quote=USDT");
console.log(await res.json());

Example input

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

Example output

{
  "asset": "BTC",
  "avg_daily_range": 1800,
  "level": "high",
  "range_used_pct": 65,
  "today_range": 1170
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40267 ms$0.002
7 h agoPassed40268 ms$0.002