# Predge Whale Wallet Trade History API

> Predge Whale Wallet Trade History API is a paid API for AI agents from x402-api-production-266e.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns historical Polymarket trades for a specific whale wallet address, including a running win-rate and modeled P&L, over a configurable lookback window.

## Facts

- Endpoint: GET https://x402-api-production-266e.up.railway.app/v1/wallets/%7Baddress%7D/history
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/predge-whale-wallet-trade-history-api-fb685803
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qS5DBERMJCfBbLKS_vrk1

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 predge-whale-wallet-trade-history-api-fb685803
```

Example prompt: Pull up the full trade history for Polymarket whale wallet 0x8dab6cf42d7e4d1cd6cca897b9e12a8cbe6d69e8 over the last 90 days — I want to see their win rate, modeled P&L, and every market they've traded.

## When to prefer this

Use this endpoint when you need a comprehensive historical view of a single whale wallet's Polymarket activity — including per-trade details, running P&L, and a wallet quality score — rather than a top-level leaderboard or market-wide whale activity. Prefer this over the market-specific whale endpoint when the user is investigating a known wallet address rather than a specific market. Best when you want multi-market aggregated performance across a configurable time window (30d, 90d, or all-time) for one address.

## Known failure modes

- Invalid or non-existent wallet address returns empty trades array or 404
- Unrecognized window value (not 30d/90d/all) may return 400 or default behavior
- Payment not fulfilled via x402 protocol returns 402 Payment Required
- Address with no Polymarket activity returns empty summary and trades list
- Network or Railway infrastructure downtime returns 5xx error

## How this service works

Polymarket whale trades and smart-money signals from the Predge tracking pipeline, sold per-call over the x402 payment protocol. No API keys, no accounts.

## Output

A JSON object containing a list of individual trades (with fields: wallet, market title, market slug, condition ID, side, entry price, size in USD, resolution, whether the trade won, modeled P&L per trade, running modeled P&L, and 30-day win rate), plus a summary with total trade count, decided trades, wins, overall win rate, and aggregate modeled P&L. Also includes the queried address and window. A note clarifies that modeled_pnl_usd is an estimate, not settled P&L.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "window": {
       "enum": [
        "30d",
        "90d",
        "all"
       ],
       "type": "string",
       "description": "Lookback window (default 30d)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "modeled_pnl_usd is a MODELED estimate ($1 binary payout per winning share, shares = size_usd ÷ entry price, over resolved markets), NOT realized/settled P&L.",
  "trades": [
   {
    "won": true,
    "side": "yes",
    "price": 0.62,
    "wallet": "0x8dab6cf42d7e4d1cd6cca897b9e12a8cbe6d69e8",
    "tx_hash": "0x6a7de5…",
    "category": "economics",
    "platform": "polymarket",
    "size_usd": 25400,
    "resolution": "yes",
    "market_slug": "fed-rate-cut-september",
    "condition_id": "0x178a746e2b342c25b1d78d0f0d0ea77157c9b6d40b2e97ffbf827cd7f9994c39",
    "market_title": "Will the Fed cut rates in September?",
    "wallet_score": 81,
    "block_timestamp": "2026-07-17T09:41:02.000Z",
    "modeled_pnl_usd": 15575.9,
    "wallet_win_rate_30d": 0.67,
    "running_modeled_pnl_usd": 4820.5
   }
  ],
  "window": "30d",
  "address": "0x8dab6cf42d7e4d1cd6cca897b9e12a8cbe6d69e8",
  "summary": {
   "wins": 12,
   "win_rate": 0.71,
   "trades_count": 24,
   "decided_trades": 17,
   "modeled_pnl_usd": 4820.5
  },
  "window_days": 30,
  "outcome_verified": {
   "pnl": false,
   "win_rate": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/predge-whale-wallet-trade-history-api-fb685803/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-production-266e.up.railway.app](https://www.zero.xyz/host/x402-api-production-266e.up.railway.app/llms.txt)
