# SperaxOS Flash Loan Historical Analyzer

> SperaxOS Flash Loan Historical Analyzer is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-03).

Analyzes historical flash loan activity on a given blockchain, returning filtered records by type (arbitrage/liquidation), profit threshold, and time period.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/flash-loan-scanner/analyzeHistoricalFlashLoans?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-flash-loan-historical-analyzer-1e3ecc13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3NOFq8BlE5gfDHfj_zpmE

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 speraxos-flash-loan-historical-analyzer-1e3ecc13 -d '<json body>'
```

Example prompt: Pull the last 30 days of flash loan arbitrage history on Base, show me up to 50 results, and filter to only trades that made at least $500 profit.

## When to prefer this

Choose this endpoint when you need AI-powered historical flash loan intelligence on a specific chain without managing API keys — ideal for DeFi researchers, quant analysts, or autonomous agents that need on-chain arbitrage and liquidation data payable per-request via USDC on Base. Prefer over on-chain indexers when you want pre-filtered, structured results rather than raw event logs.

## Known failure modes

- Invalid chain identifier returns an error or empty result set
- Unsupported type value (not 'arbitrage', 'liquidation', or 'all') may return an error
- Payment of $0.02 USDC via x402 fails due to insufficient balance, blocking the request
- Period or limit values out of range may be rejected or clamped
- No historical data available for the specified chain/period combination returns empty results

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns a list of historical flash loan transactions matching the specified filters, including flash loan type (arbitrage or liquidation), chain, profit in USD, and transaction metadata for up to the requested limit of records within the specified time window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "type": "string",
   "description": "Filter by type: \"arbitrage\", \"liquidation\", or \"all\"."
  },
  "chain": {
   "type": "string",
   "description": "Chain to analyze."
  },
  "limit": {
   "type": "number",
   "description": "Maximum number of results. Default: 50."
  },
  "periodDays": {
   "type": "number",
   "description": "Historical period in days."
  },
  "minProfitUsd": {
   "type": "number",
   "description": "Minimum profit filter."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-flash-loan-historical-analyzer-1e3ecc13/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
