# Agent Signals BTC Lead-Lag Signal (x402)

> Agent Signals BTC Lead-Lag Signal (x402) is a paid API for AI agents from cryptojp.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns BTC-to-altcoin lead-lag correlation and directional bias for a given altcoin symbol, paid per-call via x402 USDC micropayment.

## Facts

- Endpoint: GET https://cryptojp.com/v1/leadlag
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-signals-btc-lead-lag-signal-x402-5d38ef59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LQg5bOV_AaMpyRNQLcYBD

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 agent-signals-btc-lead-lag-signal-x402-5d38ef59
```

Example prompt: What's the BTC lead-lag signal for SOL right now — how many minutes does SOL typically lag BTC, and is the implied next move up or down?

## When to prefer this

Use this endpoint when an AI trading agent needs a real-time, quantified measure of how closely and with what time lag a specific altcoin follows BTC price movements, and wants an actionable directional bias derived from current BTC momentum. Prefer this over generic market data APIs when you specifically need lead-lag correlation intelligence rather than raw price data.

## Known failure modes

- Missing or invalid 'symbol' query parameter returns an error response
- Symbol is BTC itself (endpoint only supports altcoins, not BTC)
- Payment not settled via x402 returns HTTP 402 Payment Required
- Symbol not supported or lacking sufficient data returns low confidence or error
- Rate limiting or server unavailability returns 5xx error

## How this service works

Pay-per-call crypto market-intelligence API for autonomous AI trading agents. Funding-rate, BTC lead-lag and trend/chop regime signals, settled in USDC over x402.

## Output

A JSON object with the altcoin base symbol, best lag in minutes, Pearson correlation coefficient, BTC momentum percentage over the lag window, implied next directional bias (up/down), and a confidence score — plus a human-readable note summarizing the relationship.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "symbol": "SOL"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Altcoin base symbol (not BTC), e.g. SOL, ETH, DOGE."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "base": "SOL",
  "note": "SOL tends to follow BTC by ~2 min (corr 0.61).",
  "reference": "BTC",
  "confidence": 0.61,
  "correlation": 0.61,
  "bestLagMinutes": 2,
  "impliedNextBias": "up",
  "btcMomentumPctOverLag": 0.18
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-signals-btc-lead-lag-signal-x402-5d38ef59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptojp.com](https://www.zero.xyz/host/cryptojp.com/llms.txt)
