{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outcometick-com/json-schema/outcometick-com-backtest-scope-schema.json",
  "title": "BacktestScope",
  "description": "Give from/to, or days (the most recent n backtestable days), or range.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outcometick-com-openapi.json#/components/schemas/BacktestScope",
  "type": "object",
  "properties": {
    "venue": {
      "type": "string",
      "enum": [
        "polymarket",
        "predict"
      ],
      "default": "polymarket"
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Base symbols, e.g. [\"BTC\"]"
    },
    "from": {
      "type": "string",
      "format": "date",
      "description": "UTC day, YYYY-MM-DD"
    },
    "to": {
      "type": "string",
      "format": "date",
      "description": "UTC day, YYYY-MM-DD"
    },
    "days": {
      "type": "integer",
      "minimum": 1
    },
    "range": {
      "type": "string",
      "enum": [
        "7 days",
        "30 days"
      ]
    },
    "sweep_cells": {
      "type": "integer",
      "minimum": 1,
      "default": 1
    }
  }
}