# Mavrin Divergence Signals API

> Mavrin Divergence Signals API is a paid API for AI agents from api.mavrin.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns cross-venue arbitrage and divergence signals between Kalshi and Polymarket prediction markets, including edge, confidence, price, and side for each signal.

## Facts

- Endpoint: GET https://api.mavrin.app/api/v1/divergence/signals
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mavrin-divergence-signals-api-f1a61f29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YMpalYsqLFpID59TTN3qe

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 mavrin-divergence-signals-api-f1a61f29
```

Example prompt: Pull the latest cross-venue divergence signals from Mavrin for sports markets — give me up to 50 signals since yesterday and tell me which ones have the highest edge.

## When to prefer this

Choose this endpoint when you need structured, machine-readable arbitrage or divergence signals between Kalshi and Polymarket, rather than raw market data or odds. It is ideal for agents that need to identify mispricing, execute cross-venue strategies, or monitor prediction market inefficiencies programmatically. Use it over general market search endpoints when you specifically want pre-computed edge and confidence metrics per signal.

## Known failure modes

- Invalid or missing 'type' or 'method' in input object returns a 400 validation error
- 'limit' exceeding 500 is silently clamped or rejected
- 'since' timestamp in wrong format returns no results or an error
- No signals found for the requested category or time range returns an empty signals array
- x402 payment failure results in a 402 response requiring USDC payment on Base
- Rate limiting or quota exceeded returns a 429 error

## How this service works

Kalshi and Polymarket US research data for agents. Free market search and coverage, odds from 0.004 USDC, and x402 payments on Base.

## Output

Returns a JSON object with a count and an array of signal objects. Each signal includes a unix timestamp, edge size, signal kind (e.g. cross-venue-lock), yes/no side, position size, price in USDC, category, basis risk (nullable), market ID, and a confidence score between 0 and 1.

## 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",
     "properties": {
      "limit": {
       "type": "string",
       "description": "max rows, up to 500"
      },
      "since": {
       "type": "string",
       "description": "unix timestamp lower bound"
      },
      "underlying": {
       "type": "string",
       "description": "category filter, e.g. sports, crypto"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "signals": [
   {
    "ts": 1787960682.01,
    "edge": 0.006,
    "kind": "cross-venue-lock",
    "side": "yes",
    "size": 3,
    "price": 0.994,
    "category": "sports",
    "basisRisk": null,
    "market_id": "mlb-champ-2026-yankees",
    "confidence": 0.3
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mavrin-divergence-signals-api-f1a61f29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mavrin.app](https://www.zero.xyz/host/api.mavrin.app/llms.txt)
