{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmdash/json-schema/farmdash-market-conditions-response-schema.json",
  "title": "MarketConditionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmdash-research-api-openapi.yml#/components/schemas/MarketConditionsResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "coin": {
      "type": "string"
    },
    "indicators": {
      "$ref": "#/$defs/TechnicalIndicators"
    },
    "strategyHint": {
      "type": "string",
      "enum": [
        "momentum_long",
        "momentum_short",
        "mean_reversion",
        "no_trade"
      ]
    },
    "timestamp": {
      "type": "integer"
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DustStormWarning"
      }
    }
  },
  "$defs": {
    "DustStormWarning": {
      "type": "object",
      "required": [
        "kind",
        "message"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "const": "dust_storm"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "TechnicalIndicators": {
      "type": "object",
      "properties": {
        "ema8": {
          "type": "number"
        },
        "ema34": {
          "type": "number"
        },
        "emaCross": {
          "type": "string",
          "enum": [
            "bullish",
            "bearish",
            "neutral"
          ]
        },
        "rsi": {
          "type": "number"
        },
        "macd": {
          "type": "number"
        },
        "macdSignal": {
          "type": "number"
        },
        "macdHistogram": {
          "type": "number"
        },
        "macdCross": {
          "type": "string",
          "enum": [
            "bullish_cross",
            "bearish_cross",
            "neutral"
          ]
        },
        "adx": {
          "type": "number"
        },
        "atr": {
          "type": "number"
        },
        "bbUpper": {
          "type": "number"
        },
        "bbMiddle": {
          "type": "number"
        },
        "bbLower": {
          "type": "number"
        },
        "bbWidth": {
          "type": "number"
        },
        "volumeRatio": {
          "type": "number"
        },
        "zScore": {
          "type": "number"
        }
      }
    }
  }
}