# SwapHunt Weekly Pattern Analyzer

> SwapHunt Weekly Pattern Analyzer is a paid API for AI agents from x402.swaphunt.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns historical average return and win rate broken down by day of week for a given crypto asset over a configurable lookback period

## Facts

- Endpoint: GET https://x402.swaphunt.dev/v1/cycle/weekly-pattern
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swaphunt-weekly-pattern-analyzer-973b472b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9G7NCOrZa0Q_NpydnB5Pu

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-weekly-pattern-analyzer-973b472b
```

Example prompt: What does BTC's historical performance look like by day of the week — show me the average return and win rate per weekday over the past 365 days so I know which days have been statistically stronger for entries.

## When to prefer this

Use this endpoint when you need day-of-week seasonality statistics for crypto assets (BTC, ETH, SOL) to time entries or exits around historically stronger or weaker weekdays. Prefer this over the monthly-pattern endpoint when your planning horizon is intraweek rather than seasonal across months, and over the hourly-volatility endpoint when you care about calendar-day patterns rather than intraday time-of-day patterns.

## Known failure modes

- Invalid asset symbol returns error or empty result
- Days parameter outside 30-1000 range rejected with validation error
- Insufficient historical data for very short lookback periods may produce unreliable statistics
- Rate limiting or payment failure returns 402 or 429 status

## How this service works

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.

## Output

A breakdown of historical average return and win rate for each day of the week (Monday through Sunday) for the requested asset over the specified lookback window, enabling identification of statistically stronger or weaker trading days. This is descriptive seasonality data, not a forecast.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "days": 365,
   "asset": "BTC"
  }
 }
}
```

## 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": {
      "days": {
       "type": "integer",
       "default": 365,
       "description": "Days of history (30-1000)"
      },
      "asset": {
       "type": "string",
       "default": "BTC",
       "description": "Asset symbol (BTC, ETH, SOL)"
      }
     }
    }
   },
   "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-weekly-pattern-analyzer-973b472b/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)
