# StatePulse Finance Arbitrage Scanner

> StatePulse Finance Arbitrage Scanner is a paid API for AI agents from statepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Detects live crypto arbitrage opportunities, including funding-rate arbitrage between perpetual futures and spot markets, returning actionable trade signals with annualized yield estimates.

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/finance/arbitrage
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-finance-arbitrage-scanner-5d185bfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FYalAEnGfKBF6kfUFkk6V

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 statepulse-finance-arbitrage-scanner-5d185bfd -d '<json body>'
```

Example prompt: Scan for live crypto funding rate arbitrage opportunities and show me any SHORT_PERP_LONG_SPOT setups with their annualized yield percentages and confidence levels — especially anything above 10% annualized on major pairs like BTCUSDT.

## When to prefer this

Choose this endpoint when you need real-time, pre-computed funding rate arbitrage signals across crypto perpetual and spot markets without managing exchange API keys or computing funding rates yourself. Ideal for agents that need actionable SHORT_PERP_LONG_SPOT signals with annualized yield and confidence scores in a single pay-per-call call. Prefer this over raw exchange APIs when you want structured, interpretation-ready arbitrage data instantly.

## Known failure modes

- No opportunities found — returns empty opportunities array when markets are efficient
- Payment not received — x402 payment required, returns 402 if USDC payment on Base is missing or insufficient
- Market data unavailable — may return supported:false if upstream exchange data is unreachable
- Low confidence signals — confidence field may return 'low' or 'medium' requiring agent discretion
- Rate limiting or worker timeout on Cloudflare edge if upstream latency is high

## How this service works

Queries live funding rates and mark-index spreads from centralised perp indices to locate yield arbitrage opportunities. Matches: arbitrage finder, funding rate arbitrage, cross-chain yield, spot-perp spread, perp funding rates checker.

## Output

Returns a JSON object containing an array of arbitrage opportunities, each with a recommended action (e.g. SHORT_PERP_LONG_SPOT), the asset symbol, the current funding rate, and the annualized yield percentage. Also includes a 'supported' boolean and a 'confidence' string (e.g. 'high') indicating signal reliability.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "min_funding_rate": {
       "type": "number",
       "default": 0.0001,
       "description": "Minimum absolute funding rate percentage threshold (default: 0.0001)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "opportunities": [
    {
     "action": "SHORT_PERP_LONG_SPOT",
     "symbol": "BTCUSDT",
     "funding_rate": 0.00015,
     "annualized_yield_percentage": 16.42
    }
   ]
  },
  "supported": true,
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-finance-arbitrage-scanner-5d185bfd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from statepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/statepulse-api.hahavoid0.workers.dev/llms.txt)
