{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradingstrategies-work/json-schema/tradingstrategies-work-history-response-schema.json",
  "title": "HistoryResponse",
  "description": "Generic history container. Concrete `snapshots`-items vary per endpoint.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradingstrategies-work-openapi.yml#/components/schemas/HistoryResponse",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "format": "date"
    },
    "to": {
      "type": "string",
      "format": "date"
    },
    "days": {
      "type": "integer"
    },
    "snapshots": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "tier": {
      "$ref": "#/$defs/TierEnum"
    }
  },
  "$defs": {
    "TierEnum": {
      "type": "string",
      "enum": [
        "free",
        "api_pro",
        "api_power"
      ],
      "description": "Echo des aktuellen Tier des aufrufenden API-Keys."
    }
  }
}