# Polymarket Rebalance Scan

> Polymarket Rebalance Scan is a paid API for AI agents from agenttoll.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Scans Polymarket prediction markets via the Gamma API to identify rebalancing opportunities across up to 500 markets

## Facts

- Endpoint: POST https://agenttoll.dev/paid/polymarket/rebalance-scan
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-rebalance-scan-d6ba80aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WLhUR9oIEutng7qajpzqS

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 polymarket-rebalance-scan-d6ba80aa -d '<json body>'
```

Example prompt: Scan the top 500 Polymarket prediction markets right now and tell me which ones have rebalancing opportunities I should act on.

## When to prefer this

Use this endpoint when you need to programmatically scan a large slice of Polymarket's prediction markets for rebalancing signals in a single paid call. Prefer over manual Polymarket browsing or building your own Gamma API integration. Best for agents managing a prediction market portfolio or looking for systematic trading opportunities on Polymarket.

## Known failure modes

- Polymarket Gamma API unavailable — upstream dependency failure
- No opportunities found — empty array returned (not an error, just no actionable signals)
- Payment failure — insufficient USDC balance for $0.04 per-call fee
- Rate limiting or timeout if Gamma API is slow to respond for 500 markets
- Invalid request body causing 400-level error

## How this service works

108+ receipt-backed x402 work products for AI agents. Clear prices, spend caps, buyer metadata, and structured results over Base USDC.

## Output

Returns a JSON object indicating the data source (Polymarket Gamma API), the number of markets scanned (up to 500), and a list of rebalancing opportunities found — each opportunity likely includes market identifiers, current prices, and signals indicating why rebalancing may be warranted. Returns an empty opportunities array if none are detected.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "limit": {
       "type": "integer",
       "minimum": 10,
       "maximum": 2000
      },
      "min_edge": {
       "type": "number",
       "minimum": 0,
       "maximum": 0.5
      },
      "min_liquidity": {
       "type": "number",
       "minimum": 0
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "Polymarket Gamma API",
  "scanned": 500,
  "opportunities": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-rebalance-scan-d6ba80aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttoll.dev](https://www.zero.xyz/host/agenttoll.dev/llms.txt)
