{
  "calculator": "trading-system-blueprinter",
  "title": "Trading System Blueprinter",
  "site": "AI Fin Hub",
  "input": {},
  "defaults_used": {
    "broker": "alpaca",
    "data": "alpaca",
    "llm": "claude-opus-5-5",
    "logging": "heartbeat-json",
    "risk": "fractional-kelly",
    "schedule": "launchd",
    "storage": "duckdb"
  },
  "result": {
    "selections": [
      {
        "category": "data",
        "label": "Data source",
        "optionId": "alpaca",
        "optionName": "Alpaca (free IEX or paid SIP)",
        "notes": "Best if you also trade on Alpaca."
      },
      {
        "category": "broker",
        "label": "Broker",
        "optionId": "alpaca",
        "optionName": "Alpaca",
        "notes": "Broker + data in one."
      },
      {
        "category": "llm",
        "label": "LLM layer",
        "optionId": "claude-opus-5-5",
        "optionName": "Claude Opus 5.5",
        "notes": "Frontier Anthropic model; $4 / $20 per 1M tokens, 1M context."
      },
      {
        "category": "storage",
        "label": "Storage",
        "optionId": "duckdb",
        "optionName": "DuckDB + Parquet",
        "notes": "Columnar, zero-setup, fast."
      },
      {
        "category": "risk",
        "label": "Risk engine",
        "optionId": "fractional-kelly",
        "optionName": "Fractional Kelly sizer (quarter Kelly cap)",
        "notes": "Sound default for calibrated models."
      },
      {
        "category": "logging",
        "label": "Logging + observability",
        "optionId": "heartbeat-json",
        "optionName": "Heartbeat JSON + Telegram alerts",
        "notes": "launchd-native, $0/mo, vacation-safe."
      },
      {
        "category": "schedule",
        "label": "Scheduler",
        "optionId": "launchd",
        "optionName": "launchd (macOS-native)",
        "notes": "Preferred on Mac. Zero external deps."
      }
    ],
    "mermaid": "flowchart LR\n  SCHED[\"launchd\"] -->|tick| DATA[\"alpaca\"]\n  DATA -->|bars / book events| NORM[Normalize + persist]\n  NORM --> STORE[\"duckdb\"]\n  STORE --> RESEARCH[\"claude-opus-5-5 · price-blind research\"]\n  RESEARCH -->|proposal + confidence| RISK[\"fractional-kelly\"]\n  RISK -->|sized order| EXEC[\"alpaca\"]\n  EXEC -->|fills + errors| LOG[\"heartbeat-json\"]\n  LOG --> STORE\n  LOG -.-> ALERT[Telegram / email]",
    "fileTree": "trading-system/\n├── README.md                    # start here\n├── .env.example                 # API keys (never commit real values)\n├── scripts/\n│   ├── fetch-bars.py            # data source → local duckdb\n│   ├── research.py              # LLM call (price-blind context builder)\n│   ├── decide.py                # risk sizing + decision logger\n│   ├── execute.py               # broker call (idempotent)\n│   └── heartbeat.py             # health probe + alert\n├── data/\n│   ├── heartbeat.json           # last-heartbeat timestamp (watchdog reads)\n│   ├── circuit.json             # {\"paused\": false, \"reason\": ...}\n│   └── tickers/                 # per-ticker markdown dossiers\n├── memory/\n│   └── decisions.jsonl          # append-only decision log\n├── plists/\n│   └── com.you.trader-*.plist   # launchd schedules\n├── tests/\n│   ├── test_research_no_price_leak.py\n│   ├── test_sizing_caps.py\n│   └── test_idempotent_orders.py\n└── pyproject.toml",
    "unknownCategories": [],
    "unknownOptions": []
  },
  "provenance": {
    "run": "https://aifinhub.io/api/run/trading-system-blueprinter",
    "page": "https://aifinhub.io/trading-system-blueprinter/",
    "methodology": "https://aifinhub.io/methodology/trading-system-blueprinter/",
    "contract": "https://aifinhub.io/contracts/trading-system-blueprinter.json",
    "engine": "https://aifinhub.io/engines/trading-system-blueprinter.js",
    "engine_sha256": "a0f13a76bd128746c4be8fead5378346493a94905ee8ebf0c86e644d05b55443",
    "build": "9e8a56a16bda662ba90601b49561a2b176e9c379",
    "prices_verified": "2026-10-24",
    "prices_source": "https://aidevhub.io/api/models.json"
  },
  "disclaimer": "Planning estimates only — not financial, tax, or investment advice.",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "cite": "AI Fin Hub, Trading System Blueprinter (engine a0f13a76bd12), https://aifinhub.io/api/run/trading-system-blueprinter"
}