{
  "openapi": "3.1.0",
  "info": {
    "title": "Basis Desk public API",
    "version": "1.0.0",
    "description": "Free, read-only crypto market data from Basis Desk: live prices, market snapshot, movers, 24h sparklines and large on-chain transfers. CORS-enabled, cached at the edge. For news search and articles use the MCP server at /mcp (see /developers). Attribution: Basis Desk (basisdesk.news).",
    "contact": {
      "name": "Basis Desk",
      "email": "hello@basisdesk.news",
      "url": "https://basisdesk.news/developers"
    },
    "termsOfService": "https://basisdesk.news/legal/terms"
  },
  "servers": [
    {
      "url": "https://basisdesk.news"
    }
  ],
  "paths": {
    "/api/v1/market/ticker": {
      "get": {
        "operationId": "getTicker",
        "summary": "Pinned top assets with 24h change, global stats, Fear & Greed, gas",
        "responses": {
          "200": {
            "description": "Ticker payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/market/snapshot": {
      "get": {
        "operationId": "getMarketSnapshot",
        "summary": "Full market snapshot (~60 assets): prices refreshed every minute, 1h/24h/7d change, market caps, dominance, sentiment, fees",
        "responses": {
          "200": {
            "description": "Market snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/market/movers": {
      "get": {
        "operationId": "getMovers",
        "summary": "Top gainers and losers of the last 24 hours",
        "responses": {
          "200": {
            "description": "Movers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/market/spark/{id}": {
      "get": {
        "operationId": "getSparkline",
        "summary": "24h price series (5-minute points) for one asset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "CoinGecko-style asset id, e.g. bitcoin"
          }
        ],
        "responses": {
          "200": {
            "description": "Sparkline",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/whales": {
      "get": {
        "operationId": "getWhaleTransfers",
        "summary": "Latest large on-chain transfers (Ethereum ≥ $5M, Bitcoin ≥ 100 BTC) with exchange labels",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transfers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}