summaryrefslogtreecommitdiff
path: root/docs/TODO.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/TODO.md')
-rw-r--r--docs/TODO.md101
1 files changed, 48 insertions, 53 deletions
diff --git a/docs/TODO.md b/docs/TODO.md
index 9e24ac2..57c57c8 100644
--- a/docs/TODO.md
+++ b/docs/TODO.md
@@ -4,78 +4,61 @@
## Current State
-- **243 tests passing**, lint clean
-- 5 microservices + CLI + shared library
-- 7 trading strategies (RSI, Grid, MACD, Bollinger, EMA Crossover, VWAP, Volume Profile)
-- Operations infra: SQLAlchemy ORM, Alembic, structlog, Telegram, resilience, Prometheus
-- Edge case coverage, parameter validation, DB transaction safety
+- **268 tests passing**, lint clean
+- 6 microservices (data-collector, strategy-engine, order-executor, portfolio-manager, backtester, api) + CLI + shared library
+- 8 trading strategies (RSI, Grid, MACD, Bollinger, EMA Crossover, VWAP, Volume Profile, Combined)
+- Operations: SQLAlchemy ORM, Alembic migrations, structlog, Telegram alerts, resilience, Prometheus + Grafana
+- Monitoring: Prometheus, Grafana (provisioned dashboard), Loki + Promtail log aggregation
+- Security: Bearer token auth on /health and /metrics endpoints
+- CI/CD: Gitea Actions workflow, standalone CI script
+- REST API: FastAPI with portfolio, orders, strategies endpoints
+- Advanced risk: trailing stop-loss, volatility-based position sizing, max open positions
+- Multi-exchange: ccxt factory supporting any exchange (Binance, Bybit, OKX, Kraken, etc.)
---
-## Completed
+## All Completed
-### Critical (Deployment Blockers) — All Done
+### Critical (Deployment Blockers)
- [x] Alembic 초기 마이그레이션 (6 테이블)
- [x] Docker Compose 헬스체크 포트 노출 (8080-8083)
- [x] numpy 의존성 추가
-### High Priority — All Done
+### High Priority
- [x] CLI 명령어 구현 (backtest, strategy, portfolio, data)
- [x] Backtester sys.path 해킹 제거 (STRATEGIES_DIR 환경변수)
-- [x] Integration tests (7개: strategy flow, order flow, portfolio, backtest)
+- [x] Integration tests (7개)
- [x] Dockerfile 의존성 정리 + PYTHONPATH 설정
-### Medium Priority — All Done
+### Medium Priority
- [x] Edge case tests (30개: zero volume, empty data, extreme values, reset, notifier)
- [x] DB transaction rollback + transaction() context manager
- [x] Portfolio snapshots (주기적 저장 + Telegram 일일 요약)
- [x] Strategy parameter validation (41 tests, 7 strategies)
- [x] VWAP division by zero 버그 수정
----
-
-## Remaining — Low Priority (향후 개선)
-
-### 12. Grafana Dashboard Provisioning
-- Prometheus는 설정됨, Grafana는 빈 상태
-- **TODO:** `monitoring/grafana/dashboards/` 에 JSON 대시보드 추가
-
-### 13. Multi-Exchange Support
-- 현재 Binance 전용
-- ccxt 라이브러리로 다른 거래소 추가 가능
-- 설정으로 거래소 선택 필요
-
-### 14. REST API / Web Dashboard
-- 현재 CLI만 제공
-- FastAPI 기반 REST API 추가 가능
-- 실시간 대시보드 (WebSocket)
-
-### 15. 전략 조합 프레임워크
-- 여러 전략 시그널에 가중치 부여
-- 최종 시그널 생성 엔진
+### Low Priority
+- [x] Grafana dashboard provisioning (7-panel trading overview)
+- [x] Multi-exchange support (ccxt factory)
+- [x] REST API (FastAPI: portfolio, orders, strategies)
+- [x] Strategy combination framework (weighted voting)
+- [x] Advanced risk management (trailing stop, volatility sizing, position limits)
+- [x] Loki + Promtail log aggregation
+- [x] CI/CD pipeline (Gitea Actions + scripts/ci.sh)
+- [x] Docker E2E test script (scripts/e2e-test.sh)
+- [x] Security hardening (bearer token auth on endpoints)
-### 16. Advanced Risk Management
-- 상관관계 기반 포지션 제한
-- 변동성 기반 동적 포지션 사이징
-- 트레일링 스탑로스
-
-### 17. 로그 집계 / 분산 추적
-- ELK 스택 또는 Loki로 로그 집계
-- OpenTelemetry 분산 추적
-
-### 18. CI/CD Pipeline
-- GitHub Actions / GitLab CI
-- 자동 테스트 + 린트 + Docker 빌드
-- 자동 배포
+---
-### 19. Docker Compose E2E 테스트
-- 실제 Redis/PostgreSQL로 전체 파이프라인 검증
-- `docker compose up` 후 candle → signal → order 흐름 테스트
+## Future Ideas (Not Planned)
-### 20. 보안 강화
-- /health, /metrics 엔드포인트 인증
-- API 키 암호화 저장
-- Rate limiting on all external APIs
+- WebSocket 기반 실시간 대시보드
+- 백테스트 결과 시각화 (matplotlib/plotly 차트)
+- 분산 추적 (OpenTelemetry)
+- 멀티 타임프레임 전략
+- 머신러닝 기반 시그널 필터
+- 주문 유형 확장 (LIMIT, STOP_LIMIT, OCO)
+- Kubernetes 배포 설정
---
@@ -101,11 +84,23 @@ make test
# 6. 서비스 실행
make up
-# 7. 모니터링 (선택)
+# 7. API 접근
+curl http://localhost:8000/api/v1/strategies
+curl http://localhost:8000/api/v1/portfolio/positions
+
+# 8. 모니터링
docker compose --profile monitoring up -d
+# Grafana: http://localhost:3000 (admin/admin)
+# Prometheus: http://localhost:9090
-# 8. CLI 사용
+# 9. CLI 사용
trading strategy list
trading backtest run --strategy rsi --symbol BTCUSDT --from 2025-01-01 --to 2025-12-31
trading portfolio show
+
+# 10. E2E 테스트
+make e2e
+
+# 11. CI
+make ci
```