{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmdash/json-schema/farmdash-autopilot-risk-status-schema.json",
  "title": "AutopilotRiskStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmdash-autopilot-api-openapi.yml#/components/schemas/AutopilotRiskStatus",
  "type": "object",
  "properties": {
    "dailyPnlPct": {
      "type": "number"
    },
    "weeklyPnlPct": {
      "type": "number"
    },
    "drawdownPct": {
      "type": "number"
    },
    "openPositions": {
      "type": "integer"
    },
    "aggregateLeverage": {
      "type": "number"
    },
    "healthFactor": {
      "type": [
        "number",
        "null"
      ]
    },
    "liquidationBufferPct": {
      "type": [
        "number",
        "null"
      ]
    },
    "stablecoinDepegPct": {
      "type": [
        "number",
        "null"
      ]
    },
    "quoteDecayBps": {
      "type": [
        "number",
        "null"
      ]
    },
    "gasPerActionUsd": {
      "type": [
        "number",
        "null"
      ]
    },
    "alerts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "isTradingAllowed": {
      "type": "boolean"
    },
    "haltReason": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}