candle-annotator/services/ml/app
Marko Djordjevic f850728d44 fix(api): add GET /api/charts/[id] and fix batch prediction
- Add GET handler to /api/charts/[id] route to fetch chart metadata
- Fix batch prediction to use regular /predict endpoint with database candles
- Remove /predict/batch usage (was designed for file-based predictions)
- Make volume field optional in CandleData model (database candles don't have volume)
- Convert timestamps to ISO dates for batch requests

Known issue: TA-Lib indicators failing with 'input array type is not double'
- May need to ensure candle data is float64/double type before processing
2026-02-15 21:49:22 +01:00
..
__pycache__ fix(api): add GET /api/charts/[id] and fix batch prediction 2026-02-15 21:49:22 +01:00
__init__.py feat(ml): add database schema, config parser, and DVC setup 2026-02-15 12:08:53 +01:00
annotation_ingestion.py fix(ml): parse datetime column and fix TA-Lib pattern names 2026-02-15 21:13:20 +01:00
config.py feat(ml): add database schema, config parser, and DVC setup 2026-02-15 12:08:53 +01:00
db.py fix(ml): complete ML pipeline fixes and setup 2026-02-15 21:29:54 +01:00
main.py fix(api): add GET /api/charts/[id] and fix batch prediction 2026-02-15 21:49:22 +01:00
preprocessing.py feat(ml): implement FastAPI inference service with model loading, preprocessing, and prediction endpoints 2026-02-15 14:29:07 +01:00