{
 "openapi": "3.0.0",
 "info": {
  "title": "SI Exchange - Super Intelligence Exchange API",
  "version": "1.0.0",
  "description": "Non-custodial multi-chain swap calldata engine. Returns ready-to-sign swap transactions on Solana, Base, Ethereum, Polygon and Robinhood Chain; the exchange never holds keys and never broadcasts. Launch-set coins (MUSKOX, ARENA, SOLV, AGWC, GITLAWB) trade free; arbitrary token pairs cost 0.02 USDC/query via x402 on Base L2.",
  "x-payment-required": {
   "asset": "USDC",
   "amount": "0.02",
   "network": "base",
   "payTo": "0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03"
  }
 },
 "servers": [
  {
   "url": "https://siexchange.lol"
  }
 ],
 "x-facilitator": "https://x402-agent-pay.com/facilitator",
 "components": {
  "securitySchemes": {
   "x402": {
    "type": "apiKey",
    "in": "header",
    "name": "X-Payment",
    "description": "x402 payment via https://x402-agent-pay.com/facilitator. 0.02 USDC on Base L2 for arbitrary token pairs; launch-set coins are free."
   }
  }
 },
 "security": [
  {
   "x402": []
  }
 ],
 "paths": {
  "/quote": {
   "get": {
    "summary": "Free live swap quote (any chain, any pair)",
    "x-price-usdc": "0",
    "parameters": [
     {
      "name": "chain",
      "in": "query",
      "schema": {
       "type": "string"
      },
      "description": "solana | base | ethereum | polygon | robinhood"
     },
     {
      "name": "tokenIn",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "tokenOut",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "amountIn",
      "in": "query",
      "schema": {
       "type": "string"
      },
      "description": "raw integer units"
     }
    ],
    "responses": {
     "200": {
      "description": "Quote with tier and route"
     }
    }
   }
  },
  "/calldata": {
   "post": {
    "summary": "Ready-to-sign swap transaction (free for launch-set coins; $0.02 for arbitrary pairs)",
    "x-price-usdc": "0.02",
    "security": [
     {
      "x402": []
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "chain": {
          "type": "string"
         },
         "tokenIn": {
          "type": "string"
         },
         "tokenOut": {
          "type": "string"
         },
         "amountIn": {
          "type": "string"
         },
         "taker": {
          "type": "string",
          "description": "Checksummed EVM address or Solana pubkey that signs"
         }
        },
        "required": [
         "chain",
         "tokenIn",
         "tokenOut",
         "amountIn",
         "taker"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Unsigned swap transaction for the taker to sign"
     },
     "402": {
      "description": "Payment required - x402 USDC on Base L2 for arbitrary token pairs"
     }
    }
   }
  }
 }
}