81trust / 100

Cycle Weekly Pattern

by x402.swaphunt.dev in Weather & location

x402 APIPassing, checked 26 min ago

Historical performance by day of week (avg return + win rate per weekday) over the lookback. Use to time entries/exits around statistically stronger or weaker days. Seasonality, not a forecast.

GET https://x402.swaphunt.dev/v1/cycle/weekly-pattern

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/cycle/weekly-pattern?asset=BTC&days=365"
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%2Fweekly-pattern
const res = await pay("https://x402.swaphunt.dev/v1/cycle/weekly-pattern?asset=BTC&days=365");
console.log(await res.json());

Example input

{
  "asset": "BTC",
  "days": 365
}

Example output

{
  "asset": "BTC",
  "best_day": "Monday",
  "by_day": {
    "Monday": {
      "avg_return_pct": 0.8,
      "win_rate": 0.58
    }
  },
  "worst_day": "Friday"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
26 min agoPassed402179 ms$0.004
6 h agoPassed40272 ms$0.004