{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simplefunctions-dev/json-schema/simplefunctions-dev-post-api-thesis-id-strategies-request-schema.json",
  "title": "PostApiThesisIdStrategiesRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/simplefunctions-dev-openapi-generated.yml#/components/schemas/PostApiThesisIdStrategiesRequest",
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string",
      "description": "SimpleFunctions API key"
    },
    "thesisId": {
      "type": "string",
      "description": "Thesis ID"
    },
    "marketId": {
      "type": "string",
      "description": "Market ticker"
    },
    "market": {
      "type": "string",
      "description": "Human-readable market name"
    },
    "direction": {
      "type": "string",
      "description": "`yes`|`no`"
    },
    "horizon": {
      "type": "string",
      "description": "`short`|`medium`|`long`"
    },
    "entryBelow": {
      "type": "number",
      "description": "`ask <= this` (cents)"
    },
    "entryAbove": {
      "type": "number",
      "description": "`ask >= this` (cents, for NO direction)"
    },
    "stopLoss": {
      "type": "number",
      "description": "`bid <= this` (cents)"
    },
    "takeProfit": {
      "type": "number",
      "description": "`bid >= this` (cents)"
    },
    "maxQuantity": {
      "type": "number",
      "description": "Total contracts cap (default 500)"
    },
    "perOrderQuantity": {
      "type": "number",
      "description": "Contracts per order (default 50)"
    },
    "softConditions": {
      "type": "string",
      "description": "LLM‑evaluated text condition"
    },
    "rationale": {
      "type": "string",
      "description": "Full logic description"
    }
  },
  "required": [
    "apiKey",
    "thesisId",
    "marketId",
    "market",
    "direction"
  ]
}