{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphaai/json-schema/alphaai-radar-snapshot-schema.json",
  "title": "SnapshotPreviewDTO",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphaai-radar-api-openapi.yml#/components/schemas/RadarSnapshot",
  "properties": {
    "snapshot_id": {
      "title": "Snapshot Id",
      "type": "string"
    },
    "methodology_version": {
      "title": "Methodology Version",
      "type": "string"
    },
    "research_only": {
      "default": true,
      "title": "Research Only",
      "type": "boolean"
    },
    "point_in_time": {
      "default": false,
      "title": "Point In Time",
      "type": "boolean"
    },
    "as_of": {
      "format": "date-time",
      "title": "As Of",
      "type": "string"
    },
    "preview_reference_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Preview Reference At"
    },
    "freshness": {
      "$ref": "#/$defs/RadarSnapshotFreshness"
    },
    "access": {
      "$ref": "#/$defs/RadarSignalAccess"
    },
    "window": {
      "enum": [
        "4h",
        "24h"
      ],
      "title": "Window",
      "type": "string"
    },
    "parameters": {
      "$ref": "#/$defs/RadarCalculationParams"
    },
    "limitations": {
      "items": {
        "type": "string"
      },
      "title": "Limitations",
      "type": "array"
    },
    "input_hashes": {
      "additionalProperties": {
        "type": "string"
      },
      "title": "Input Hashes",
      "type": "object"
    },
    "universe": {
      "title": "Universe",
      "type": "integer"
    },
    "summary": {
      "$ref": "#/$defs/RadarSnapshotSummary"
    },
    "watchlist_coverage": {
      "anyOf": [
        {
          "$ref": "#/$defs/RadarWatchlistCoverage"
        },
        {
          "type": "null"
        }
      ]
    },
    "total": {
      "title": "Total",
      "type": "integer"
    },
    "offset": {
      "title": "Offset",
      "type": "integer"
    },
    "next_offset": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Offset"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor"
    },
    "previous_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Cursor"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/RadarReading"
      },
      "title": "Results",
      "type": "array"
    },
    "event_context": {
      "$ref": "#/$defs/RadarContextSummary"
    }
  },
  "required": [
    "snapshot_id",
    "methodology_version",
    "as_of",
    "preview_reference_at",
    "freshness",
    "access",
    "window",
    "parameters",
    "limitations",
    "input_hashes",
    "universe",
    "summary",
    "watchlist_coverage",
    "total",
    "offset",
    "next_offset",
    "next_cursor",
    "previous_cursor",
    "results"
  ],
  "type": "object",
  "$defs": {
    "RadarCalculationParams": {
      "properties": {
        "effective_at": {
          "title": "Effective At",
          "type": "integer"
        },
        "window_seconds": {
          "title": "Window Seconds",
          "type": "integer"
        },
        "baseline_seconds": {
          "title": "Baseline Seconds",
          "type": "integer"
        },
        "half_life_seconds": {
          "title": "Half Life Seconds",
          "type": "integer"
        },
        "min_relevance": {
          "title": "Min Relevance",
          "type": "integer"
        },
        "max_story_tickers": {
          "title": "Max Story Tickers",
          "type": "integer"
        },
        "prior_stories": {
          "title": "Prior Stories",
          "type": "number"
        },
        "min_baseline_stories": {
          "title": "Min Baseline Stories",
          "type": "integer"
        },
        "min_baseline_days": {
          "title": "Min Baseline Days",
          "type": "integer"
        },
        "min_sentiment_stories": {
          "title": "Min Sentiment Stories",
          "type": "integer"
        },
        "min_sentiment_coverage": {
          "title": "Min Sentiment Coverage",
          "type": "number"
        },
        "spike_tail": {
          "title": "Spike Tail",
          "type": "number"
        }
      },
      "required": [
        "effective_at",
        "window_seconds",
        "baseline_seconds",
        "half_life_seconds",
        "min_relevance",
        "max_story_tickers",
        "prior_stories",
        "min_baseline_stories",
        "min_baseline_days",
        "min_sentiment_stories",
        "min_sentiment_coverage",
        "spike_tail"
      ],
      "title": "RadarCalculationParams",
      "type": "object"
    },
    "RadarClusterContext": {
      "properties": {
        "window_start": {
          "format": "date",
          "title": "Window Start",
          "type": "string"
        },
        "window_end": {
          "format": "date",
          "title": "Window End",
          "type": "string"
        },
        "known_at": {
          "format": "date-time",
          "title": "Known At",
          "type": "string"
        },
        "buyers": {
          "title": "Buyers",
          "type": "integer"
        },
        "officer_director_buyers": {
          "title": "Officer Director Buyers",
          "type": "integer"
        },
        "pattern": {
          "const": "open_market",
          "default": "open_market",
          "title": "Pattern",
          "type": "string"
        },
        "filings_count": {
          "title": "Filings Count",
          "type": "integer"
        },
        "evidence": {
          "items": {
            "$ref": "#/$defs/RadarClusterFiling"
          },
          "title": "Evidence",
          "type": "array"
        },
        "evidence_truncated": {
          "title": "Evidence Truncated",
          "type": "boolean"
        }
      },
      "required": [
        "window_start",
        "window_end",
        "known_at",
        "buyers",
        "officer_director_buyers",
        "filings_count",
        "evidence",
        "evidence_truncated"
      ],
      "title": "RadarClusterContext",
      "type": "object"
    },
    "RadarClusterFiling": {
      "properties": {
        "accession_number": {
          "title": "Accession Number",
          "type": "string"
        },
        "filed_at": {
          "format": "date-time",
          "title": "Filed At",
          "type": "string"
        },
        "sec_url": {
          "title": "Sec Url",
          "type": "string"
        }
      },
      "required": [
        "accession_number",
        "filed_at",
        "sec_url"
      ],
      "title": "RadarClusterFiling",
      "type": "object"
    },
    "RadarCollection": {
      "properties": {
        "status": {
          "enum": [
            "healthy",
            "unverified"
          ],
          "title": "Status",
          "type": "string"
        },
        "reasons": {
          "items": {
            "type": "string"
          },
          "title": "Reasons",
          "type": "array"
        },
        "required_channels": {
          "items": {
            "type": "string"
          },
          "title": "Required Channels",
          "type": "array"
        }
      },
      "required": [
        "status",
        "reasons",
        "required_channels"
      ],
      "title": "RadarCollection",
      "type": "object"
    },
    "RadarContextSummary": {
      "description": "Context availability and timing for the selected snapshot, without ticker data.",
      "properties": {
        "status": {
          "default": "unavailable",
          "enum": [
            "available",
            "unavailable"
          ],
          "title": "Status",
          "type": "string"
        },
        "reason": {
          "anyOf": [
            {
              "enum": [
                "disabled",
                "missing",
                "stale",
                "future",
                "invalid",
                "read_failed"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "missing",
          "title": "Reason"
        },
        "as_of": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "As Of"
        },
        "generated_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Generated At"
        },
        "age_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Age Seconds"
        },
        "max_age_seconds": {
          "const": 300,
          "default": 300,
          "title": "Max Age Seconds",
          "type": "integer"
        },
        "filings_lookback_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Filings Lookback Days"
        },
        "cluster_lookback_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cluster Lookback Days"
        },
        "identity_scope": {
          "const": "issuer_cik",
          "default": "issuer_cik",
          "title": "Identity Scope",
          "type": "string"
        },
        "point_in_time": {
          "const": false,
          "default": false,
          "title": "Point In Time",
          "type": "boolean"
        }
      },
      "title": "RadarContextSummary",
      "type": "object"
    },
    "RadarEvidence": {
      "properties": {
        "uid": {
          "title": "Uid",
          "type": "string"
        },
        "title": {
          "title": "Title",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "source_domain": {
          "title": "Source Domain",
          "type": "string"
        },
        "time_published": {
          "format": "date-time",
          "title": "Time Published",
          "type": "string"
        }
      },
      "required": [
        "uid",
        "title",
        "url",
        "source_domain",
        "time_published"
      ],
      "title": "RadarEvidence",
      "type": "object"
    },
    "RadarFilingContext": {
      "properties": {
        "form": {
          "enum": [
            "8-K",
            "6-K"
          ],
          "title": "Form",
          "type": "string"
        },
        "accession_number": {
          "title": "Accession Number",
          "type": "string"
        },
        "filed_at": {
          "format": "date-time",
          "title": "Filed At",
          "type": "string"
        },
        "observed_at": {
          "format": "date-time",
          "title": "Observed At",
          "type": "string"
        },
        "sec_url": {
          "title": "Sec Url",
          "type": "string"
        },
        "news_uid": {
          "title": "News Uid",
          "type": "string"
        },
        "news_title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Article title frozen at the context cutoff.",
          "title": "News Title"
        },
        "news_published": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Article publication time for its AlphAI URL.",
          "title": "News Published"
        },
        "has_article": {
          "default": false,
          "description": "An enriched article existed before the context cutoff. False on older snapshots without metadata.",
          "title": "Has Article",
          "type": "boolean"
        },
        "items": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Items",
          "type": "array"
        },
        "primary_item": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Primary Item"
        },
        "event_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Event Date"
        },
        "kind": {
          "anyOf": [
            {
              "const": "earnings_release",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Kind"
        },
        "period_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Period Label"
        }
      },
      "required": [
        "form",
        "accession_number",
        "filed_at",
        "observed_at",
        "sec_url",
        "news_uid"
      ],
      "title": "RadarFilingContext",
      "type": "object"
    },
    "RadarReading": {
      "properties": {
        "ticker": {
          "title": "Ticker",
          "type": "string"
        },
        "sector": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sector"
        },
        "market": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Market"
        },
        "market_exposure_baseline": {
          "title": "Market Exposure Baseline",
          "type": "integer"
        },
        "market_exposure_current": {
          "title": "Market Exposure Current",
          "type": "integer"
        },
        "collection": {
          "$ref": "#/$defs/RadarCollection"
        },
        "stories": {
          "title": "Stories",
          "type": "integer"
        },
        "articles": {
          "title": "Articles",
          "type": "integer"
        },
        "outlets": {
          "title": "Outlets",
          "type": "integer"
        },
        "model_stories": {
          "title": "Model Stories",
          "type": "integer"
        },
        "model_outlets": {
          "title": "Model Outlets",
          "type": "integer"
        },
        "baseline_stories": {
          "title": "Baseline Stories",
          "type": "integer"
        },
        "baseline_active_days": {
          "title": "Baseline Active Days",
          "type": "integer"
        },
        "stories_per_window_unadjusted": {
          "title": "Stories Per Window Unadjusted",
          "type": "number"
        },
        "stories_expected": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stories Expected"
        },
        "tail_probability": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tail Probability"
        },
        "news_z": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "News Z"
        },
        "anomaly_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Anomaly Reason"
        },
        "candidate_news_spike": {
          "title": "Candidate News Spike",
          "type": "boolean"
        },
        "sent": {
          "$ref": "#/$defs/RadarSentiment"
        },
        "sent_prev": {
          "$ref": "#/$defs/RadarSentiment"
        },
        "sent_delta": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sent Delta"
        },
        "evidence_uids": {
          "items": {
            "type": "string"
          },
          "title": "Evidence Uids",
          "type": "array"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "evidence": {
          "items": {
            "$ref": "#/$defs/RadarEvidence"
          },
          "title": "Evidence",
          "type": "array"
        },
        "event_context": {
          "anyOf": [
            {
              "$ref": "#/$defs/RadarTickerContext"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "ticker",
        "sector",
        "market",
        "market_exposure_baseline",
        "market_exposure_current",
        "collection",
        "stories",
        "articles",
        "outlets",
        "model_stories",
        "model_outlets",
        "baseline_stories",
        "baseline_active_days",
        "stories_per_window_unadjusted",
        "stories_expected",
        "tail_probability",
        "news_z",
        "anomaly_reason",
        "candidate_news_spike",
        "sent",
        "sent_prev",
        "sent_delta",
        "evidence_uids",
        "name",
        "evidence"
      ],
      "title": "RadarReading",
      "type": "object"
    },
    "RadarSentiment": {
      "properties": {
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        },
        "usable_stories": {
          "title": "Usable Stories",
          "type": "integer"
        },
        "coverage": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Coverage"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reason"
        }
      },
      "required": [
        "value",
        "usable_stories",
        "coverage",
        "reason"
      ],
      "title": "RadarSentiment",
      "type": "object"
    },
    "RadarSignalAccess": {
      "properties": {
        "tier": {
          "enum": [
            "free",
            "basic",
            "pro"
          ],
          "title": "Tier",
          "type": "string"
        },
        "delay_seconds": {
          "title": "Delay Seconds",
          "type": "integer"
        },
        "scope": {
          "enum": [
            "market",
            "watchlist"
          ],
          "title": "Scope",
          "type": "string"
        },
        "watchlist_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Watchlist Count"
        },
        "watchlist_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Watchlist Limit"
        }
      },
      "required": [
        "tier",
        "delay_seconds",
        "scope",
        "watchlist_count",
        "watchlist_limit"
      ],
      "title": "RadarSignalAccess",
      "type": "object"
    },
    "RadarSnapshotFreshness": {
      "properties": {
        "mode": {
          "default": "historical_preview",
          "enum": [
            "historical_preview",
            "live"
          ],
          "title": "Mode",
          "type": "string"
        },
        "effective_delay_seconds": {
          "title": "Effective Delay Seconds",
          "type": "integer"
        },
        "generated_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Generated At"
        },
        "source_watermark": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Watermark"
        },
        "source_checked_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Checked At"
        },
        "unavailable_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "Generation time and source watermarks were not recorded in this export.",
          "title": "Unavailable Reason"
        }
      },
      "required": [
        "effective_delay_seconds"
      ],
      "title": "RadarSnapshotFreshness",
      "type": "object"
    },
    "RadarSnapshotSummary": {
      "properties": {
        "active_tickers": {
          "title": "Active Tickers",
          "type": "integer"
        },
        "scored_tickers": {
          "title": "Scored Tickers",
          "type": "integer"
        },
        "elevated_tickers": {
          "title": "Elevated Tickers",
          "type": "integer"
        },
        "verified_candidates": {
          "title": "Verified Candidates",
          "type": "integer"
        },
        "collection_unverified": {
          "title": "Collection Unverified",
          "type": "integer"
        }
      },
      "required": [
        "active_tickers",
        "scored_tickers",
        "elevated_tickers",
        "verified_candidates",
        "collection_unverified"
      ],
      "title": "RadarSnapshotSummary",
      "type": "object"
    },
    "RadarTickerContext": {
      "properties": {
        "ticker": {
          "title": "Ticker",
          "type": "string"
        },
        "cik": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cik"
        },
        "status": {
          "enum": [
            "available",
            "unsupported",
            "unavailable"
          ],
          "title": "Status",
          "type": "string"
        },
        "reason": {
          "anyOf": [
            {
              "enum": [
                "non_sec_symbol",
                "unknown_symbol",
                "missing_cik",
                "issuer_changed"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Reason"
        },
        "filings_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Filings Count"
        },
        "filings": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RadarFilingContext"
          },
          "title": "Filings",
          "type": "array"
        },
        "cluster_buys_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cluster Buys Count"
        },
        "cluster_buys": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RadarClusterContext"
          },
          "title": "Cluster Buys",
          "type": "array"
        }
      },
      "required": [
        "ticker",
        "cik",
        "status"
      ],
      "title": "RadarTickerContext",
      "type": "object"
    },
    "RadarWatchlistCoverage": {
      "properties": {
        "no_recent_news": {
          "items": {
            "type": "string"
          },
          "title": "No Recent News",
          "type": "array"
        },
        "not_in_snapshot": {
          "items": {
            "type": "string"
          },
          "title": "Not In Snapshot",
          "type": "array"
        }
      },
      "required": [
        "no_recent_news",
        "not_in_snapshot"
      ],
      "title": "RadarWatchlistCoverage",
      "type": "object"
    }
  }
}