{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0xinsider-com/json-schema/0xinsider-com-suspicious-trade-schema.json",
  "title": "SuspiciousTrade",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0xinsider-com-insider-radar-api-openapi.yml#/components/schemas/SuspiciousTrade",
  "type": "object",
  "required": [
    "id",
    "suspicion_score",
    "severity",
    "trader",
    "market",
    "scores",
    "evidence",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Prefixed ID (rf_...)."
    },
    "suspicion_score": {
      "type": "number",
      "minimum": 60,
      "maximum": 100,
      "description": "Stored score that met the live flag threshold."
    },
    "severity": {
      "type": "string",
      "enum": [
        "flag"
      ],
      "description": "The live scorer persists one threshold class."
    },
    "trader": {
      "type": "object",
      "required": [
        "id",
        "address",
        "username"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "username": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "market": {
      "type": "object",
      "required": [
        "id",
        "condition_id",
        "title"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "condition_id": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Canonical market question when available."
        }
      }
    },
    "scores": {
      "type": "object",
      "required": [
        "timing",
        "edge",
        "size",
        "fresh_wallet"
      ],
      "properties": {
        "timing": {
          "type": [
            "number",
            "null"
          ],
          "description": "Null because the live scorer does not record this component."
        },
        "edge": {
          "type": [
            "number",
            "null"
          ],
          "description": "Null because the live scorer does not record this component."
        },
        "size": {
          "type": [
            "number",
            "null"
          ],
          "description": "Numeric evidence.size when recorded; otherwise null."
        },
        "fresh_wallet": {
          "type": [
            "number",
            "null"
          ],
          "description": "Numeric evidence.fresh when recorded; otherwise null."
        }
      }
    },
    "evidence": {
      "description": "Stored whale_alerts.suspicion_signals JSON from the scorer."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Stored trade timestamp."
    }
  }
}