{
 "openapi": "3.0.3",
 "info": {
  "title": "Whale Receipts API",
  "version": "1.0",
  "description": "Every $5K+ Polymarket trade with the trader's all-time P&L, record, copy price and result. Free without a key (20 min delay, 25 per call); real-time with a key ($29/month: https://whalereceipts.com/api). Not affiliated with Polymarket. Not financial advice."
 },
 "servers": [
  {
   "url": "https://whalereceipts.com"
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  }
 },
 "security": [
  {},
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/v1/alerts": {
   "get": {
    "summary": "Latest whale trades, newest first",
    "parameters": [
     {
      "name": "since",
      "in": "query",
      "required": false,
      "description": "Only trades after this time (unix seconds or ISO 8601). Pass back next_since to poll.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max alerts (free 25, paid 500)",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "min_usd",
      "in": "query",
      "required": false,
      "description": "Smallest trade size in USD",
      "schema": {
       "type": "number"
      }
     },
     {
      "name": "side",
      "in": "query",
      "required": false,
      "description": "BUY or SELL",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "required": false,
      "description": "PROVEN, NEW WALLET, LOSING or TRADER",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "copyable",
      "in": "query",
      "required": false,
      "description": "1 = only copyable wallets",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "alerts, count, tier, delayed_minutes, next_since"
     }
    }
   }
  },
  "/api/v1/wallet/{wallet}": {
   "get": {
    "summary": "One wallet: all-time P&L, settled record on big trades, copy score",
    "parameters": [
     {
      "name": "wallet",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "wallet report"
     }
    }
   }
  },
  "/api/v1/copyable": {
   "get": {
    "summary": "Wallets whose past copies made money at the real entry price (experimental)",
    "responses": {
     "200": {
      "description": "copyable wallets"
     }
    }
   }
  }
 }
}