{
  "openapi": "3.1.0",
  "info": {
    "title": "CoinLobster Crypto Data API",
    "description": "Real-time crypto whale tracker: live whale trades, whale alerts and smart money across 18 exchanges, plus on-chain DEX swaps, market data, scored trading signals and DeFi analytics. Everything runs on credits (10-50 per call): buy credit packs pay-per-request, or subscribe monthly for a cheaper credit allowance that refills each billing cycle (unused allowance does not roll over; packs never expire). Commercial use allowed on every paid plan. POST /register with your email to create a key and purchase credits or a plan via Stripe. Free, no-key endpoints and the MCP server (/mcp) are documented under the \"free\" tag. See /llms.txt for an LLM-readable overview.",
    "version": "3.1.0",
    "contact": {
      "name": "CoinLobster",
      "email": "info@coinlobster.com",
      "url": "https://coinlobster.com"
    },
    "x-pricing": {
      "model": "credits",
      "credit_packs": {
        "starter": {
          "price": "$10",
          "credits": 5000
        },
        "pro": {
          "price": "$49",
          "credits": 50000
        },
        "enterprise": {
          "price": "$199",
          "credits": 250000
        }
      },
      "cost_per_request": "10-50 credits depending on endpoint",
      "subscriptions": {
        "free": {
          "name": "Free",
          "price_monthly": "$0",
          "credits_per_month": 250,
          "custom_alerts": 1
        },
        "pro": {
          "name": "Pro",
          "price_monthly": "$29",
          "price_annual": "$199",
          "credits_per_month": 100000,
          "custom_alerts": 50,
          "buy_at": "https://coinlobster.com/pricing",
          "license": "Commercial use allowed."
        }
      },
      "subscription_note": "One plan covers the website, your AI (MCP) and this API on one shared credit balance. Plan credits refill each billing cycle and unused credits do not roll over. Credit packs never expire."
    },
    "x-llms-txt": "https://coinlobster.com/llms.txt",
    "x-llms-full-txt": "https://coinlobster.com/llms-full.txt",
    "x-agents-json": "https://coinlobster.com/.well-known/agents.json",
    "x-mcp-server": "https://coinlobster.com/mcp-server.json"
  },
  "servers": [
    {
      "url": "https://coinlobster.com/api/ai/v1",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "account",
      "description": "Registration, key status, pricing, credit balance, and health check. No credit cost."
    },
    {
      "name": "market",
      "description": "Live price, combined orderbook, funding rates and open interest across 18 exchanges, plus liquidations from the venues that publish them."
    },
    {
      "name": "whales",
      "description": "Whale intelligence: merged CEX + on-chain DEX tape, the Smart Money Radar, and per-coin hourly flow buckets."
    },
    {
      "name": "analytics",
      "description": "Signal-ledger data: raw fired flag rows and per-type firing history, with fire-time price and later outcomes, never backfilled."
    },
    {
      "name": "news",
      "description": "AI-generated news summaries, raw headlines, and sentiment scoring."
    },
    {
      "name": "defi",
      "description": "DEX/DeFi trading summaries and top tokens by volume."
    },
    {
      "name": "free",
      "description": "No API key required. The public endpoints that back the CoinLobster web terminal, plus the MCP server at /mcp. Documented here even though they sit outside the /api/ai/v1 base (see each path's servers override)."
    },
    {
      "name": "Hyperliquid",
      "description": "Named-wallet whale data from Hyperliquid, the one venue whose public tape identifies the account on both sides of a fill."
    },
    {
      "name": "DeFi",
      "description": "On-chain DEX analytics across Ethereum, Base and Arbitrum."
    },
    {
      "name": "Watches",
      "description": "Standing watches that push to your webhook when they fire."
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key obtained via POST /register with email + credit pack purchase, or a key from an account on Pro (the one paid plan, bought at https://coinlobster.com/pricing). Pass as: Authorization: Bearer cl_xxx... Every request deducts the endpoint's credit cost (10-50 credits); plan keys draw from a monthly allowance that refills each billing cycle."
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "Meta": {
        "type": "object",
        "description": "Present on every /api/ai/v1 response.",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When this response was assembled, not when the data was measured."
          },
          "credits_used": {
            "type": "integer",
            "description": "Credits this call spent. Absent on free surfaces and on keyless calls."
          },
          "credits_remaining": {
            "type": "integer",
            "description": "Account balance after this call."
          },
          "deprecation": {
            "type": "string",
            "description": "Present when the request used a deprecated form, e.g. the key in the query string."
          }
        }
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "missing_api_key"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "WhaleTrade": {
        "type": "object",
        "description": "One EXECUTED trade above the coin liquidity floor. Not a wallet transfer: it has a direction and a price.",
        "properties": {
          "tradeId": {
            "type": "string"
          },
          "pair": {
            "type": "string",
            "example": "BTC/USD"
          },
          "exchange": {
            "type": "string",
            "example": "Binance"
          },
          "price": {
            "type": "number"
          },
          "quantity_base": {
            "type": "number",
            "description": "Size in the base asset."
          },
          "quantity_quote": {
            "type": "number",
            "description": "Size in USD. This is the number to rank or sum on."
          },
          "isBuy": {
            "type": "boolean",
            "description": "true = the aggressor bought."
          },
          "timestamp": {
            "type": "integer",
            "description": "Milliseconds since epoch."
          }
        }
      },
      "RadarRow": {
        "type": "object",
        "description": "One coin in one window. `multiple` compares this window against the coin OWN trailing hours, so it is not comparable across coins.",
        "properties": {
          "coin": {
            "type": "string",
            "example": "SOL"
          },
          "buyUsd": {
            "type": "number"
          },
          "sellUsd": {
            "type": "number"
          },
          "netUsd": {
            "type": "number"
          },
          "totalUsd": {
            "type": "number"
          },
          "multiple": {
            "type": [
              "number",
              "null"
            ],
            "description": "How many times the coin own normal this window is. null when the baseline is too short to judge."
          },
          "z": {
            "type": "number"
          },
          "direction": {
            "type": "string",
            "enum": [
              "buy",
              "sell",
              "flat"
            ]
          },
          "venues": {
            "type": "integer",
            "description": "Distinct venues that contributed."
          },
          "unusual": {
            "type": "boolean"
          },
          "coldStart": {
            "type": "boolean",
            "description": "Not enough history to judge yet. Treat `multiple` as unreliable."
          },
          "lowCoverage": {
            "type": "boolean",
            "description": "The collector missed hours in this window."
          },
          "hoursOfHistory": {
            "type": "integer"
          },
          "recordHigh": {
            "type": "boolean",
            "description": "1h window only: this hour beats every completed hour in the baseline."
          },
          "hadDex": {
            "type": "boolean"
          },
          "hadHl": {
            "type": "boolean"
          },
          "hlInBaseline": {
            "type": "boolean",
            "description": "false means Hyperliquid dollars are held out of BOTH sides of `multiple` while its own coverage matures. They are still counted in the displayed flow."
          },
          "hlCoverageHours": {
            "type": "integer"
          },
          "namedWallets": {
            "type": "array",
            "description": "Accounts behind this flow, when the venue names them. Empty when the flow was anonymous CEX.",
            "items": {
              "type": "object",
              "properties": {
                "wallet": {
                  "type": "string"
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "hl",
                    "dex"
                  ]
                },
                "buyUsd": {
                  "type": "number"
                },
                "sellUsd": {
                  "type": "number"
                },
                "path": {
                  "type": "string",
                  "description": "The page for this wallet. Never construct one yourself: hl and dex addresses have different pages."
                }
              }
            }
          },
          "sparkline": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        }
      },
      "LiquidationLane": {
        "type": "object",
        "description": "ONE lane. Perp and lending liquidations are different events and are never summed.",
        "properties": {
          "count": {
            "type": "integer"
          },
          "totalUsd": {
            "type": "number"
          },
          "longUsd": {
            "type": "number"
          },
          "shortUsd": {
            "type": "number"
          },
          "longSharePct": {
            "type": [
              "number",
              "null"
            ],
            "description": "null on an empty window. Never defaults to 50."
          }
        }
      },
      "FlagRow": {
        "type": "object",
        "description": "One signal-ledger firing, written at fire time and never backfilled. Outcomes are appended later.",
        "properties": {
          "type": {
            "type": "string",
            "example": "whale-spike"
          },
          "coin": {
            "type": "string"
          },
          "firedAt": {
            "type": "integer"
          },
          "price": {
            "type": "number",
            "description": "Price at fire time."
          },
          "outcomes": {
            "type": "object",
            "description": "Absent or partial until enough time has passed. Never inferred.",
            "properties": {
              "h24": {
                "type": "object",
                "properties": {
                  "ok": {
                    "type": "boolean",
                    "description": "false means the outcome could not be scored cleanly. Do not read `ret`."
                  },
                  "ret": {
                    "type": "number",
                    "description": "Fractional return, e.g. 0.012 = +1.2%."
                  }
                }
              }
            }
          }
        }
      },
      "DailyPoint": {
        "type": "object",
        "description": "One recorded day. The archive starts when recording started, so a short series is a coverage fact, not a quiet market.",
        "properties": {
          "d": {
            "type": "string",
            "example": "2026-08-01"
          },
          "avg": {
            "type": "number"
          },
          "min": {
            "type": "number"
          },
          "max": {
            "type": "number"
          },
          "n": {
            "type": "integer",
            "description": "Observations behind this day."
          }
        }
      },
      "FundingRow": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "rate": {
            "type": "number",
            "description": "Fractional per interval, e.g. 0.0001 = 0.01%."
          },
          "nextRate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Only where the venue publishes a prediction."
          },
          "timestamp": {
            "type": "integer"
          }
        }
      },
      "TokenRow": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "chain": {
            "type": "string",
            "enum": [
              "ethereum",
              "base",
              "arbitrum"
            ]
          },
          "price_usd": {
            "type": "number"
          },
          "volume_24h_usd": {
            "type": "number"
          },
          "tvl_usd": {
            "type": "number"
          }
        }
      },
      "HyperliquidPosition": {
        "type": "object",
        "description": "Hyperliquid names the wallet on both sides of a fill, so a position is attributable to an account.",
        "properties": {
          "coin": {
            "type": "string"
          },
          "base": {
            "type": "string",
            "description": "Parsed symbol. A 1000-unit perp arrives as coin \"kPEPE\" with base \"PEPE\"."
          },
          "side": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ]
          },
          "notionalUsd": {
            "type": "number"
          },
          "entryPx": {
            "type": "number"
          },
          "liquidationPx": {
            "type": [
              "number",
              "null"
            ]
          },
          "leverage": {
            "type": [
              "number",
              "null"
            ]
          },
          "unrealizedPnl": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    }
  },
  "paths": {
    "/discover": {
      "get": {
        "operationId": "discoverApi",
        "summary": "Discover API capabilities, pricing, and how to get started",
        "description": "No authentication required. Returns the full API catalog with all 24 data endpoints, pricing (credit packs and subscriptions), and step-by-step instructions for obtaining an API key. This is the entry point for AI agents discovering this API.",
        "security": [],
        "tags": [
          "account"
        ],
        "x-tier": "public",
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "API discovery information including endpoints, pricing, and registration instructions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/register": {
      "post": {
        "operationId": "registerApiKey",
        "summary": "Self-service API key registration (credit pack or subscription)",
        "description": "No authentication required. Creates an API key and returns a Stripe payment URL. After payment, poll GET /register/status?key_id=xxx to retrieve the activated key. Pass \"pack\" (starter $10/5,000 credits, pro $49/50,000 credits, enterprise $199/250,000 credits). The monthly plan (Pro, $29 a month or $199 a year) is bought at https://coinlobster.com/pricing with a free account; a \"tier\" sent here returns that door. All 22 data endpoints are available on every plan; every request deducts the endpoint's credit cost, and plan credits refill each billing cycle.",
        "security": [],
        "tags": [
          "account"
        ],
        "x-tier": "public",
        "x-credits": 0,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Email address for the API key owner"
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional label for this key (e.g. 'My Trading Bot')"
                  },
                  "pack": {
                    "type": "string",
                    "enum": [
                      "starter",
                      "pro",
                      "enterprise"
                    ],
                    "default": "starter",
                    "description": "Credit pack to purchase: starter ($10/5,000 credits), pro ($49/50,000 credits), enterprise ($199/250,000 credits). Mutually exclusive with tier."
                  },
                  "tier": {
                    "type": "string",
                    "description": "Retired. Monthly plans are bought at https://coinlobster.com/pricing (see info.x-pricing); a tier sent here is refused with the plans on sale. Mutually exclusive with pack."
                  }
                }
              },
              "example": {
                "email": "agent@example.com",
                "pack": "starter",
                "label": "My Trading Bot"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Pending API key created. Complete payment at the payment_url, then poll GET /register/status?key_id=xxx&poll_token=xxx (both returned here) to get your API key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key_id": {
                          "type": "string",
                          "description": "Key ID for polling status"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending_payment"
                          ]
                        },
                        "pack": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "credits": {
                              "type": "integer"
                            },
                            "price": {
                              "type": "string"
                            }
                          }
                        },
                        "tier": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "price_monthly": {
                              "type": "integer"
                            }
                          }
                        },
                        "payment_url": {
                          "type": "string",
                          "description": "Stripe Checkout URL: complete payment here"
                        },
                        "next_step": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid email, ambiguous billing (both pack and tier), or key limit reached",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/pricing": {
      "get": {
        "operationId": "getPricingInfo",
        "summary": "Get API credit pack and subscription pricing",
        "description": "No authentication required. Returns pay-per-request credit pack pricing, subscription tier pricing, and endpoint costs.",
        "security": [],
        "tags": [
          "account"
        ],
        "x-tier": "public",
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Credit pack pricing, subscription pricing, and endpoint cost information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/register/status": {
      "get": {
        "operationId": "getRegistrationStatus",
        "summary": "Check API key registration status after payment",
        "description": "No authentication required. Poll this endpoint after completing Stripe payment to get your activated API key. The API key is revealed here once, after payment succeeds.",
        "security": [],
        "tags": [
          "account"
        ],
        "x-tier": "public",
        "x-credits": 0,
        "parameters": [
          {
            "name": "key_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The key_id returned from POST /register"
          }
        ],
        "responses": {
          "200": {
            "description": "Key status: pending_payment or active (with API key)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/credits/balance": {
      "get": {
        "operationId": "getCreditBalance",
        "summary": "Check your remaining credit balance",
        "description": "Returns your current credit balance, total credits used, total purchased, and total requests made. Plan keys see their rolling allowance balance here too.",
        "tags": [
          "account"
        ],
        "x-tier": "account",
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Credit balance and usage stats",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/credits/purchase": {
      "post": {
        "operationId": "purchaseCredits",
        "summary": "Buy more API credits",
        "description": "Returns a Stripe Checkout URL to purchase additional credits. Choose starter ($10/5,000), pro ($49/50,000), or enterprise ($199/250,000). Works on any key, including plan keys that ran dry mid-cycle.",
        "tags": [
          "account"
        ],
        "x-tier": "account",
        "x-credits": 0,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pack": {
                    "type": "string",
                    "enum": [
                      "starter",
                      "pro",
                      "enterprise"
                    ],
                    "default": "pro"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout URL for credit purchase",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/status": {
      "get": {
        "operationId": "getApiStatus",
        "summary": "API health check and key info",
        "description": "Returns API operational status and your API key tier information.",
        "tags": [
          "account"
        ],
        "x-tier": "account",
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "API status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/ticker": {
      "get": {
        "operationId": "getMarketTicker",
        "summary": "Get latest price and market stats for a trading pair",
        "description": "Returns the latest traded price, 5-minute volume breakdown, funding rates, and open interest across all streaming exchanges for a given trading pair.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 10,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            },
            "description": "Trading pair (e.g. BTC/USD, ETH/USD, SOL/USD)"
          }
        ],
        "responses": {
          "200": {
            "description": "Ticker data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "pair": {
                          "type": "string"
                        },
                        "price": {
                          "type": "number",
                          "nullable": true
                        },
                        "volume_5m": {
                          "type": "object",
                          "properties": {
                            "buy": {
                              "type": "number"
                            },
                            "sell": {
                              "type": "number"
                            },
                            "total": {
                              "type": "number"
                            },
                            "trade_count": {
                              "type": "integer"
                            }
                          }
                        },
                        "funding_rates": {
                          "type": "object"
                        },
                        "open_interest": {
                          "type": "object"
                        },
                        "exchanges_streaming": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/pairs": {
      "get": {
        "operationId": "getMarketPairs",
        "summary": "List all supported trading pairs and their exchange mappings",
        "description": "Returns every trading pair supported by CoinLobster along with which exchanges stream data for each pair.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 10,
        "responses": {
          "200": {
            "description": "Pair list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "pairs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "definitions": {
                          "type": "object"
                        },
                        "count": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/config": {
      "get": {
        "operationId": "getMarketConfig",
        "summary": "Get full market configuration",
        "description": "Returns the full market configuration including all supported pairs and per-pair exchange details.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 10,
        "responses": {
          "200": {
            "description": "Market configuration",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/orderbook": {
      "get": {
        "operationId": "getCombinedOrderbook",
        "summary": "Get combined orderbook across all exchanges for a pair",
        "description": "Returns a merged orderbook combining bids and asks from up to 18 exchanges, with per-exchange breakdown. Shows which exchanges have liquidity at each price level.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            },
            "description": "Trading pair"
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "maximum": 50
            },
            "description": "Number of price levels per side"
          }
        ],
        "responses": {
          "200": {
            "description": "Combined orderbook data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/trades": {
      "get": {
        "operationId": "getRecentTrades",
        "summary": "Get recent trades across all exchanges",
        "description": "Returns recent trades for a pair across all streaming exchanges. Filter by minimum USD size to see only significant trades.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "maximum": 500
            }
          },
          {
            "name": "min_size_usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Minimum trade size in USD to filter whale trades"
          }
        ],
        "responses": {
          "200": {
            "description": "Recent trades",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/funding-rates": {
      "get": {
        "operationId": "getFundingRates",
        "summary": "Get funding rates across all futures exchanges",
        "description": "Returns current funding rates for a pair across all futures exchanges (Binance Futures, Bybit, OKX, BitMEX, Kraken Futures, MEXC Futures, Bitget Futures, and more). Includes rate history, average rate, and market sentiment analysis.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rate data with sentiment analysis",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FundingRow"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/open-interest": {
      "get": {
        "operationId": "getOpenInterest",
        "summary": "Get open interest across futures exchanges",
        "description": "Returns current open interest (in contracts and USD value) for a pair across all futures exchanges.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open interest data per exchange and totals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/market/liquidations": {
      "get": {
        "operationId": "getRecentLiquidations",
        "summary": "Get recent liquidations across futures exchanges",
        "description": "Recent liquidation events for one pair with the long vs short breakdown. Same composer as the keyless MCP liquidations tool, so the answer is never thinner than the free one: the live feed is merged with the persisted recorded series (history_included says whether that happened), duplicates and zero-size rows are dropped, and window_minutes states the period the answer covers so a count of 0 is a bounded claim. long_liquidations and short_liquidations are event COUNTS; long_usd and short_usd carry the dollar split. A long is force-closed by selling, so sell-side events are long liquidations.",
        "tags": [
          "market"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Liquidation events with aggregate stats",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/LiquidationLane"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/analytics/signals": {
      "get": {
        "operationId": "getSignalLedgerFlags",
        "summary": "Get raw fired signal-ledger flags (whale spikes, funding extremes, squeeze flips, liquidation cascades, flow divergence, and more)",
        "description": "Returns raw fired flag rows from the signal ledger: fire-time price/magnitude snapshot plus later h1/h24/h72 price outcomes. Rows are logged live at fire time and never recomputed or reshaped at read time or backfilled. Descriptive history only, no forecast language.",
        "tags": [
          "analytics"
        ],
        "x-tier": "all",
        "x-credits": 50,
        "parameters": [
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 48,
              "maximum": 168
            },
            "description": "Lookback window in hours"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 60,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fired signal-ledger rows, with meta.depth_note = 'fire-time rows, never backfilled; live since 2026-07-13' and meta.types listing the 8 flag type codes",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FlagRow"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/analytics/whale-trades": {
      "get": {
        "operationId": "getWhaleTrades",
        "summary": "Get large (whale) trades for a pair",
        "description": "Returns trades above a USD threshold, useful for detecting institutional activity and smart money flow.",
        "tags": [
          "analytics"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            }
          },
          {
            "name": "min_size_usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 50000
            },
            "description": "Minimum trade size in USD"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Whale trades with net flow analysis",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/signals/{type}/{coin}": {
      "get": {
        "operationId": "getSignalHistoryByTypeAndCoin",
        "summary": "Get every historical firing of one signal type on one coin",
        "description": "Returns the full firing history for a single signal type on a single coin, verbatim ledger rows (never recomputed at read time), each with its fire-time snapshot and later outcomes.",
        "tags": [
          "analytics"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "whale-spike",
                "funding-extreme",
                "squeeze-flip",
                "liq-cascade",
                "flow-divergence",
                "major-pctile",
                "major-block",
                "deriv-record"
              ]
            },
            "description": "Signal type code (underscore alert-rule aliases are also accepted)"
          },
          {
            "name": "coin",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z0-9]{1,12}$"
            },
            "description": "Coin symbol, e.g. BTC"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Signal firing history, with meta.depth_note = 'fire-time rows, never backfilled; live since 2026-07-13'",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Unknown signal type, or coin does not match ^[A-Z0-9]{1,12}$",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/whales/tape": {
      "get": {
        "operationId": "getWhaleTape",
        "summary": "Get the merged CEX + on-chain DEX whale tape",
        "description": "Returns merged CEX and on-chain DEX whale trades, newest first, each row tagged source: 'cex' or 'dex'. This is the full Pro-shape feed: no delay filter and no $1M floor. Hot window is ~7 days.",
        "tags": [
          "whales"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter by base coin symbol, e.g. BTC"
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "cex",
                "dex",
                "all"
              ],
              "default": "all"
            }
          },
          {
            "name": "min_usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 500
            }
          },
          {
            "name": "since_ms",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Only return trades at or after this epoch-ms timestamp"
          }
        ],
        "responses": {
          "200": {
            "description": "Whale trades array, with meta.depth_note = 'hot window ~7 days; rows exist since 2026-07-13 (CEX) / rolling 48h (DEX)'",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/whales/flow-history": {
      "get": {
        "operationId": "getWhaleFlowHistory",
        "summary": "Get a coin's daily whale-flow history",
        "description": "Daily whale-flow series for one coin from the gold log: total, buy and sell USD per UTC day, oldest first. A day only appears when capture was verifiably up; the window grows as the log does (days exist since 2026-07-07). Costs 30 credits.",
        "tags": [
          "whales"
        ],
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Coin symbol, e.g. BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Daily flow series: { coin, since_day, valid_days, as_of_ms, days: [{ date, total_usd, buy_usd, sell_usd }] }",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No logged history for this coin yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-credits": 30,
        "x-tier": "all"
      }
    },
    "/whales/context": {
      "get": {
        "operationId": "getWhaleContext",
        "summary": "Get vs-own-history whale-flow context",
        "description": "Per-coin derived stats: rolling 24h flow as a multiple of the coin's own logged daily average, N-day high, buy share now vs 7d/30d, net 24h flow, plus market breadth (how many covered coins run hot). Windows are each coin's real logged days. Omit coin for the full covered map. Costs 20 credits.",
        "tags": [
          "whales"
        ],
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Coin symbol, e.g. BTC; omit for all covered coins"
          }
        ],
        "responses": {
          "200": {
            "description": "Context stats: { as_of_ms, since_day, valid_days, breadth, coin?, stats?|coins? }. For a single coin that is permanently excluded by design (stablecoin or wrapped/staked asset, e.g. USDT or WBTC), this is still a 200: stats is null and the payload instead carries excluded: true, reason: \"stablecoin_or_wrapped\", and a human-readable message explaining why that coin never gets context. A coin merely below the coverage/volume gates (context not built up yet) is a 404 instead, not this shape.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Coin below the coverage or volume gates (not yet enough logged history). A coin excluded by design instead returns 200 with stats: null -- see the 200 response above.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-credits": 20,
        "x-tier": "all"
      }
    },
    "/whales/radar": {
      "get": {
        "operationId": "getWhaleRadar",
        "summary": "Get the Smart Money Radar (per-coin whale flow vs baseline)",
        "description": "Returns the full Pro-shape Smart Money Radar: every coin's whale flow vs its own baseline across 1h, 4h, and 24h windows, unblurred.",
        "tags": [
          "whales"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "responses": {
          "200": {
            "description": "Radar windows (1h/4h/24h), generatedAt, and building flag",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/whales/flow/{coin}": {
      "get": {
        "operationId": "getWhaleFlow",
        "summary": "Get hourly CEX/DEX buy-sell USD flow buckets for one coin",
        "description": "Returns hourly buy/sell USD buckets (CEX and DEX split) for one coin over a rolling 30-day window, verbatim.",
        "tags": [
          "whales"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "parameters": [
          {
            "name": "coin",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Coin symbol, e.g. BTC"
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 720,
              "maximum": 720
            },
            "description": "Lookback window in hours (max 720 = 30 days)"
          }
        ],
        "responses": {
          "200": {
            "description": "Hourly flow rows, with meta.depth_note = '30-day rolling hourly window'",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/news/summary": {
      "get": {
        "operationId": "getNewsSummary",
        "summary": "Get AI-generated news summary for a cryptocurrency",
        "description": "Returns an AI-generated market briefing with sentiment analysis, key bullet points, and a watch level. Built from recent headlines",
        "tags": [
          "news"
        ],
        "x-tier": "all",
        "x-credits": 50,
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC",
              "enum": [
                "BTC",
                "ETH",
                "SOL",
                "XRP",
                "DOGE",
                "ADA",
                "AVAX",
                "MATIC",
                "LINK",
                "DOT",
                "MACRO"
              ]
            },
            "description": "Coin symbol or MACRO for macro/economic news"
          }
        ],
        "responses": {
          "200": {
            "description": "AI news summary with sentiment",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/news/headlines": {
      "get": {
        "operationId": "getNewsHeadlines",
        "summary": "Get latest crypto news headlines",
        "description": "Returns recent news headlines from Google News for a specific cryptocurrency.",
        "tags": [
          "news"
        ],
        "x-tier": "all",
        "x-credits": 10,
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "News headlines array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/news/sentiment": {
      "get": {
        "operationId": "getNewsSentiment",
        "summary": "Get AI sentiment analysis for a coin + macro",
        "description": "Returns AI-computed sentiment (bullish/bearish/neutral/mixed) with a score from -100 to +100 for both the specific coin and overall macro environment.",
        "tags": [
          "news"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sentiment analysis for coin and macro",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/news/ohlc": {
      "get": {
        "operationId": "getOHLC",
        "summary": "Get 7-day hourly OHLC candle data",
        "description": "Returns 7 days of hourly OHLC (Open, High, Low, Close, Volume) candle data for a coin, with computed stats (24h change, 7d change, high/low).",
        "tags": [
          "news"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OHLC candle data with stats",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/overview": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "operationId": "getPublicMarketOverview",
        "summary": "Crypto market overview backing the homepage (free, no auth)",
        "description": "Merges the ~250 streamed coins (rich derivatives/whale data) with the ~3,000-coin catalog into one tab-filtered, sorted, paged list, plus 24h totals and the market regime. Fully free, no auth, no gating, browser rate-limited.",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": 0,
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Search by coin symbol/name"
          },
          {
            "name": "tab",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "live",
                "gainers",
                "losers"
              ],
              "default": "all"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "vol",
                "change",
                "price",
                "mcap",
                "oi",
                "funding",
                "liq",
                "whale",
                "name"
              ],
              "default": "vol"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "desc"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paged market overview rows, 24h totals, and market regime",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/crypto-whales": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "operationId": "getPublicCryptoWhales",
        "summary": "Recent $100K+ exchange whale trades (free, no auth)",
        "description": "Recent $100K+ whale trades across all 18 exchanges. Anonymous callers get BTC/USD live; everything else is delayed 15 minutes (response includes freePairs + delayedMinutes + bigPrintLiveFree). A logged-in free account adds every $1M+ trade on any pair live; the free MCP server also serves live $1M+ trades. A logged-in Pro webapp session sees everything live; this is a browser-rate-limited endpoint, not part of the credit/subscription API.",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": 0,
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 200,
              "maximum": 500
            },
            "description": "Anonymous/free callers are capped at 100. A logged-in Pro webapp session can go up to 500."
          },
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional base-symbol filter, e.g. BTC (alias: base)"
          }
        ],
        "responses": {
          "200": {
            "description": "Whale trades array, plus freePairs/delayedMinutes for anonymous callers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WhaleTrade"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/onchain-whales": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "operationId": "getPublicOnchainWhales",
        "summary": "Large on-chain DEX swaps on Ethereum, Base, and Arbitrum (free, no auth)",
        "description": "Large DEX swaps (Uniswap pools). Free tier: swaps >= $250,000. Pro webapp sessions see lower per-chain thresholds ($25K Base/Arbitrum, $100K Ethereum).",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": 0,
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 200,
              "maximum": 200
            }
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ethereum",
                "base",
                "arbitrum"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "On-chain whale swaps array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/onchain-top-tokens": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "operationId": "getPublicOnchainTopTokens",
        "summary": "Per-chain top-tokens board (free, no auth)",
        "description": "Per-chain top-tokens board (price, volume, TVL), refreshed hourly. Free tier: top 5 tokens per chain. Pro webapp sessions get the full top-50 board.",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Top tokens per chain",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TokenRow"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/onchain-pair-stats": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "operationId": "getPublicOnchainPairStats",
        "summary": "On-chain stats and recent DEX swaps matched to a trading pair (free, no auth)",
        "description": "On-chain stats and recent DEX swaps matched to a trading pair's base token (e.g. BTC/USD matches WBTC/cbBTC pools). Free tier: stats + swaps >= $250K, no net flow. Pro webapp sessions get the full swap list (capped 50) plus 1h/24h buy/sell net flow.",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": 0,
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Trading pair, e.g. BTC/USD"
          }
        ],
        "responses": {
          "200": {
            "description": "Matched token stats and recent swaps",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "pair param required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/stocks/overview": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "operationId": "getPublicStocksOverview",
        "summary": "Stocks market overview backing /stocks (free, no auth)",
        "description": "Indices (SPY/QQQ/DIA/IWM), gainers, losers, the full ~230-ticker AI-sector universe, and the market regime. Fully free, no auth, no gating.",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Indices, gainers, losers, universe rows, and regime",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "MCP server: JSON-RPC 2.0 over streamable HTTP (keyless and free-plan calls not billed; paid-plan calls metered)",
        "description": "The Model Context Protocol server over streamable HTTP. Stateless: every POST is a fresh session. Two URLs, same tools: https://coinlobster.com/mcp/connector signs the user in over OAuth (a free account adds its watched coins in full; a paid plan is live), https://coinlobster.com/mcp is keyless (answers 30 minutes old). Registers 24 tools: coin_brief, market_now, whale_activity, whale_radar, market_screener, liquidations, traders, wallet, signals, situations, history, options, orderbook, news, sectors, big_catch, watch, my_alerts, watchlist_brief, what_followed, my_positions, my_week, my_access, coin_search. 41 older tool names still answer, each routed to the tool above that now owns it. whale_tape is a deprecated alias of whale_activity, still callable. 22 read-only tools plus two to manage your alerts and positions: watch and my_positions. Alerts are delivered to the caller's own CoinLobster account (paid plans; never to a URL given in the conversation). my_access reports what the calling connection can see, the caps in force on it and what lifts each one; it is free and never counted. No connected AI call is billed: 100 answers a day without an account, 200 a day with a free account (both 30 minutes old), a fair-use ceiling on a paid plan. The free connector answers BTC in full, a free account its watched coins too, and any other coin as a headline with its price, 24h change and news, over the last 24 hours. A paid plan (Pro $29 a month or $199 a year) answers every coin in full, live. Connected through the account (OAuth) it is fair use: up to 2,000 answers a day, nothing metered. A cl_ key in X-API-Key is the developer lane: each successful tools/call spends 20 to 100 credits, priced by workload, from the balance the REST API uses. Discovery (initialize, tools/list, ping), failed calls and no-data answers cost nothing. Descriptive market data only, no forecast language.",
        "tags": [
          "free"
        ],
        "security": [],
        "x-tier": "free",
        "x-credits": "0 keyless or on the free plan; 20 to 100 per tools/call on a paid plan, priced by workload",
        "parameters": [
          {
            "name": "X-API-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional: an active-subscription API key lifts free caps to the subscription tier's fuller shape"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "examples": {
                "initialize": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "initialize",
                    "params": {
                      "protocolVersion": "2025-11-25",
                      "capabilities": {},
                      "clientInfo": {
                        "name": "example-client",
                        "version": "1.0"
                      }
                    }
                  }
                },
                "tools/call": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/call",
                    "params": {
                      "name": "whale_trades",
                      "arguments": {
                        "coin": "BTC",
                        "limit": 20
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response (or an SSE stream, per Accept header)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Origin not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached (Retry-After header set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/history/derivatives": {
      "get": {
        "operationId": "getDerivativesHistory",
        "summary": "Get daily funding/OI/price/liquidation history for a pair",
        "description": "Daily derivatives history compacted from the recorded archive (since 2026-03-18; 120+ days on major pairs): funding rate avg/min/max per day, end-of-day open interest USD, daily OHLCV, and daily liquidation totals with the long/short split. Every point carries coverage evidence (n snapshots or hours of candles); absent days had no recorded data. Costs 30 credits.",
        "tags": [
          "market"
        ],
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC/USD"
            },
            "description": "Pair, e.g. BTC/USD"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 120,
              "maximum": 400
            },
            "description": "Trailing days to return"
          }
        ],
        "responses": {
          "200": {
            "description": "Daily series: { pair, funding: [{d, avg, min, max, n}], open_interest: [{d, usd, n}], price: [{d, o, h, l, c, v, hours}], liquidations: [{d, usd, n, longUsd, shortUsd}], coverage_note }",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No archived history for this pair",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-credits": 30,
        "x-tier": "all"
      }
    },
    "/history/whale-flow-daily": {
      "get": {
        "operationId": "getWhaleFlowDailyHistory",
        "summary": "Get daily whale buy/sell flow history for a coin",
        "description": "Daily whale flow per coin with the CEX/DEX split, compacted from the recorded gold archive (since 2026-06-18): buy USD, sell USD, CEX vs DEX share, trade count per UTC day. Absent days had no recorded whale flow. Costs 30 credits.",
        "tags": [
          "whales"
        ],
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "BTC"
            },
            "description": "Coin symbol, e.g. BTC"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 120,
              "maximum": 400
            },
            "description": "Trailing days to return"
          }
        ],
        "responses": {
          "200": {
            "description": "Daily series: { coin, days: [{d, buyUsd, sellUsd, cexUsd, dexUsd, count}], coverage_note }",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No archived whale-flow history for this coin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-credits": 30,
        "x-tier": "all"
      }
    },
    "/api/public/hyperliquid/whales": {
      "get": {
        "summary": "Hyperliquid whale prints (named wallets)",
        "description": "Recent whale-sized Hyperliquid fills with the WALLET ADDRESS on each print. Hyperliquid is the one venue whose public tape names the account on both sides of a fill, so each row is followable to a live book. Keyless.",
        "tags": [
          "Hyperliquid",
          "free"
        ],
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WhaleTrade"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/api/public/hyperliquid/board": {
      "get": {
        "summary": "Hyperliquid whale board",
        "description": "Tracked Hyperliquid whale accounts: equity, open notional, leverage, net bias, plus per-coin crowding. Keyless returns the top rows and an honest withheld count.",
        "tags": [
          "Hyperliquid",
          "free"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/api/public/hyperliquid/wallet/{address}": {
      "get": {
        "summary": "Hyperliquid wallet book",
        "description": "One account: live positions, equity, leverage, net bias, unrealized PnL and recent whale prints. Equity, positions and totals are the main market list; profile.dexBooks holds each builder-deployed list (stock, commodity and index markets such as xyz:NVDA) as its own book with its own collateral, never added into the main totals. The live book is public on Hyperliquid so it is keyless; computed history needs a plan.",
        "tags": [
          "Hyperliquid",
          "free"
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/HyperliquidPosition"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/api/public/hyperliquid/context": {
      "get": {
        "summary": "Hyperliquid per-market context",
        "description": "Per-market Hyperliquid context rows.",
        "tags": [
          "Hyperliquid",
          "free"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/defi/summary": {
      "get": {
        "summary": "DeFi / on-chain summary",
        "description": "Per-chain 24h DEX volume and TVL, highest-volume tokens, and whale swap activity across Ethereum, Base and Arbitrum.",
        "tags": [
          "DeFi"
        ],
        "x-tier": "all",
        "x-credits": 30,
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/defi/top-tokens": {
      "get": {
        "summary": "Top on-chain tokens by volume",
        "description": "Highest-volume tokens per chain with price, 24h change, volume and TVL.",
        "tags": [
          "DeFi"
        ],
        "x-tier": "all",
        "x-credits": 20,
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TokenRow"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/public/defi-liquidations": {
      "get": {
        "summary": "DeFi lending liquidations",
        "description": "Lending liquidations from Aave V3 on Ethereum, Arbitrum and Base. A third party repaid the debt and seized the collateral, so both wallets are named. Distinct from a perp liquidation and never summed with one. count and total_usd cover exactly the rows returned, and the window field states the period those rows span: it is a page sum, not a fixed 24h total. The 24h lending figure lives on /api/public/liquidations. Aave profitUSD is broken upstream and is never reported.",
        "tags": [
          "DeFi",
          "free"
        ],
        "parameters": [
          {
            "name": "chain",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "protocol",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/LiquidationLane"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/api/public/liquidations": {
      "get": {
        "summary": "Market-wide liquidations",
        "description": "Every force-closed position across the market in one call. perp_liquidations combines the CEX futures venues we record with Hyperliquid (perp_liquidations.venues names the ones that reported in the window, and venue_coverage says whether that count is a declared list or what the window observed): 24h dollars and counts split long vs short, an hourly series so a cascade is locatable, top coins, and the biggest single event. named_liquidations lists the Hyperliquid wallets that were closed out, which no other venue publishes. lending_liquidations is a SEPARATE lane (an on-chain debt repaid and the collateral seized) and must never be added to the perp numbers. A long is force-closed by selling, so long dollars are sell-side pressure. The Hyperliquid share is a sample of that venue, not its full liquidation record, so perp totals are a floor.",
        "tags": [
          "Whales",
          "free"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/LiquidationLane"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/api/public/signals": {
      "get": {
        "summary": "Signal ledger (fired flags with outcomes)",
        "description": "Fired signal-ledger rows over plain HTTP, logged live and never backfilled. Free, matching what the browser and the MCP flag_outcomes tool already give away.",
        "tags": [
          "Free",
          "free"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "coin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FlagRow"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/api/public/coverage": {
      "get": {
        "summary": "Archive coverage manifest",
        "description": "Which pairs and coins have recorded history, and since when. Absent means never recorded, which is not the same as zero.",
        "tags": [
          "Free",
          "free"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-credits": 0
      },
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ]
    },
    "/watches": {
      "post": {
        "tags": [
          "Watches"
        ],
        "operationId": "createWatch",
        "summary": "Arm a standing watch (20 credits)",
        "description": "Registers a standing watch that POSTs the fact plus its evidence to your webhook when it fires. Active-subscription keys only; Pro arms 10 active watches, counted across the account. GET and DELETE are free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "coin",
                  "trigger",
                  "webhook_url"
                ],
                "properties": {
                  "coin": {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{1,12}$",
                    "example": "BTC"
                  },
                  "trigger": {
                    "type": "string",
                    "enum": [
                      "radar_unusual",
                      "flag_fired",
                      "funding_band"
                    ]
                  },
                  "band": {
                    "type": "string",
                    "enum": [
                      "record high",
                      "record low",
                      "top 5%",
                      "bottom 5%"
                    ],
                    "description": "Required when trigger is funding_band, ignored otherwise."
                  },
                  "webhook_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "HTTPS only. Resolved and checked against private address ranges at save time and again at send time."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_coin, invalid_trigger or invalid_band",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Active developer plan required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Watch limit reached",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Watches"
        ],
        "operationId": "listWatches",
        "summary": "List the active watches on this key (free)",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Active developer plan required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/watches/{id}": {
      "delete": {
        "tags": [
          "Watches"
        ],
        "operationId": "deleteWatch",
        "summary": "Remove a watch (free)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "description": "Endpoint-specific payload. Every field it carries is documented in llms-full.txt and returned by /discover."
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Active developer plan required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "watch_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/defi-summary": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "tags": [
          "free"
        ],
        "operationId": "api_public_defi_summary",
        "summary": "DEX volume and TVL per chain (free)",
        "description": "Aggregate DEX activity across Ethereum, Base and Arbitrum with the top tokens. Advertised in llms.txt and by the published skills, and documented nowhere until now.",
        "security": [],
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "chains": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "top_tokens": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TokenRow"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (60/min per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/whale-radar": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "tags": [
          "free"
        ],
        "operationId": "api_public_whale_radar",
        "summary": "Coins with unusual whale flow right now (free)",
        "description": "The Smart Money Radar snapshot: which coins are moving unusually against THEIR OWN recent history, across 1h/4h/24h. multiple is per-coin and does not compare across coins.",
        "security": [],
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "generatedAt": {
                          "type": "integer"
                        },
                        "windows": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/RadarRow"
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (60/min per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/extremes": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "tags": [
          "free"
        ],
        "operationId": "api_public_extremes",
        "summary": "Pairs at records or top/bottom 5% vs their own history (free)",
        "description": "Daily scan of every recorded pair for records and 5% extremes in funding, open interest and liquidations, measured against that pair own recorded days, with next-day outcome stats where enough past events exist.",
        "security": [],
        "x-credits": 0,
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "records": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "top5": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (60/min per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/whale-context": {
      "servers": [
        {
          "url": "https://coinlobster.com",
          "description": "Free public surface (not under /api/ai/v1)"
        }
      ],
      "get": {
        "tags": [
          "free"
        ],
        "operationId": "api_public_whale_context",
        "summary": "Is this coin flow unusual for THIS coin (free)",
        "description": "Per-coin whale flow judged against that coin own logged history: multiple of its daily average, N-day-high flags, and buy share now versus the trailing week.",
        "security": [],
        "x-credits": 0,
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "BTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "data"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "coin": {
                          "type": "string"
                        },
                        "multiple": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "hoursOfHistory": {
                          "type": "integer"
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (60/min per IP)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    }
  }
}
