# Predge Whale Data API – Market Trade History

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

Returns historical whale trades, smart-money signals, price/volume buckets, and outcome verification for a single Polymarket market identified by condition ID.

## Facts

- Endpoint: GET https://x402-api-production-266e.up.railway.app/v1/markets/%7BconditionId%7D/history
- Price: $0.01/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-data-api-market-trade-history-5dece3d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e22znPTbXny80_uA6cXFh

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-data-api-market-trade-history-5dece3d5
```

Example prompt: Pull the last 30 days of whale trade history on Polymarket for condition ID 0x178a746e2b342c25b1d78d0f0d0ea77157c9b6d40b2e97ffbf827cd7f9994c39 — I want to see which smart-money wallets have been buying or selling, their wallet scores, win rates, and the daily volume buckets.

## When to prefer this

Choose this endpoint when you need granular historical whale trade records for a specific Polymarket market, including individual wallet intelligence (scores, win rates), bucketed volume timelines, and outcome verification signals. Prefer it over general market price feeds when smart-money flow analysis or wallet-level attribution is required. Use the all window for full market history or 7d/30d for recent activity. It is pay-per-call with no account required, making it ideal for on-demand agent queries.

## Known failure modes

- Invalid or malformed conditionId path param returns an error or empty result
- Unknown conditionId with no tracked trades returns empty trades array
- Payment not processed via x402 protocol results in 402 Payment Required response
- Invalid window enum value (anything other than 7d, 30d, all) may return error or default to 30d
- Railway deployment downtime causes 502/503 response
- Rate limiting or stale data if tracking pipeline has a delay

## 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

Returns a JSON object with market metadata (title, status, category, yes_price, resolution), a list of individual whale trades (side, price, size_usd, wallet address, wallet_score, wallet_win_rate_30d, block_timestamp, tx_hash), daily/bucketed volume aggregates (trades count, avg_price, volume_usd, whale_volume_usd per bucket), the requested window, and an outcome_verified object indicating whether flow and resolution signals are confirmed.

## 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": [
        "7d",
        "30d",
        "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": {
  "market": {
   "title": "Will the Fed cut rates in September?",
   "status": "active",
   "category": "economics",
   "platform": "polymarket",
   "yes_price": 0.62,
   "resolution": null,
   "resolved_at": null,
   "condition_id": "0x178a746e2b342c25b1d78d0f0d0ea77157c9b6d40b2e97ffbf827cd7f9994c39"
  },
  "trades": [
   {
    "side": "yes",
    "price": 0.62,
    "wallet": "0x8dab6cf42d7e4d1cd6cca897b9e12a8cbe6d69e8",
    "tx_hash": "0x6a7de5…",
    "category": "economics",
    "platform": "polymarket",
    "size_usd": 25400,
    "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",
    "wallet_win_rate_30d": 0.67
   }
  ],
  "window": "30d",
  "buckets": [
   {
    "trades": 9,
    "avg_price": 0.58,
    "volume_usd": 96400,
    "bucket_start": "2026-07-17T00:00:00.000Z",
    "whale_volume_usd": 71000
   }
  ],
  "window_days": 30,
  "outcome_verified": {
   "flow": false,
   "resolution": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/predge-whale-data-api-market-trade-history-5dece3d5/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)
