Skip to content

[OA-016] Add structured market conditions and paper-only trade proposals #16

Open

Description

@johnnycoderbot-cloud

Planned implementation slice OA-016. No application behavior is implemented by this issue.

Phase: P4 · Dependencies: OA-009, OA-011, OA-012

Full roadmap detail · Contracts

Requirements

OA-TRD-002, OA-TRD-003, OA-ALT-003

Target files

  • packages/core/src/market-data/adapter.ts
  • packages/core/src/market-data/conditions.ts
  • packages/core/src/trading/paper-proposal.ts
  • apps/desktop/src/renderer/trading/PaperPanel.tsx
  • docs/decisions.md

Acceptance criteria

  • Numerical threshold rules use structured timestamped market data with symbol, venue, units, source, and freshness; screenshots support qualitative chart discussion only.
  • Initial integration uses synthetic/replay data until a user-selected data provider and redistribution terms are approved.
  • Paper proposal includes assumptions, data timestamp, risk inputs, and explicit paper label; no broker credentials or live order endpoint exists.
  • Paper ledger acknowledges simulation limits and stale/out-of-session/missing data cannot trigger a fresh numerical condition.

Verification

  • Deterministic replay with out-of-order ticks, duplicates, stale prices, symbol/venue mismatch, unit errors, and market-session boundaries.
  • Threshold crossing produces one paper event; screenshot OCR price alone never qualifies.
  • Source inspection and network test prove no live order route is exposed.

Gate and estimate

G4t: numeric alert and paper-proposal behavior is verified; live execution remains out of scope.

4-8 first-pass work-unit hours; NOT an alpha completion estimate; assumption: 8 bounded 30-60 minute work units, prepared environment and fixtures; integration waits/rework excluded

Handoff

Record changed files, actual commands/results, mock versus live evidence, residual limits, and review verdict. Do not connect personal feeds or accounts in CI.

Bounded work units

  • Define timestamped data schema (30-60 minutes)
  • Build replay adapter (30-60 minutes)
  • Validate symbols/units/freshness (30-60 minutes)
  • Implement numeric crossings (30-60 minutes)
  • Create paper proposal schema (30-60 minutes)
  • Build paper-only panel (30-60 minutes)
  • Test replay edge cases (30-60 minutes)
  • Verify no broker execution path (30-60 minutes)

Linked dependencies

Activity

  1. added
    plannedExecution-ready planned work; not implemented
    integration-gateExternal or native capability requires reproducible evidence
    on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    integration-gateExternal or native capability requires reproducible evidenceplannedExecution-ready planned work; not implemented

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions