{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/resolvedmarkets-com/json-schema/resolvedmarkets-com-saved-strategy-schema.json",
  "title": "SavedStrategy",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/resolvedmarkets-com-strategies-api-openapi.yml#/components/schemas/SavedStrategy",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "spec": {
      "$ref": "#/$defs/StrategySpec"
    },
    "source": {
      "type": "string",
      "enum": [
        "builder",
        "agent",
        "template"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "StrategySpec": {
      "type": "object",
      "description": "Backtest strategy spec. Schema defined by `StrategySpecSchema` in the backend; tier-clamped before execution.",
      "additionalProperties": true
    }
  }
}