# Crypto Market Signals

> Crypto Market Signals is a paid API for AI agents from grok-backtest-api.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns daily crypto market regime, BTC/ETH moving-average signals, breadth stats, and R1 breakout signals for a point-in-time top-N universe

## Facts

- Endpoint: GET https://grok-backtest-api.fly.dev/signals?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-market-signals-0ae8317a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2XJMaqtm_OcP95HFHA-Z8

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 crypto-market-signals-0ae8317a
```

Example prompt: What's today's crypto market regime and are there any R1 breakout signals firing in the top 30 coins by volume?

## When to prefer this

Use this endpoint when you need a single daily snapshot of macro crypto market conditions — regime, BTC/ETH moving-average status, universe breadth, and breakout scan — without running a full custom backtest. It is the fastest and cheapest way to get a systematic go/no-go signal for crypto entries, especially for agents following trend-following or momentum strategies that gate entries on market regime. Prefer sibling endpoints (Backtest, Optimizer) when you need historical strategy validation, and Token Risk Check for contract-level due diligence.

## Known failure modes

- Missing or invalid top_n parameter outside 5-200 range returns validation error
- Upstream Coinbase candle data unavailable causes stale or error response
- Payment not sent or insufficient USDC triggers 402 Payment Required
- Request during data refresh window may return prior day's signals

## How this service works

Daily crypto market regime in one call: BTC/ETH vs 20/50-day MAs, breadth of the point-in-time top-N (no survivorship bias), coins nearest a 20-day breakout, and the R1 breakout strategy's gate and entry signals. No candle fetching or indicator code. Completed UTC daily closes only.

## Output

A JSON object containing: today's date (as_of), overall market regime label (risk-on/risk-off), BTC price vs MA50 with percentage deviation, ETH price vs MA20 with percentage deviation, breadth stats (% of top-N coins above MA20 and MA50), an R1 breakout signal block with gate status and any active entry signals, and a list of nearest-to-breakout coins with their stop percentages and distance from breakout level.

## 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": {
      "top_n": {
       "type": "integer",
       "default": 30,
       "maximum": 200,
       "minimum": 5,
       "description": "Universe size for breadth / breakout scan (point-in-time top-N by 20d $ volume)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "btc": {
   "ma50": 81802.02,
   "close": 80053.16,
   "above_ma50": false,
   "pct_vs_ma50": -2.14
  },
  "eth": {
   "ma20": 2453.37,
   "close": 2326.75,
   "above_ma20": false,
   "pct_vs_ma20": -5.16
  },
  "as_of": "2026-10-25",
  "regime": "risk-off",
  "breadth": {
   "coins": 30,
   "pct_above_ma20": 3.3,
   "pct_above_ma50": 20
  },
  "r1_breakout": {
   "action": "no new entries: BTC is below its 50-day average",
   "signals": [],
   "gate_open": false
  },
  "nearest_breakouts": [
   {
    "coin": "ZEC-USD",
    "r1_stop_pct": 20.49,
    "pct_from_breakout": -12.7
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-market-signals-0ae8317a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grok-backtest-api.fly.dev](https://www.zero.xyz/host/grok-backtest-api.fly.dev/llms.txt)
