{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ribqa-com/json-schema/ribqa-com-signal-schema.json",
  "title": "Signal",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ribqa-com-openapi.yaml#/components/schemas/Signal",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "symbol": {
      "type": "string"
    },
    "direction": {
      "type": "string",
      "enum": [
        "long",
        "short"
      ]
    },
    "mode": {
      "type": "string",
      "enum": [
        "smc_only",
        "ind_only",
        "hybrid"
      ]
    },
    "entry": {
      "type": "number"
    },
    "tp": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "sl": {
      "type": "number"
    },
    "confidence": {
      "type": "number"
    },
    "regime": {
      "type": "string",
      "enum": [
        "Bull",
        "Bear",
        "Sideways",
        "Transition"
      ]
    },
    "confluence": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "weighted": {
            "type": "number"
          }
        }
      }
    },
    "rr": {
      "type": "number"
    },
    "investment_score": {
      "type": "number"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}