import React from 'react'; import { Settings, X } from 'lucide-react'; interface InsiderBlueprintModalProps { isOpen: boolean; onClose: () => void; } export default function InsiderBlueprintModal({ isOpen, onClose }: InsiderBlueprintModalProps) { React.useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') { onClose(); } }; if (isOpen) { window.addEventListener('keydown', handleKeyDown); } return () => { window.removeEventListener('keydown', handleKeyDown); }; }, [isOpen, onClose]); if (!isOpen) return null; return (
{/* Modal Header */}

Insider Trades - Operational Blueprint

System User Manual & Interface Mechanics

{/* Modal Body */}

Insider Trade Ingestion & Filters

Operational details of corporate insider trade tracking.

{/* Core Mechanics */}

1. SEC Form 4 Tracking

Monitors corporate insider purchases and sales filed on SEC Form 4. Concentrates on high-ranking corporate officers (CEO, CFO, COO) and board directors, whose trading behaviors exhibit historical correlation with forward stock performance.

2. Trade Size Filters

Filters transactions by absolute dollar size (prioritizing trades exceeding $100k) and percentage weight change relative to the insider's existing ownership stake. This helps eliminate routine stock option exercises and automated sales.

3. DEV_MODE Interception

When the offline shield is active, the `/api/insider` route short-circuits live FMP calls and serves a high-fidelity local database file to guarantee zero API consumption costs.

{/* Interface Specifications */}

Interface Layout & Mechanics

Insider Trades Ledger: Displays raw trade data: Tickers, Insider Names, Roles (CEO, Director, etc.), Buy/Sell transaction types, trade dates, shares traded, prices per share, and calculated total transaction values.

API Layer Status Badge: Displays the status in the top control bar, showing `🟢 LIVE API` or `🟡 DEV-ARCHIV AKTIV` depending on the environment shield.

); }