candle-annotator/openspec/changes
Marko Djordjevic b8e649e333 feat: add FastAPI pattern detection endpoints (Section 1)
- Extract CDL pattern detection logic into services/ml/app/patterns.py
  with TALIB_PATTERNS dict, get_available_patterns(), validate_pattern_names(),
  and detect_patterns(candles, pattern_names) functions
- Add GET /patterns/available endpoint returning all 54 supported CDL pattern
  names with display names
- Add POST /patterns/detect endpoint accepting {candles, patterns}, running
  selected CDL functions, returning span annotations with source "talib"
- Add input validation: reject invalid pattern names with HTTP 400,
  treat empty patterns list as "run all"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 18:34:14 +01:00
..
archive chore: archive ml-db-consolidation change and sync specs 2026-02-17 18:22:28 +01:00
line-rectangle-annotations docs: mark all line-rectangle-annotations tasks as complete 2026-02-16 12:14:22 +01:00
ml-db-consolidation fix: resolve numpy type conversion issues in ML service data access 2026-02-17 14:10:21 +01:00
ml-ui-connection feat: add FastAPI pattern detection endpoints (Section 1) 2026-02-17 18:34:14 +01:00