{
  "openapi": "3.1.0",
  "info": {
    "title": "Ticker Quotes",
    "summary": "Real-time stock quotes and daily price history",
    "description": "Last price, bid, ask, and volume for listed equities, and daily open-high-low-close history going back 20 years.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://pay-servicerouter.agents.bakingbad.dev/service/ticker-quotes"
    }
  ],
  "security": [
    {
      "paymentKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "paymentKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A Service Router payment key, such as sr_live_…. Or pay per call with x402 or MPP."
      }
    }
  },
  "paths": {
    "/quote/{symbol}": {
      "get": {
        "operationId": "getQuote",
        "summary": "Latest quote",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": "0.0005",
          "currency": "USD",
          "methods": [
            "credits"
          ]
        },
        "responses": {
          "200": {
            "description": "OK. Paid calls carry Servicerouter-Receipt, PAYMENT-RESPONSE, or Payment-Receipt."
          },
          "402": {
            "description": "Payment required: the answer lists credits, x402, and MPP options."
          }
        }
      }
    },
    "/history/{symbol}": {
      "get": {
        "operationId": "getHistory",
        "summary": "Daily OHLC history",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment-info": {
          "price": "0.002",
          "currency": "USD",
          "methods": [
            "credits",
            "x402",
            "mpp"
          ]
        },
        "responses": {
          "200": {
            "description": "OK. Paid calls carry Servicerouter-Receipt, PAYMENT-RESPONSE, or Payment-Receipt."
          },
          "402": {
            "description": "Payment required: the answer lists credits, x402, and MPP options."
          }
        }
      }
    }
  }
}
