# SwapHunt Green Candles Streak Analyzer

> SwapHunt Green Candles Streak Analyzer is a paid API for AI agents from x402.swaphunt.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Counts consecutive green candles on a chosen interval and returns historical outcome statistics after streaks of that length to gauge mean-reversion and exhaustion risk.

## Facts

- Endpoint: GET https://x402.swaphunt.dev/v1/fomo/green-candles-streak
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swaphunt-green-candles-streak-analyzer-7b092ad4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4idoxPYMtNY5NFLL15hAW

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-green-candles-streak-analyzer-7b092ad4
```

Example prompt: How many consecutive green candles does BTC/USDT currently have on the 4h chart, and what do the historical stats say usually happens next — am I at risk of a reversal if I buy here?

## When to prefer this

Use this endpoint when you need to quantify exhaustion risk from consecutive green candle streaks and want historical base-rate statistics on what typically follows such runs. Prefer this over generic momentum indicators when you want probabilistic, historically-grounded mean-reversion odds rather than just current momentum readings.

## Known failure modes

- Invalid or unsupported asset symbol returns an error or empty result
- Unsupported interval value (outside 1h, 4h, 1d) causes a validation error
- Unsupported quote currency returns an error
- Insufficient historical data for the requested symbol may yield low-confidence stats
- Service unavailable or upstream data feed outage returns 5xx error
- Payment of $0.003 USDC not provided results in 402 Payment Required

## How this service works

Counts consecutive green candles on the chosen interval and returns the historical outcome stats after streaks of that length (mean-reversion odds). Use to gauge exhaustion risk before buying a long green run.

## Output

Returns the current count of consecutive green candles for the specified asset/interval, along with historical outcome statistics (e.g. win rate, average return) after streaks of that length — quantifying mean-reversion probability and exhaustion risk.

## 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": {
      "quote": {
       "type": "string",
       "default": "USDT",
       "description": "Quote currency (USDT, USDC, EUR)"
      },
      "symbol": {
       "type": "string",
       "default": "BTC",
       "description": "Asset symbol"
      },
      "interval": {
       "type": "string",
       "default": "4h",
       "description": "Candle interval (1h, 4h, 1d)"
      }
     }
    }
   },
   "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-green-candles-streak-analyzer-7b092ad4/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)
