{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradingpal-io/json-schema/tradingpal-io-index-schema.json",
  "title": "Index",
  "description": "Where everything is, for an agent that lands on the base URL.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradingpal-io-openapi.json#/components/schemas/Index",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The API's name."
    },
    "api_version": {
      "type": "string",
      "description": "The contract version, v1."
    },
    "description": {
      "type": "string",
      "description": "One sentence on what the API serves."
    },
    "docs_url": {
      "type": "string",
      "description": "The developer docs, where keys are created.",
      "format": "uri"
    },
    "llms_txt": {
      "type": "string",
      "description": "URL of the agent reference (llms.txt).",
      "format": "uri"
    },
    "openapi": {
      "type": "string",
      "description": "URL of this OpenAPI document.",
      "format": "uri"
    },
    "skill": {
      "type": "string",
      "description": "URL of the installable SKILL.md.",
      "format": "uri"
    },
    "auth": {
      "type": "object",
      "description": "How to authenticate.",
      "properties": {
        "header": {
          "type": "string",
          "description": "The Authorization header to send with a key."
        },
        "keys_url": {
          "type": "string",
          "description": "Where to create a key.",
          "format": "uri"
        },
        "client_header": {
          "type": "string",
          "description": "The optional X-TradingPal-Client header, which names the calling agent or script in the usage log."
        }
      }
    },
    "mcp": {
      "type": "object",
      "description": "The MCP server and how to connect to it.",
      "properties": {
        "url": {
          "type": "string",
          "description": "The MCP endpoint.",
          "format": "uri"
        },
        "transport": {
          "type": "string",
          "description": "The MCP transport; streamable-http."
        },
        "auth": {
          "type": "string",
          "description": "How the MCP server authenticates: the same Authorization header, optional for the demo tools."
        },
        "install": {
          "type": "object",
          "description": "Copy-and-paste install commands per client.",
          "properties": {
            "claude_code": {
              "type": "string",
              "description": "The claude mcp add command."
            },
            "codex": {
              "type": "string",
              "description": "The codex mcp add command."
            }
          }
        }
      }
    },
    "demo": {
      "type": "object",
      "description": "The keyless demo.",
      "properties": {
        "symbols": {
          "type": "array",
          "description": "The demo symbols.",
          "items": {
            "type": "string",
            "description": "Exchange symbol, upper case."
          }
        },
        "patterns_url": {
          "type": "string",
          "description": "The demo patterns route for the first demo symbol.",
          "format": "uri"
        },
        "families_url": {
          "type": "string",
          "description": "The keyless families route.",
          "format": "uri"
        }
      }
    },
    "limits": {
      "type": "object",
      "description": "Rate limits.",
      "properties": {
        "requests_per_minute": {
          "type": "integer",
          "description": "Per-key burst limit, requests per minute (60)."
        },
        "requests_per_day": {
          "type": "integer",
          "description": "Per-key daily limit, requests per day (10,000)."
        },
        "keyless_per_minute_per_ip": {
          "type": "integer",
          "description": "Limit for calls without a key, requests per minute per IP address (30)."
        }
      }
    },
    "disclaimer": {
      "type": "string",
      "description": "The educational-use disclaimer."
    }
  }
}